[PATCH 1/4] P2PS: update SD indicator value on asp add/del/update

Ilan Peer ilan.peer at intel.com
Mon Mar 16 01:16:56 EDT 2015


From: Max Stepanov <Max.Stepanov at intel.com>

Update a service update indicator value on ASP service advertisement
add/del/update operations.

Signed-off-by: Max Stepanov <Max.Stepanov at intel.com>
---
 src/p2p/p2p.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 }
 
-- 
1.8.3.2



More information about the HostAP mailing list