diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-08-30 08:03:09 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2014-04-05 12:48:10 +0200 |
commit | 05ea21a82c05be3cff91fc7c78443df9c4105c67 (patch) | |
tree | d82410d0f44b4d631d40a9deda3c7d7856a0c227 /src/common | |
parent | 9fd99a92752cc3d173ca3a2107b564bd78606338 (diff) |
Add PCH/AGCH message to PH-/MPH-/TCH-SAP interface
This part moves PCH and AGCH message primitives from osmo-bts-sysmo to
common part.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/l1sap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index dfc81a47..99825311 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -78,6 +78,7 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx, uint8_t tn; uint32_t fn; uint8_t *p, *si; + int rc; chan_nr = rts_ind->chan_nr; link_id = rts_ind->link_id; @@ -108,6 +109,13 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx, memcpy(p, si, GSM_MACBLOCK_LEN); else memcpy(p, fill_frame, GSM_MACBLOCK_LEN); + } else if (L1SAP_IS_CHAN_AGCH_PCH(chan_nr)) { + p = msgb_put(msg, GSM_MACBLOCK_LEN); + /* if CCCH block is 0, it is AGCH */ + rc = bts_ccch_copy_msg(trx->bts, p, &g_time, + (L1SAP_FN2CCCHBLOCK(fn) < 1)); + if (rc <= 0) + memcpy(p, fill_frame, GSM_MACBLOCK_LEN); } DEBUGP(DL1P, "Tx PH-DATA.req %02u/%02u/%02u chan_nr=%d link_id=%d\n", |