aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-27 19:50:08 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:39:03 +0200
commit4fe00da9f8f849efb86977e909870179124f384a (patch)
tree6128c23ebd2c29e6bf1bb725c92acd18ee719af4 /src/osmo-bts-sysmo
parent75be092b99a8dd693fe7fdc35b6c124d730f66cd (diff)
l1sap: additional comments explaining l1sap changes in l1_if.c
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 5c217d5a..12c063ff 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -609,6 +609,7 @@ static uint8_t chan_nr_by_sapi(enum gsm_phys_chan_config pchan,
return 0;
}
+ /* not reached due to default case above */
return (cbits << 3) | u8Tn;
}
@@ -1055,10 +1056,13 @@ static int handle_ph_data_ind(struct femtol1_hdl *fl1, GsmL1_PhDataInd_t *data_i
}
if (!chan_nr) {
+ /* message was handled by old code, not by L1SAP */
msgb_free(l1p_msg);
return rc;
}
+ /* if we proceed to this point, the message has to be handled via L1SAP */
+
/* get data pointer and length */
data = data_ind->msgUnitParam.u8Buffer;
len = data_ind->msgUnitParam.u8Size;