blob: 7cd34cd2b5907262518b8df55bd835a49912e222 [file] [log] [blame]
From 1671a37b5990929bd11823158d496e7877d83d92 Mon Sep 17 00:00:00 2001
From: "Allen.Ye" <allen.ye@mediatek.com>
Date: Wed, 2 Aug 2023 18:33:31 +0800
Subject: [PATCH 38/38] hostapd: mtk: Fix 11vmbss aid using wrong pool
Fix 11vmbss aid using wrong pool.
All STAs use the aid pool in transmitted bss.
Signed-off-by: Allen.Ye <allen.ye@mediatek.com>
---
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 d36798e..f20073c 100755
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -3307,6 +3307,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