Browse Source

P2PS: Extend p2p_service_del asp to support 'all' parameter

Extend p2p_service_del asp command to support 'all' parameter to delete
all ASP service advertisements.

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
Max Stepanov 10 years ago
parent
commit
e9d280503a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      wpa_supplicant/ctrl_iface.c

+ 5 - 0
wpa_supplicant/ctrl_iface.c

@@ -5299,6 +5299,11 @@ static int p2p_ctrl_service_del_asp(struct wpa_supplicant *wpa_s, char *cmd)
 {
 	u32 adv_id;
 
+	if (os_strcmp(cmd, "all") == 0) {
+		wpas_p2p_service_flush_asp(wpa_s);
+		return 0;
+	}
+
 	if (sscanf(cmd, "%x", &adv_id) != 1)
 		return -1;