gsm0808: Fix decoding of IE GSM0808_IE_LCS_CLIENT_TYPE

Change-Id: I7acafdefd105e330c466df2e17e884327651e348
This commit is contained in:
Pau Espin 2022-03-18 13:45:42 +01:00
parent a3987fcf39
commit fffd7c345b
2 changed files with 2 additions and 1 deletions

View File

@ -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 },

View File

@ -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()