Change in osmo-bsc[master]: bsc_ctrl_commands: add ctrl command to resend system information

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/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Tue Oct 19 15:35:57 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/25829 )


Change subject: bsc_ctrl_commands: add ctrl command to resend system information
......................................................................

bsc_ctrl_commands: add ctrl command to resend system information

The system information can be modified via the ctrl interface, but there
is no way to resend it to the BTS afterwards. At the moment it is only
possible to resend the system information via VTY. Lets add a control
command that does the same via the control interface.

Change-Id: Id628fc6f0771de67f60cbc96b631000b04c765f4
Related: SYS#5641
---
M src/osmo-bsc/bsc_ctrl_commands.c
1 file changed, 14 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/29/25829/1

diff --git a/src/osmo-bsc/bsc_ctrl_commands.c b/src/osmo-bsc/bsc_ctrl_commands.c
index a94baae..4c8cb99 100644
--- a/src/osmo-bsc/bsc_ctrl_commands.c
+++ b/src/osmo-bsc/bsc_ctrl_commands.c
@@ -667,6 +667,19 @@
 
 CTRL_CMD_DEFINE(bts_c0_power_red, "c0-power-reduction");
 
+static int get_bts_resend_si(struct ctrl_cmd *cmd, void *data)
+{
+	struct gsm_bts *bts = cmd->node;
+
+	if (gsm_bts_set_system_infos(bts) != 0) {
+		return CTRL_CMD_ERROR;
+	}
+
+	return CTRL_CMD_REPLY;
+}
+
+CTRL_CMD_DEFINE_RO(bts_resend_si, "resend-si");
+
 int bsc_base_ctrl_cmds_install(void)
 {
 	int rc = 0;
@@ -691,6 +704,7 @@
 	rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_rf_state);
 	rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_rf_states);
 	rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_c0_power_red);
+	rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_resend_si);
 
 	rc |= ctrl_cmd_install(CTRL_NODE_TRX, &cmd_trx_max_power);
 	rc |= ctrl_cmd_install(CTRL_NODE_TRX, &cmd_trx_arfcn);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/25829
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Id628fc6f0771de67f60cbc96b631000b04c765f4
Gerrit-Change-Number: 25829
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211019/0bf962a1/attachment.htm>


More information about the gerrit-log mailing list