mbssid: Add Non-Inheritance element
Add data per IEEE Std 802.11-2020, 9.4.2.240. Current implementation is added for the security and extended supported rates only. For the Extended rates element, add a new member 'xrates_supported' which is set to 1 only if hostapd_eid_ext_supp_rates() returns success. Without this change, there are cases where this function returns before adding the element for the transmitting interface resulting in incorrect addition of this element inside the MBSSID Non-Inheritance element. Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com> Co-developed-by: John Crispin <john@phrozen.org> Signed-off-by: John Crispin <john@phrozen.org> Co-developed-by: Sowmiya Sree Elavalagan <quic_ssreeela@quicinc.com> Signed-off-by: Sowmiya Sree Elavalagan <quic_ssreeela@quicinc.com>
This commit is contained in:
parent
920b56322d
commit
c5a09b051a
5 changed files with 60 additions and 2 deletions
|
@ -91,6 +91,29 @@ int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
|
|||
}
|
||||
|
||||
|
||||
struct hostapd_data * hostapd_mbssid_get_tx_bss(struct hostapd_data *hapd)
|
||||
{
|
||||
if (hapd->iconf->mbssid)
|
||||
return hapd->iface->bss[0];
|
||||
|
||||
return hapd;
|
||||
}
|
||||
|
||||
|
||||
int hostapd_mbssid_get_bss_index(struct hostapd_data *hapd)
|
||||
{
|
||||
if (hapd->iconf->mbssid) {
|
||||
size_t i;
|
||||
|
||||
for (i = 1; i < hapd->iface->num_bss; i++)
|
||||
if (hapd->iface->bss[i] == hapd)
|
||||
return i;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void hostapd_reconfig_encryption(struct hostapd_data *hapd)
|
||||
{
|
||||
if (hapd->wpa_auth)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue