P2P: Do not clear wpa_s->go_dev_addr before group removal
authorJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 16:25:41 +0000 (19:25 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 18:37:09 +0000 (21:37 +0300)
commit9f59fe8dc893814cebf739df585d81d98259a822
treec3b5d824ce5601d40d2037171ced9740e6057e77
parentd4e597959c07aa569db349313dde76907f4b2d92
P2P: Do not clear wpa_s->go_dev_addr before group removal

This variable is needed to figure out whether a wpa_supplicant interface
is for a P2P group that is (or was) connected to a specific GO. The
previous implementation was able to find such a case only when there was
an association with the GO. However, this may be needed even if there is
a temporary disconnection from the GO. Keep the GO device address
information over such temporary disconnections and only remove it on
group termination. This fixes an issue with D-Bus Peer PropertiesChanged
signals for the Groups property in case a P2P group gets removed due to
group idle timeout instead of explicit group termination command (local
request) or GO notification.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c