aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bssmap_le
AgeCommit message (Collapse)AuthorFilesLines
2022-11-03Support building with -Werror=strict-prototypes / -Werror=old-style-definitionHarald Welte1-2/+2
Unfortunately "-std=c99" is not sufficient to make gcc ignore code that uses constructs of earlier C standards, which were abandoned in C99. See https://lwn.net/ml/fedora-devel/Y1kvF35WozzGBpc8@redhat.com/ for some related discussion. Change-Id: I84fd99442d0cc400fa562fa33623c142649230e2
2022-06-29fix uninitialized err pointer passed to osmo_bssap_le_dec()Vadim Yanitskiy1-1/+1
osmo_bssap_le_dec() dereferences value of the given pointer and checks it against NULL. The caller must always initialize it. Change-Id: Id91dc73da1ca71827183564eb68b12c03ba332b3
2022-03-22bssmap_le: support additional IEs in Perform Location RequestVadim Yanitskiy2-0/+31
Change-Id: I8775a93cf4089b1752d040e43d2cba6b8997f955 Related: SYS#5891
2020-10-09bssmap_le/bsslap tests: We must use %td for ptrdiff_t printingHarald Welte1-4/+4
Otherwise we get (valid!) format string warnings like these on 32bit targets: [ 372s] bssmap_le/bssmap_le_test.c: In function 'test_bssmap_le_enc_dec': [ 372s] bssmap_le/bssmap_le_test.c:141:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] [ 372s] printf("[%ld] %s: ERROR: failed to encode pdu\n", (pdu - bssmap_le_test_pdus), [ 372s] ^ Closes: OS#4786 Change-Id: Ib1c16b8adc5c8c0a2b418db51d12089f9b49a844
2020-10-07add BSSMAP-LE coding for Location ServicesNeels Hofmeyr2-0/+188
BSSMAP-LE: add Lb-interface messages between BSC and SMLC: - Reset - Reset Acknowledge - Perform Location Request, possibly containing BSSLAP TA Layer3 - Perform Location Response - Perform Location Abort - Connection Oriented Information containing any BSSLAP APDU Add encoding and decoding tests. Change-Id: I271e59b794bafc0a7ae0eabbf58918f6d7df431d