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
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue