]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Control interface command to flush NAN publish and subscribe sessions
authorShivani Baranwal <quic_shivbara@quicinc.com>
Wed, 30 Oct 2024 13:26:14 +0000 (18:56 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 31 Oct 2024 19:42:26 +0000 (21:42 +0200)
Add a control interface command for NAN_FLUSH to terminate all the
publish and subscribe sessions. This was previously done as a part of
the complete FLUSH operation, but it can be useful to be able to do this
specifically for NAN services without impacting other areas.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
wpa_supplicant/ctrl_iface.c

index 0ccccde016f9cb78e35faedb62795a7165d3d51d..15ff0f2b74154c09f5b5f7c98435763764cffaea 100644 (file)
@@ -13669,6 +13669,8 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
        } else if (os_strncmp(buf, "NAN_TRANSMIT ", 13) == 0) {
                if (wpas_ctrl_nan_transmit(wpa_s, buf + 13) < 0)
                        reply_len = -1;
+       } else if (os_strcmp(buf, "NAN_FLUSH") == 0) {
+               wpas_nan_usd_flush(wpa_s);
 #endif /* CONFIG_NAN_USD */
 #ifdef CONFIG_PASN
        } else if (os_strncmp(buf, "PASN_START ", 11) == 0) {