developer | f0fd705 | 2023-08-14 20:23:42 +0800 | [diff] [blame] | 1 | From 1671a37b5990929bd11823158d496e7877d83d92 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Allen.Ye" <allen.ye@mediatek.com> |
| 3 | Date: Wed, 2 Aug 2023 18:33:31 +0800 |
| 4 | Subject: [PATCH 38/38] hostapd: mtk: Fix 11vmbss aid using wrong pool |
| 5 | |
| 6 | Fix 11vmbss aid using wrong pool. |
| 7 | All STAs use the aid pool in transmitted bss. |
| 8 | |
| 9 | Signed-off-by: Allen.Ye <allen.ye@mediatek.com> |
| 10 | --- |
| 11 | src/ap/ieee802_11.c | 3 +++ |
| 12 | 1 file changed, 3 insertions(+) |
| 13 | |
| 14 | diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c |
| 15 | index 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 | -- |
| 29 | 2.18.0 |
| 30 | |