mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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>
This commit is contained in:
parent
6dd51ecbf1
commit
e9d280503a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user