From 85f4e1b3b8b386fd7e25b33d83768fe8a100e051 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 22 Nov 2012 10:15:10 +0100 Subject: fix previous commit: use dbm2rxlev() As andreas points out, there are structure members that are called 'rxlev' but which don't use the scaling (0..63) of the GSM specs, but which are already a signed type and in dBm. So they need to be converted. TODO: Rename those structure members to rxlev_dbm or something that explicitly states it is _not_ an 'RXLEV' value in terms of GSM. --- src/host/layer23/src/mobile/gsm322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/host/layer23/src/mobile/gsm322.c') diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c index 273f9db2..f56fbdac 100644 --- a/src/host/layer23/src/mobile/gsm322.c +++ b/src/host/layer23/src/mobile/gsm322.c @@ -492,7 +492,7 @@ static int gsm322_sync_to_cell(struct gsm322_cellsel *cs, return l1ctl_tx_fbsb_req(ms, cs->arfcn, L1CTL_FBSB_F_FB01SB, 100, 0, cs->ccch_mode, - cs->list[cs->arfci].rxlev); + dbm2rxlev(cs->list[cs->arfci].rxlev)); } /* this is called whenever the serving cell is unselectied */ -- cgit v1.2.3