aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-02-14 20:37:49 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-19 18:07:43 +0100
commit572ed461b687809cae58596e2afcb66f8826779d (patch)
treee29c92f09a3d19004c1c13bf51703c29f852ea34 /src
parent1375a4b15316f2971dae284fff4ab6697c79621d (diff)
rsl/si: Fix resetting bits in bts->si_valid
Use 'var &= ~(1 << x)' to reset bits instead of 'var &= (1 << x)'. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/common/rsl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 8b7702b3..b7dc2b52 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -331,7 +331,7 @@ static int rsl_rx_bcch_info(struct gsm_bts_trx *trx, struct msgb *msg)
LOGP(DRSL, LOGL_INFO, " Rx RSL BCCH INFO (SI%s)\n",
get_value_string(osmo_sitype_strs, osmo_si));
} else {
- bts->si_valid &= (1 << osmo_si);
+ bts->si_valid &= ~(1 << osmo_si);
LOGP(DRSL, LOGL_INFO, " RX RSL Disabling BCCH INFO (SI%s)\n",
get_value_string(osmo_sitype_strs, osmo_si));
}
@@ -445,7 +445,7 @@ static int rsl_rx_sacch_fill(struct gsm_bts_trx *trx, struct msgb *msg)
LOGP(DRSL, LOGL_INFO, " Rx RSL SACCH FILLING (SI%s)\n",
get_value_string(osmo_sitype_strs, osmo_si));
} else {
- bts->si_valid &= (1 << osmo_si);
+ bts->si_valid &= ~(1 << osmo_si);
LOGP(DRSL, LOGL_INFO, " Rx RSL Disabling SACCH FILLING (SI%s)\n",
get_value_string(osmo_sitype_strs, osmo_si));
}