wlan-ap-Telecominfraproject/feeds/ipq95xx/hostapd/patches/q02-052-hostapd-make-probe-response-as-broadcast-for-6GHz-ba.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

43 lines
1.4 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From ec78b0e8a7ebd3d705b4119a795e044e3437670b Mon Sep 17 00:00:00 2001
From: Hari Chandrakanthan <quic_haric@quicinc.com>
Date: Tue, 11 Oct 2022 23:57:00 +0530
Subject: [PATCH] hostapd : make probe response as broadcast for 6GHz band
Make probe response as broadcast for 6GHz band as mentioned
in the spec IEEE Std 802.11ax2021 section 26.17.2.3.2,
"If a 6 GHz AP receives a Probe Request frame and responds with a Probe
Response frame (per 11.1.4.3.4), the Address 1 field of the Probe
Response frame shall be set to the broadcast address, unless
the AP is not indicating its actual SSID in the SSID element
of its Beacon frames."
Fixes: I6af7154bddf ("hostapd: Package Upgrade to b26f5c0fe3")
Signed-off-by: Hari Chandrakanthan <quic_haric@quicinc.com>
---
src/ap/beacon.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index 9536e76..011c0fc 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -664,8 +664,13 @@ static u8 * hostapd_gen_probe_resp(struct hostapd_data *hapd,
resp->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
WLAN_FC_STYPE_PROBE_RESP);
- if (req)
+
+ if (req && (!is_6ghz_op_class(hapd->iconf->op_class) ||
+ hapd->conf->ignore_broadcast_ssid))
os_memcpy(resp->da, req->sa, ETH_ALEN);
+ else
+ os_memset(resp->da, 0xff, ETH_ALEN);
+
os_memcpy(resp->sa, hapd->own_addr, ETH_ALEN);
os_memcpy(resp->bssid, hapd->own_addr, ETH_ALEN);
--
2.7.4