[PATCH 06/33] l1sap: Use L1SAP_IS_CHAN_RACH instead of magic number 0x88

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Wed Aug 27 21:54:25 UTC 2014


---
 src/common/l1sap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index dfc81a4..5cb72b6 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -166,7 +166,7 @@ static int l1sap_ph_rach_ind(struct gsm_bts_trx *trx,
 	}
 
 	/* check for handover rach */
-	if (trx != bts->c0 && rach_ind->chan_nr != 0x88)
+	if (trx != bts->c0 && !L1SAP_IS_CHAN_RACH(rach_ind->chan_nr))
 		return l1sap_handover_rach(trx, l1sap, rach_ind);
 
 	/* check for packet access */
-- 
2.1.0





More information about the OpenBSC mailing list