aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-08-02 16:25:41 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-02 18:37:09 (GMT)
commit9f59fe8dc893814cebf739df585d81d98259a822 (patch)
treec3b5d824ce5601d40d2037171ced9740e6057e77 /wpa_supplicant/events.c
parentd4e597959c07aa569db349313dde76907f4b2d92 (diff)
downloadhostap-9f59fe8dc893814cebf739df585d81d98259a822.zip
hostap-9f59fe8dc893814cebf739df585d81d98259a822.tar.gz
hostap-9f59fe8dc893814cebf739df585d81d98259a822.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 70f7511..ee2ff81 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -287,9 +287,6 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
os_memset(wpa_s->bssid, 0, ETH_ALEN);
os_memset(wpa_s->pending_bssid, 0, ETH_ALEN);
sme_clear_on_disassoc(wpa_s);
-#ifdef CONFIG_P2P
- os_memset(wpa_s->go_dev_addr, 0, ETH_ALEN);
-#endif /* CONFIG_P2P */
wpa_s->current_bss = NULL;
wpa_s->assoc_freq = 0;