diff options
author | Andreas.Eversberg <jolly@eversberg.eu> | 2011-11-06 20:45:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-11-12 23:23:36 +0100 |
commit | f1f80de007aeefb7757d469dcc3869b6c5a89a9a (patch) | |
tree | 0495e0f2d128baa88354cf2b32ce580b48c22d5c /include/osmocom/gsm/lapdm.h | |
parent | cbed32796578db7522c1821bdb06d3c1d596ca40 (diff) |
gsm/lapdm: Fix TA and power level handling in the ACCH header
Timing advance and power level indicated by MS (measurement reports)
and BTS (SI 5/6) are now stored for use at ACCH data link connection.
This is part of a set of commit to fix LAPDm to handle datalink
connection on ACCH (SAPI 3)
This is required to transfer SMS on SACCH of TCH/f or SDCCH/8 (4).
Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include/osmocom/gsm/lapdm.h')
-rw-r--r-- | include/osmocom/gsm/lapdm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/osmocom/gsm/lapdm.h b/include/osmocom/gsm/lapdm.h index adffbebb..52e8fc52 100644 --- a/include/osmocom/gsm/lapdm.h +++ b/include/osmocom/gsm/lapdm.h @@ -72,8 +72,8 @@ struct lapdm_msg_ctx { int lapdm_fmt; uint8_t chan_nr; uint8_t link_id; - uint8_t ta_ind; - uint8_t tx_power_ind; + uint8_t ta_ind; /* TA indicated by network */ + uint8_t tx_power_ind; /* MS power indicated by network */ }; /*! \brief LAPDm datalink like TS 04.06 / Section 3.5.2 */ @@ -113,6 +113,9 @@ struct lapdm_entity { /*! \brief pointer to \ref lapdm_channel of which we're part */ struct lapdm_channel *lapdm_ch; + + uint8_t ta; /* TA used and indicated to network */ + uint8_t tx_power; /* MS power used and indicated to network */ }; /*! \brief the two lapdm_entities that form a GSM logical channel (ACCH + DCCH) */ |