diff options
author | Max <msuraev@sysmocom.de> | 2017-04-12 14:29:13 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-05-09 09:10:45 +0000 |
commit | 9563039a2a8cba0da1f0a7caf537dd78a56ffbe4 (patch) | |
tree | 9a0a0c0e26284e1fcf54c0e57eb26db5a23a0b16 /src/common/sysinfo.c | |
parent | 9d5ec1af749c82515023f16318b40d775c8e795a (diff) |
Prepare for extended SI2quater support
SI2quater support as per 3GPP TS 44.018 will require chnages to the way
System Information is stored because it uses 1:n instead of 1:1 mapping
between SI type and generated SI content. This should not affect other
SI types though. To facilitate this transition:
* convert the code to always use GSM_LCHAN_SI helper instead of
accessing buffer directly
* move duplicated code to inline function
* add logging for buffer truncation and corresponding length values
Requires I74e4e3cb86364cec869a1472a41b4a95af0d50dd in OpenBSC.
Change-Id: Ie97be6ead6ce6d2d425fbfac8429bb90afb95acc
Related: RT#8792
Diffstat (limited to 'src/common/sysinfo.c')
-rw-r--r-- | src/common/sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c index 177ed587..d8671c80 100644 --- a/src/common/sysinfo.c +++ b/src/common/sysinfo.c @@ -154,7 +154,7 @@ uint8_t *lchan_sacch_get(struct gsm_lchan *lchan) if (!(lchan->si.valid & (1 << tmp))) continue; lchan->si.last = tmp; - return lchan->si.buf[tmp]; + return GSM_LCHAN_SI(lchan, tmp); } return NULL; } |