diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-20 19:02:51 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-02-03 18:45:39 +0100 |
commit | 5d212055b7379b22da27d5c70b43e61491cd2381 (patch) | |
tree | cc0488a57cd1606db695442b5d54e9d2654e1e75 /src/common/l1sap.c | |
parent | 6f9beedc4871fbee09f8105bc3caa34f5086c5f6 (diff) |
L1SAP: Ensure we don't process MPH-TIME.indication on TRX != C0
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r-- | src/common/l1sap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 9d048e0a..c899914f 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -376,7 +376,14 @@ static int l1sap_mph_info_ind(struct gsm_bts_trx *trx, switch (info->type) { case PRIM_INFO_TIME: - rc = l1sap_info_time_ind(trx->bts, l1sap, &info->u.time_ind); + if (trx != trx->bts->c0) { + LOGP(DL1P, LOGL_NOTICE, "BTS model is sending us " + "PRIM_INFO_TIME for TRX %u, please fix it\n", + trx->nr); + rc = -1; + } else + rc = l1sap_info_time_ind(trx->bts, l1sap, + &info->u.time_ind); break; case PRIM_INFO_MEAS: rc = l1sap_info_meas_ind(trx, l1sap, &info->u.meas_ind); |