[PATCH 26/35] ctrl_iface: Support configuration of publish/subscribe match filters

Andrei Otcheretianski andrei.otcheretianski at intel.com
Mon Oct 20 05:28:01 PDT 2025


Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 wpa_supplicant/ctrl_iface.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index c3a9194426..77ee987c7f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -12800,6 +12800,16 @@ static int wpas_ctrl_nan_publish(struct wpa_supplicant *wpa_s, char *cmd,
 			continue;
 		}
 
+		if (os_strncmp(token, "match_filter_tx=", 16) == 0) {
+			params.match_filter_tx = token + 16;
+			continue;
+		}
+
+		if (os_strncmp(token, "match_filter_rx=", 16) == 0) {
+			params.match_filter_rx = token + 16;
+			continue;
+		}
+
 		wpa_printf(MSG_INFO, "CTRL: Invalid NAN_PUBLISH parameter: %s",
 			   token);
 		goto fail;
@@ -12967,6 +12977,16 @@ static int wpas_ctrl_nan_subscribe(struct wpa_supplicant *wpa_s, char *cmd,
 			continue;
 		}
 
+		if (os_strncmp(token, "match_filter_tx=", 16) == 0) {
+			params.match_filter_tx = token + 16;
+			continue;
+		}
+
+		if (os_strncmp(token, "match_filter_rx=", 16) == 0) {
+			params.match_filter_rx = token + 16;
+			continue;
+		}
+
 		wpa_printf(MSG_INFO,
 			   "CTRL: Invalid NAN_SUBSCRIBE parameter: %s",
 			   token);
-- 
2.49.0




More information about the Hostap mailing list