Message ID | 1426483019-7258-1-git-send-email-ilan.peer@intel.com |
---|---|
State | Accepted |
Headers | show |
On Mon, Mar 16, 2015 at 01:16:56AM -0400, Ilan Peer wrote: > Update a service update indicator value on ASP service advertisement > add/del/update operations. Thanks, applied all four patches. Though, I moved the p2p_sd_service_update() calls from src/p2p/p2p.c to wpa_supplicant/p2p_supplicant_sd.c to be consistent with the existing UPnP and Bonjour cases.
> -----Original Message----- > From: hostap-bounces@lists.shmoo.com [mailto:hostap- > bounces@lists.shmoo.com] On Behalf Of Jouni Malinen > Sent: Friday, March 20, 2015 16:28 > To: hostap@lists.shmoo.com > Subject: Re: [PATCH 1/4] P2PS: update SD indicator value on asp > add/del/update > > On Mon, Mar 16, 2015 at 01:16:56AM -0400, Ilan Peer wrote: > > Update a service update indicator value on ASP service advertisement > > add/del/update operations. > > Thanks, applied all four patches. Though, I moved the > p2p_sd_service_update() calls from src/p2p/p2p.c to > wpa_supplicant/p2p_supplicant_sd.c to be consistent with the existing UPnP > and Bonjour cases. > Sure. Thanks, Ilan.
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 6adb3dc..e915bdb 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -2638,6 +2638,7 @@ int p2p_service_del_asp(struct p2p_data *p2p, u32 adv_id) p2p_dbg(p2p, "Delete ASP adv_id=0x%x", adv_id); *prior = adv_data->next; os_free(adv_data); + p2p_sd_service_update(p2p); return 0; } prior = &adv_data->next; @@ -2726,6 +2727,7 @@ inserted: "Added ASP advertisement adv_id=0x%x config_methods=0x%x svc_state=0x%x adv_str='%s'", adv_id, adv_data->config_methods, svc_state, adv_str); + p2p_sd_service_update(p2p); return 0; }