gsm0808: Fix decoding of IE GSM0808_IE_LCS_CLIENT_TYPE

Change-Id: I7acafdefd105e330c466df2e17e884327651e348
changes/32/27532/4
Pau Espin 9 months ago
parent a3987fcf39
commit fffd7c345b
  1. 1
      src/gsm/gsm0808.c
  2. 2
      tests/gsm0808/gsm0808_test.c

@ -1525,6 +1525,7 @@ static const struct tlv_definition bss_att_tlvdef = {
[GSM0808_IE_LOCATION_ESTIMATE] = { TLV_TYPE_TLV },
[GSM0808_IE_POSITIONING_DATA] = { TLV_TYPE_TLV },
[GSM0808_IE_LCS_CAUSE] = { TLV_TYPE_TLV },
[GSM0808_IE_LCS_CLIENT_TYPE] = { TLV_TYPE_TLV },
[GSM0808_IE_APDU] = { TLV_TYPE_TLV },
[GSM0808_IE_NETWORK_ELEMENT_IDENTITY] = { TLV_TYPE_TLV },
[GSM0808_IE_GPS_ASSISTANCE_DATA] = { TLV_TYPE_TLV },

@ -474,7 +474,7 @@ static void test_dec_perform_location_report_sys5891()
printf("Testing decoding Perform Location Report SYS#5891\n");
rc = tlv_parse(&tp, gsm0808_att_tlvdef(), hex+1, sizeof(hex)-1, 0, 0);
OSMO_ASSERT(rc < 0);
OSMO_ASSERT(rc == 5);
}
static void test_create_ass()

Loading…
Cancel
Save