mobile/gsm48_rr.c: fix ACCH System Information parsing
commit1a8a80aeae4c2e5c870ae5b032d9a6ae60b67ac8
authorVadim Yanitskiy <axilirator@gmail.com>
Tue, 5 Dec 2017 20:36:48 +0000 (6 03:36 +0700)
committerHarald Welte <laforge@gnumonks.org>
Wed, 13 Dec 2017 10:22:16 +0000 (13 10:22 +0000)
tree5ed729d20172f4c7dd6ddd5577ac10a5c129700e
parent2cac7e8ceffc8e7d4667b2f9f7477364b80716d0
mobile/gsm48_rr.c: fix ACCH System Information parsing

According to GSM 04.08, the System Information messages, such as
SI5, SI5ter, SI5bis and SI6 (described in sections 9.1.37-40),
have no the 'L2 Pseudo Length' (10.5.2.19) field, unlike others.

So, previously the ACCH SI messages were ignored due to an
implementation error - the gsm48_system_information_type_header
struct isn't applicable here, because it assumes the 'l2_plen'.

Since there is no (yet?) equivalent struct for the ACCH SI, this
change replaces the wrong struct by the 'gsm48_hdr', which
satisfies described requirements.

Moreover, this change cleans up some gsm48_rr_rx_sysinfo*
functions, getting rid of meaningless pionter shifting.

Change-Id: I9166996f146af7973bf02a8a1c965581dc58a4a5
src/host/layer23/src/mobile/gsm48_rr.c