[PATCH 5/6] Report AUTH RANDOM-TA capability to control interface

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

 



From: Vinay Gannevaram <quic_vganneva@xxxxxxxxxxx>

Report the capability of underlying driver/hardware to support
authentication frames with random TA to control interface.

Signed-off-by: Vinay Gannevaram <quic_vganneva@xxxxxxxxxxx>
---
 wpa_supplicant/ctrl_iface.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index d831a805f..ae3ab605f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -4887,6 +4887,14 @@ static int wpa_supplicant_ctrl_iface_get_capability(
 		return res;
 	}
 
+	if (os_strcmp(field, "auth_rand_mac") == 0 &&
+	    (wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_AUTH_AND_DEAUTH_RANDOM_TA)) {
+		res = os_snprintf(buf, buflen, "RANDOM-TA");
+		if (os_snprintf_error(buflen, res))
+			return -1;
+		return res;
+	}
+
 	wpa_printf(MSG_DEBUG, "CTRL_IFACE: Unknown GET_CAPABILITY field '%s'",
 		   field);
 
-- 
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