mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-24 21:02:35 +00:00
30 lines
863 B
Diff
30 lines
863 B
Diff
From efb94ba16134dd58b51a920c9a8a145459ee38ef Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Fri, 10 Sep 2021 14:58:14 -0700
|
|
Subject: [PATCH 08/15] 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: John Crispin <john@phrozen.org>
|
|
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
|
|
---
|
|
src/ap/ieee802_11.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
--- a/src/ap/ieee802_11.c
|
|
+++ b/src/ap/ieee802_11.c
|
|
@@ -4016,7 +4016,10 @@ int hostapd_get_aid(struct hostapd_data
|
|
}
|
|
if (j == 32)
|
|
return -1;
|
|
- aid = i * 32 + j + 1;
|
|
+ aid = i * 32 + j;
|
|
+
|
|
+ aid += (1 << hostapd_max_bssid_indicator(hapd));
|
|
+
|
|
if (aid > 2007)
|
|
return -1;
|
|
|