wlan-ap-Telecominfraproject/feeds/ipq95xx/hostapd/patches/q01-008-mbssid-make-the-AID-space-shared.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

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;