summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-14 08:26:24 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commit03f13c610947333d46ec0206ff45c8d85508f759 (patch)
tree7cc7db1ef03b38abad5e9c8fc05b317c60de0dcc
parent32ae64226f90eb5d9c6968185df9e33c612d90d7 (diff)
host/trxcon/l1ctl.c: handle L1CTL_PM_REQ correctly
-rw-r--r--src/host/trxcon/l1ctl.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index da69e86..d5c3b57 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -245,7 +245,7 @@ exit:
static int l1ctl_rx_pm_req(struct l1ctl_link *l1l, struct msgb *msg)
{
- uint16_t arfcn_start, arfcn_stop, arfcn;
+ uint16_t arfcn_start, arfcn_stop;
struct l1ctl_pm_req *pmr;
int rc = 0;
@@ -265,18 +265,8 @@ static int l1ctl_rx_pm_req(struct l1ctl_link *l1l, struct msgb *msg)
arfcn_start &~ ARFCN_FLAG_MASK,
arfcn_stop &~ ARFCN_FLAG_MASK);
- /**
- * HACK: power measurement isn't implemented yet,
- * sending fake results for now...
- *
- * FIXME: l1ctl_link.c:203 Failed to enqueue msg!
- * l1l->wq size is limited to 100, so we cannot
- * put more messages until osmo_select_main()
- * is called.
- */
- for (arfcn = arfcn_start; arfcn <= arfcn_stop; arfcn++)
- l1ctl_tx_pm_conf(l1l, arfcn, arfcn == 33 ?
- -60 : -120, arfcn == arfcn_stop);
+ /* Send measurement request to transceiver */
+ rc = trx_if_cmd_measure(l1l->trx, arfcn_start, arfcn_stop);
exit:
msgb_free(msg);