P2Ps: Clear existing value when peer stops sending adv_service_instance
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 5 Jul 2016 09:41:45 +0000 (15:11 +0530)
committerJouni Malinen <j@w1.fi>
Sat, 23 Jul 2016 17:55:52 +0000 (20:55 +0300)
commit0f282c76ee2735b26048ac753ec553818c0f81f7
tree52acdf03f147ac4fed006fac77322d7ac8e0b389
parentce4af563220a835875d87485c8c97e3723f380ea
P2Ps: Clear existing value when peer stops sending adv_service_instance

If a peer stops sending adv_service_instance, we should clear the
existing dev->info.p2ps_instance.

This commit fixes the following scenario:

When peer device stops sending adv_service_instance, wpa_supplicant did
not remove old dev->info.p2ps_instance from device's property. This
variable should be updated as per peer behavior and should be cleared
when peer stops sending this information.

Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/p2p/p2p.c