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 /tests | |
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 'tests')
-rw-r--r-- | tests/misc/misc_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/misc_test.c b/tests/misc/misc_test.c index 80dd317b..c2918fb4 100644 --- a/tests/misc/misc_test.c +++ b/tests/misc/misc_test.c @@ -142,7 +142,7 @@ static void test_sacch_get(void) /* initialize the input. */ for (i = 1; i < _MAX_SYSINFO_TYPE; ++i) { lchan.si.valid |= (1 << i); - memset(&lchan.si.buf[i], i, sizeof(lchan.si.buf[i])); + memset(GSM_LCHAN_SI(&lchan, i), i, GSM_MACBLOCK_LEN); } /* It will start with '1' */ |