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
1 changed files with 2 additions and 2 deletions

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);