aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 1785e662..2038fbad 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1531,8 +1531,8 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx,
radio_link_timeout(lchan, false);
le = &lchan->lapdm_ch.lapdm_acch;
/* save the SACCH L1 header in the lchan struct for RSL MEAS RES */
- if (len < 2) {
- LOGPGT(DL1P, LOGL_NOTICE, &g_time, "SACCH with size %u<2 !?!\n", len);
+ if (len != GSM_MACBLOCK_LEN) {
+ LOGPGT(DL1P, LOGL_NOTICE, &g_time, "SACCH with odd len=%u!?!\n", len);
return -EINVAL;
}
/* Some brilliant engineer decided that the ordering of