[PATCH 6/7] ctrl_iface: Indicate Instant Communication support
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Thu Oct 8 09:54:37 PDT 2026
From: Ilan Peer <ilan.peer at intel.com>
Report support for Instant Communication in the 'GET_CAPABILITY nan'
control interface command.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
wpa_supplicant/ctrl_iface.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 0d995bb60e..71ce1e613f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5022,7 +5022,19 @@ static int wpa_supplicant_ctrl_iface_get_capability(
pos += res;
buflen -= res;
+
+ if (wpa_s->nan_capa.drv_flags &
+ WPA_DRIVER_FLAGS_NAN_SUPPORT_INSTANT_COMM) {
+ res = os_snprintf(pos, buflen,
+ " INSTANT_COMM");
+ if (os_snprintf_error(buflen, res))
+ return -1;
+
+ pos += res;
+ buflen -= res;
+ }
}
+
#endif /* CONFIG_NAN */
return pos - buf;
}
--
2.53.0
More information about the Hostap
mailing list