mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 00:54:20 +08:00
pbap: Fix When MaxListCount header missing
As per spec(5.3.4.4) when MaxListCount headser is missing then PSE should assume MaxListCount value as MAX (65535)
This commit is contained in:
parent
1ef9408662
commit
730c946472
@ -454,6 +454,12 @@ static struct apparam_field *parse_aparam(const uint8_t *buffer, uint32_t hlen)
|
||||
|
||||
param = g_new0(struct apparam_field, 1);
|
||||
|
||||
/*
|
||||
* As per spec when client doesn't include MAXLISTCOUNT_TAG then it
|
||||
* should be assume as Maximum value in vcardlisting 65535
|
||||
*/
|
||||
param->maxlistcount = UINT16_MAX;
|
||||
|
||||
g_obex_apparam_get_uint8(apparam, ORDER_TAG, ¶m->order);
|
||||
g_obex_apparam_get_uint8(apparam, SEARCHATTRIB_TAG,
|
||||
¶m->searchattrib);
|
||||
|
Loading…
Reference in New Issue
Block a user