blob: 7cd34cd2b5907262518b8df55bd835a49912e222 [file] [log] [blame]
developerd2c6a3b2023-08-02 18:59:57 +08001From 1671a37b5990929bd11823158d496e7877d83d92 Mon Sep 17 00:00:00 2001
2From: "Allen.Ye" <allen.ye@mediatek.com>
3Date: Wed, 2 Aug 2023 18:33:31 +0800
4Subject: [PATCH 38/38] hostapd: mtk: Fix 11vmbss aid using wrong pool
5
6Fix 11vmbss aid using wrong pool.
7All STAs use the aid pool in transmitted bss.
8
9Signed-off-by: Allen.Ye <allen.ye@mediatek.com>
10---
11 src/ap/ieee802_11.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
15index d36798e..f20073c 100755
16--- a/src/ap/ieee802_11.c
17+++ b/src/ap/ieee802_11.c
18@@ -3307,6 +3307,9 @@ int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta)
19 {
20 int i, j = 32, aid;
21
22+ if (hapd->iconf->mbssid)
23+ hapd = hostapd_mbssid_get_tx_bss(hapd);
24+
25 /* get a unique AID */
26 if (sta->aid > 0) {
27 wpa_printf(MSG_DEBUG, " old AID %d", sta->aid);
28--
292.18.0
30