aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-04-16 07:54:21 +0200
committerfixeria <vyanitskiy@sysmocom.de>2021-04-16 15:15:16 +0000
commit479ff386ffd985e1583255717f491bdcc740795a (patch)
treebe4d8a8680bab1b95e60f6081d00a2cb6693dec6
parentcabfbf470f129899e206865ccc8a66759e0c6045 (diff)
osmo-bts-trx: correct definition of 'osmotrx rx-gain' command
* Calling l1if_provision_transceiver_trx() yelds nothing. * It does not apply immediately, full restart required. Change-Id: I93c9e19d0543f19528cec842b8be332b4d93214e
-rw-r--r--src/osmo-bts-trx/trx_vty.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index 8e701ead..4e8c8d6b 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -357,12 +357,12 @@ DEFUN_ATTR(cfg_phy_rts_advance, cfg_phy_rts_advance_cmd,
return CMD_SUCCESS;
}
-DEFUN_ATTR(cfg_phyinst_rxgain, cfg_phyinst_rxgain_cmd,
- "osmotrx rx-gain <0-50>",
- OSMOTRX_STR
- "Set the receiver gain in dB\n"
- "Gain in dB\n",
- CMD_ATTR_IMMEDIATE)
+DEFUN_USRATTR(cfg_phyinst_rxgain, cfg_phyinst_rxgain_cmd,
+ X(BTS_VTY_TRX_POWERCYCLE),
+ "osmotrx rx-gain <0-50>",
+ OSMOTRX_STR
+ "Set the receiver gain in dB\n"
+ "Gain in dB\n")
{
struct phy_instance *pinst = vty->index;
struct trx_l1h *l1h = pinst->u.osmotrx.hdl;
@@ -370,7 +370,6 @@ DEFUN_ATTR(cfg_phyinst_rxgain, cfg_phyinst_rxgain_cmd,
l1h->config.rxgain = atoi(argv[0]);
l1h->config.rxgain_valid = 1;
l1h->config.rxgain_sent = false;
- l1if_provision_transceiver_trx(l1h);
return CMD_SUCCESS;
}