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

Veerendranath Jakkam quic_vjakkam at quicinc.com
Sat Jan 7 23:51:52 PST 2023


From: Vinay Gannevaram <quic_vganneva at quicinc.com>

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

Signed-off-by: Vinay Gannevaram <quic_vganneva at quicinc.com>
---
 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




More information about the Hostap mailing list