aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-02-16 20:58:24 +0100
committerdexter <pmaier@sysmocom.de>2021-02-16 22:28:18 +0000
commitda084794a66327bcf55877b7a7cabfdddcf4f1e6 (patch)
treee3844dbd25004d6ca89701423f22c54dbd600151 /include/osmo-bts/gsm_data.h
parentf8f806ff2a30c91b521d45cc373551d65ccd59f6 (diff)
gsm_data: handle l1_info with structs
in struct gsm_lchan and also in other places l1_info is handled in its binary form. Libosmocore now offers structs to handle l1 info, so lets use those structs to get rid of all the manual decoding of l1_info. Depends: libosmocore I23c1890b89d5a0574eb05dace9f64cc59d6f6df7 Change-Id: I5eb516d7849750f3dd174d48c9f07dabf2c80515
Diffstat (limited to 'include/osmo-bts/gsm_data.h')
-rw-r--r--include/osmo-bts/gsm_data.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 05b6cf27..6caad14c 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -323,7 +323,7 @@ struct gsm_lchan {
uint8_t num_ul_meas;
struct bts_ul_meas uplink[MAX_NUM_UL_MEAS];
/* last L1 header from the MS */
- uint8_t l1_info[2];
+ struct rsl_l1_info l1_info;
struct gsm_meas_rep_unidir ul_res;
int16_t ms_toa256;
/* Frame number of the last measurement indication receceived */
@@ -411,11 +411,6 @@ struct gsm_lchan {
struct msgb *rep_sacch;
};
-static inline uint8_t lchan_get_ta(const struct gsm_lchan *lchan)
-{
- return lchan->meas.l1_info[1];
-}
-
extern const struct value_string lchan_ciph_state_names[];
static inline const char *lchan_ciph_state_name(uint8_t state) {
return get_value_string(lchan_ciph_state_names, state);