[RFC 25/34] ctrl_iface: Support configuration of publish/subscribe match filters
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Wed Aug 13 10:39:09 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 b4498c4773..6119378b08 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -12663,6 +12663,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;
@@ -12825,6 +12835,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