[PATCH 2/6] nl80211: Report capability to transmit auth frames with random TA
Veerendranath Jakkam
quic_vjakkam at quicinc.com
Sat Jan 7 23:51:49 PST 2023
From: Vinay Gannevaram <quic_vganneva at quicinc.com>
Report capability to transmit authentication frames with random TA if
supported by the underlying driver/hardware.
Signed-off-by: Vinay Gannevaram <quic_vganneva at quicinc.com>
---
src/drivers/driver.h | 2 ++
src/drivers/driver_nl80211_capa.c | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index cb27282aa..2b01e5b96 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -2192,6 +2192,8 @@ struct wpa_driver_capa {
#define WPA_DRIVER_FLAGS2_PROT_RANGE_NEG_STA 0x0000000000002000ULL
/** Driver supports MLO in station/AP mode */
#define WPA_DRIVER_FLAGS2_MLO 0x0000000000004000ULL
+/** Driver supports authentication frames with random transmitter address */
+#define WPA_DRIVER_FLAGS2_AUTH_AND_DEAUTH_RANDOM_TA 0x0000000000008000ULL
u64 flags2;
#define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \
diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c
index 959f7f37d..d101ce021 100644
--- a/src/drivers/driver_nl80211_capa.c
+++ b/src/drivers/driver_nl80211_capa.c
@@ -694,6 +694,11 @@ static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info,
capa->flags2 |= WPA_DRIVER_FLAGS2_PROT_RANGE_NEG_STA;
capa->flags2 |= WPA_DRIVER_FLAGS2_PROT_RANGE_NEG_AP;
}
+
+ if (ext_feature_isset(ext_features, len,
+ NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA))
+ capa->flags2 |= WPA_DRIVER_FLAGS2_AUTH_AND_DEAUTH_RANDOM_TA;
+
}
--
2.25.1
More information about the Hostap
mailing list