Review at  https://gerrit.osmocom.org/6932

{sysmo,lc15}: Fix RACH reporting in combined CBCH case

Combined CCCH with CBCH is a separate PCHAN type and hence we must
accept it in the list of RACH-carrying pchan types in order to correctly
report the RACH chan_nr when handing RACH requests up to L1SAP.

The bug this fixes likely might have rendered cells with combined CBCH
impossible to use.

Change-Id: I9537463e5eedd2b8b30f298e0d3b308367c5b1fb
---
M src/osmo-bts-litecell15/l1_if.c
M src/osmo-bts-sysmo/l1_if.c
2 files changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/32/6932/1

diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c
index ece4987..ea75e3b 100644
--- a/src/osmo-bts-litecell15/l1_if.c
+++ b/src/osmo-bts-litecell15/l1_if.c
@@ -1071,7 +1071,8 @@
 
        lchan = l1if_hLayer_to_lchan(trx, (uint32_t)ra_ind->hLayer2);
        if (!lchan || lchan->ts->pchan == GSM_PCHAN_CCCH ||
-           lchan->ts->pchan == GSM_PCHAN_CCCH_SDCCH4)
+           lchan->ts->pchan == GSM_PCHAN_CCCH_SDCCH4 ||
+           lchan->ts->pchan == GSM_PCHAN_CCCH_SDCCH4_CBCH)
                l1sap->u.rach_ind.chan_nr = 0x88;
        else
                l1sap->u.rach_ind.chan_nr = gsm_lchan2chan_nr(lchan);
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 1d03755..e04c5e0 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1062,7 +1062,8 @@
 
        lchan = l1if_hLayer_to_lchan(trx, ra_ind->hLayer2);
        if (!lchan || lchan->ts->pchan == GSM_PCHAN_CCCH ||
-           lchan->ts->pchan == GSM_PCHAN_CCCH_SDCCH4)
+           lchan->ts->pchan == GSM_PCHAN_CCCH_SDCCH4 ||
+           lchan->ts->pchan == GSM_PCHAN_CCCH_SDCCH4_CBCH)
                l1sap->u.rach_ind.chan_nr = 0x88;
        else
                l1sap->u.rach_ind.chan_nr = gsm_lchan2chan_nr(lchan);

-- 
To view, visit https://gerrit.osmocom.org/6932
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9537463e5eedd2b8b30f298e0d3b308367c5b1fb
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to