P2PS: Update SD indicator value on ASP add/del/update
Update a service update indicator value on ASP service advertisement add/del/update operations. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
This commit is contained in:
parent
030a3e12da
commit
2dc422e2b3
1 changed files with 14 additions and 4 deletions
|
@ -1154,7 +1154,12 @@ int wpas_p2p_service_p2ps_id_exists(struct wpa_supplicant *wpa_s, u32 adv_id)
|
||||||
|
|
||||||
int wpas_p2p_service_del_asp(struct wpa_supplicant *wpa_s, u32 adv_id)
|
int wpas_p2p_service_del_asp(struct wpa_supplicant *wpa_s, u32 adv_id)
|
||||||
{
|
{
|
||||||
return p2p_service_del_asp(wpa_s->global->p2p, adv_id);
|
int ret;
|
||||||
|
|
||||||
|
ret = p2p_service_del_asp(wpa_s->global->p2p, adv_id);
|
||||||
|
if (ret == 0)
|
||||||
|
wpas_p2p_sd_service_update(wpa_s);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1163,9 +1168,14 @@ int wpas_p2p_service_add_asp(struct wpa_supplicant *wpa_s,
|
||||||
const char *adv_str, u8 svc_state,
|
const char *adv_str, u8 svc_state,
|
||||||
u16 config_methods, const char *svc_info)
|
u16 config_methods, const char *svc_info)
|
||||||
{
|
{
|
||||||
return p2p_service_add_asp(wpa_s->global->p2p, auto_accept, adv_id,
|
int ret;
|
||||||
|
|
||||||
|
ret = p2p_service_add_asp(wpa_s->global->p2p, auto_accept, adv_id,
|
||||||
adv_str, svc_state, config_methods,
|
adv_str, svc_state, config_methods,
|
||||||
svc_info);
|
svc_info);
|
||||||
|
if (ret == 0)
|
||||||
|
wpas_p2p_sd_service_update(wpa_s);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue