The 'Number of channel entries' field used in multiple attributes of the
Proximity Ranging element was incorrectly populated with an empty
buffer. Ensure the size of field is limited to one byte and correctly
reflects the count of channel entries that follow.
Fixes: 619cc871ba0f ("PR: Add EDCA capabilities in USD PR element")
Signed-off-by: Peddolla Harshavardhan Reddy <peddolla@qti.qualcomm.com>
size_t i;
wpabuf_put_data(buf, country, 3); /* Country String */
- wpabuf_put(buf, chan->op_classes); /* Number of Channel Entries */
+ wpabuf_put_u8(buf, chan->op_classes); /* Number of Channel Entries */
/* Channel Entry List */
for (i = 0; i < chan->op_classes; i++) {