]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mbssid: Make the AID space shared
authorAloka Dixit <quic_alokad@quicinc.com>
Thu, 1 Dec 2022 03:18:42 +0000 (19:18 -0800)
committerJouni Malinen <j@w1.fi>
Fri, 2 Dec 2022 18:47:49 +0000 (20:47 +0200)
As described in IEEE Std 802.11-2020, 11.1.3.8 Multiple BSSID procedure,
set the lowest AID value assigned to any client equal to 2^n, where n is
the maximum BSSID indicator of the MBSSID set.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Co-developed-by: John Crispin <john@phrozen.org>
Signed-off-by: John Crispin <john@phrozen.org>
src/ap/ieee802_11.c

index 1a1ccf7fc47439b5a1fba836859ccbc282a55990..8f5c2c2376f6e3c116f52226000739b341e044b3 100644 (file)
@@ -3160,7 +3160,7 @@ int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta)
        }
        if (j == 32)
                return -1;
-       aid = i * 32 + j + 1;
+       aid = i * 32 + j + (1 << hostapd_max_bssid_indicator(hapd));
        if (aid > 2007)
                return -1;