summaryrefslogtreecommitdiffstats
path: root/src/host
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-07-22 18:14:40 +0200
committerAndreas.Eversberg2010-07-22 18:14:40 +0200
commit33c2a1c265e5ea553fdb28f0ae064742347cf857 (patch)
tree5dba1c3c54ae3f9dc5685bf0d2beefaffe0fd5d8 /src/host
parent[layer23] Re-structured the VTY commands for SIM insert/remove (diff)
downloadosmocom-33c2a1c265e5ea553fdb28f0ae064742347cf857.tar.gz
osmocom-33c2a1c265e5ea553fdb28f0ae064742347cf857.tar.xz
osmocom-33c2a1c265e5ea553fdb28f0ae064742347cf857.zip
[layer23] Fixed interpretation of the power measurement result.
Diffstat (limited to 'src/host')
-rw-r--r--src/host/layer23/src/l1ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/l1ctl.c b/src/host/layer23/src/l1ctl.c
index 9d59198..a288063 100644
--- a/src/host/layer23/src/l1ctl.c
+++ b/src/host/layer23/src/l1ctl.c
@@ -519,7 +519,7 @@ static int rx_l1_pm_conf(struct osmocom_ms *ms, struct msgb *msg)
DEBUGP(DL1C, "PM MEAS: ARFCN: %4u RxLev: %3d %3d\n",
ntohs(pmr->band_arfcn), pmr->pm[0], pmr->pm[1]);
mr.band_arfcn = ntohs(pmr->band_arfcn);
- mr.rx_lev = (pmr->pm[0] + pmr->pm[1]) / 2;
+ mr.rx_lev = pmr->pm[0];
mr.ms = ms;
dispatch_signal(SS_L1CTL, S_L1CTL_PM_RES, &mr);
}