| From 845f192fe55b4774425752ecba8cb8f5c4e24c69 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 37/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 f866b8a..b73b821 100644 |
| --- a/src/ap/ieee802_11.c |
| +++ b/src/ap/ieee802_11.c |
| @@ -4002,6 +4002,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 |
| |