[PATCH] hostapd: Fix multiple BSSID STA aid count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Allen.Ye" <allen.ye@xxxxxxxxxxxx>

When STAs connect to transmitted-bss and non-transmitted-bss, the
AP should count the aid in the same pool.

Use transmitted-bss aid pool to count aids when AP enable mbssid.

Signed-off-by: Allen.Ye <allen.ye@xxxxxxxxxxxx>
---
 src/ap/ieee802_11.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index d40a821fe..3a19c81a8 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -3312,6 +3312,9 @@ int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta)
 {
 	int i, j = 32, aid;
 
+	if (hapd->iconf->mbssid)
+		hapd = hostapd_mbssid_get_tx_bss(hapd);
+
 	/* get a unique AID */
 	if (sta->aid > 0) {
 		wpa_printf(MSG_DEBUG, "  old AID %d", sta->aid);
-- 
2.18.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux