diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-06-15 20:19:08 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-06-15 20:55:23 +0700 |
commit | b828b32f31366e7b306980cb568622d36fbc80fb (patch) | |
tree | fc1f9d128ede57623d0bb8b53faf9ad852138e7e /include | |
parent | ae781bc5cd012818dd50ab5c1f79236422029003 (diff) |
osmo-bts-trx: store pointer to gsm_lchan in l1sched_chan_state
This change simplifies access to generic logical channel state
(struct gsm_lchan) from osmo-bts-trx specific state (struct
l1sched_chan_state), so there is no need to look it up using
get_lchan_by_chan_nr() on receipt of each Uplink burst.
Change-Id: Ic4378020f980845b962f71b9e4b7faea738bc174
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/scheduler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h index a7bc6c72..f5f346e8 100644 --- a/include/osmo-bts/scheduler.h +++ b/include/osmo-bts/scheduler.h @@ -71,6 +71,11 @@ enum trx_burst_type { /* States each channel on a multiframe */ struct l1sched_chan_state { + /* Pointer to the associated logical channel state from gsm_data_shared. + * Initialized during channel activation, thus may be NULL for inactive + * or auto-active channels. Always check before dereferencing! */ + struct gsm_lchan *lchan; + /* scheduler */ bool active; /* Channel is active */ ubit_t *dl_bursts; /* burst buffer for TX */ |