diff options
author | Max Stepanov <Max.Stepanov@intel.com> | 2015-03-16 05:16:57 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-03-20 13:56:59 (GMT) |
commit | c40a8918ec005c565279dc76de057b17de4404bd (patch) | |
tree | 2c2b8c141d2b208b317ecdb966dfad51c061b75d /wpa_supplicant/p2p_supplicant_sd.c | |
parent | 2dc422e2b331dfe8214bf945709c4ec605b1f48b (diff) | |
download | hostap-c40a8918ec005c565279dc76de057b17de4404bd.zip hostap-c40a8918ec005c565279dc76de057b17de4404bd.tar.gz hostap-c40a8918ec005c565279dc76de057b17de4404bd.tar.bz2 |
P2PS: Delete ASP advertisements on wpas_p2p_service_flush
Delete all ASP serice advertisement on wpas_p2p_service_flush similarly
to Bonjour and UPnP services.
Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant_sd.c')
-rw-r--r-- | wpa_supplicant/p2p_supplicant_sd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant_sd.c b/wpa_supplicant/p2p_supplicant_sd.c index 54af4b6..fcf0f64 100644 --- a/wpa_supplicant/p2p_supplicant_sd.c +++ b/wpa_supplicant/p2p_supplicant_sd.c @@ -1136,6 +1136,7 @@ void wpas_p2p_service_flush(struct wpa_supplicant *wpa_s) struct p2p_srv_upnp, list) wpas_p2p_srv_upnp_free(usrv); + wpas_p2p_service_flush_asp(wpa_s); wpas_p2p_sd_service_update(wpa_s); } @@ -1179,6 +1180,12 @@ int wpas_p2p_service_add_asp(struct wpa_supplicant *wpa_s, } +void wpas_p2p_service_flush_asp(struct wpa_supplicant *wpa_s) +{ + p2p_service_flush_asp(wpa_s->global->p2p); +} + + int wpas_p2p_service_add_bonjour(struct wpa_supplicant *wpa_s, struct wpabuf *query, struct wpabuf *resp) { |