aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-10 16:51:36 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-10 16:51:36 (GMT)
commita0227929dc34a49de517eb9d6cc9e37ff6000aa4 (patch)
tree1eeaf5b9cda11e624a800277f7baef355d86e21b /wpa_supplicant/events.c
parent198f82a1e3f78fd478e879185c43965c25840e0d (diff)
downloadhostap-a0227929dc34a49de517eb9d6cc9e37ff6000aa4.zip
hostap-a0227929dc34a49de517eb9d6cc9e37ff6000aa4.tar.gz
hostap-a0227929dc34a49de517eb9d6cc9e37ff6000aa4.tar.bz2
P2P: Do not use reassociation after getting disassociated
This avoids issues with some APs rejecting a reassociation if the station is not currently associated as reported by Yossi Wortzel. The change is based on a patch from Arik Nemtsov. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index d09be6c..e7dfa4e 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -121,6 +121,9 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
bssid_changed = !is_zero_ether_addr(wpa_s->bssid);
os_memset(wpa_s->bssid, 0, ETH_ALEN);
os_memset(wpa_s->pending_bssid, 0, ETH_ALEN);
+#ifdef CONFIG_SME
+ wpa_s->sme.prev_bssid_set = 0;
+#endif /* CONFIG_SME */
#ifdef CONFIG_P2P
os_memset(wpa_s->go_dev_addr, 0, ETH_ALEN);
#endif /* CONFIG_P2P */