[PATCH 3/3] nitb/ctrl: Add ctrl command to get/set arfcn

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Wed May 7 07:26:40 UTC 2014


On Tue, May 06, 2014 at 07:35:59PM +0400, Ivan Kluchnikov wrote:

Hi again,


> +CTRL_CMD_DEFINE_RANGE(trx_arfcn, "arfcn", struct gsm_bts_trx, arfcn, 0, 1023);


Please look at cfg_trx_arfcn_cmd in src/libbsc/bsc_vty.c. There are
plenty of "FIXME" in the code and they all apply here. There are two
separate issues that your patch is touching.

1.) Align VTY and CTRL command. My approach so far was to move the
"handling" into a common method that is used by CTRL/VTY.

2.) The general question of "when" to apply the configuration. For
some commands it is immediate, for some comments it is after a BTS
is bootstrapped again and for some it requires a re-start of the
NITB application.

3.) Make it impossible to configure a "broken" system. For your code
and the VTY command it is possible to create and later save/write a
config that will not be parsed on re-start.

So this patch at least needs to do:

* Make the CTRL and VTY share a routine to "set" the ARFCN
* Move the FIXMEs into this routine
* Verify that the BAND + ARFCN would be compatible (so we would
  still have three FIXMEs left).

cheers
	holger





More information about the OpenBSC mailing list