diff options
author | Max <msuraev@sysmocom.de> | 2016-10-10 13:17:01 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-10-12 09:30:06 +0000 |
commit | 4ca5be766cb139eccb9798a0237cc32ae59617d9 (patch) | |
tree | 5b4743ba9484c1f106628c39c4a9348d73f31bba /include | |
parent | 9f9b96a67bd1a4c3aa4180822e65de0a98572227 (diff) |
Move copy-pasted array into shared header
Change-Id: I377ece2845830e3defab2d515f44b629ce5aed8e
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/l1sap.h | 8 |
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) { |