3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

ap: Fix setting the basic rate in Supported Rates IE

This commit is contained in:
Andrew Zaborowski 2020-09-11 21:50:57 +02:00 committed by Denis Kenzior
parent 1eb2735239
commit fbb0776716

View File

@ -381,10 +381,10 @@ static size_t ap_build_beacon_pr_head(struct ap_state *ap,
flag = 0x80;
*rates++ = r | flag;
count++;
}
ie_tlv_builder_set_length(&builder, rates -
ie_tlv_builder_get_data(&builder));
ie_tlv_builder_set_length(&builder, count);
/* DSSS Parameter Set IE for DSSS, HR, ERP and HT PHY rates */
ie_tlv_builder_next(&builder, IE_TYPE_DSSS_PARAMETER_SET);