blob: 7eb42ad4a418be4d19e7df615216a77b28139224 [file] [log] [blame]
From b99fd7f0b86a87fc82d63ec809fd9a73f308dd08 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 32/40] 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