aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/l1sap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmo-bts/l1sap.h')
-rw-r--r--include/osmo-bts/l1sap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmo-bts/l1sap.h b/include/osmo-bts/l1sap.h
index 981cd756..77bfbaa0 100644
--- a/include/osmo-bts/l1sap.h
+++ b/include/osmo-bts/l1sap.h
@@ -1,6 +1,8 @@
#ifndef L1SAP_H
#define L1SAP_H
+#include <osmocom/gsm/protocol/gsm_04_08.h>
+
/* timeslot and subslot from chan_nr */
#define L1SAP_CHAN2TS(chan_nr) (chan_nr & 7)
#define L1SAP_CHAN2SS_TCHH(chan_nr) ((chan_nr >> 3) & 1)
@@ -28,6 +30,12 @@
#define L1SAP_FN2PTCCHBLOCK(fn) ((fn / 104) & 3)
#define L1SAP_IS_PTCCH(fn) ((fn % 52) == 12)
+static const uint8_t fill_frame[GSM_MACBLOCK_LEN] = {
+ 0x03, 0x03, 0x01, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B,
+ 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B,
+ 0x2B, 0x2B, 0x2B
+};
+
/* subslot from any chan_nr */
static inline uint8_t l1sap_chan2ss(uint8_t chan_nr)
{