From: Aloka Dixit Date: Thu, 1 Dec 2022 03:18:42 +0000 (-0800) Subject: mbssid: Make the AID space shared X-Git-Tag: hostap_2_11~1414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b1352efdd148de1cf8322f5457aa82c668753b;p=thirdparty%2Fhostap.git mbssid: Make the AID space shared 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 Co-developed-by: John Crispin Signed-off-by: John Crispin --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 1a1ccf7fc..8f5c2c237 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -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;