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

Message ID 1409176492-13269-7-git-send-email-laforge@gnumonks.org
State Superseded
Headers show

Commit Message

Harald Welte Aug. 27, 2014, 9:54 p.m. UTC
---
 src/common/l1sap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

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 */