[PATCH 2/6] nl80211: Report capability to transmit auth frames with random TA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinay Gannevaram <quic_vganneva@xxxxxxxxxxx>

Report capability to transmit authentication frames with random TA if
supported by the underlying driver/hardware.

Signed-off-by: Vinay Gannevaram <quic_vganneva@xxxxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux