aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-13 16:26:25 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-13 16:26:25 (GMT)
commitfe1919856c3e564748c4601f27b0953d897beaee (patch)
tree2883e8fa35a18fe8d5452a681801cf7c18894410
parent86f7b62a3315499c2efd25b3a57ea591a6e4fd7c (diff)
downloadhostap-fe1919856c3e564748c4601f27b0953d897beaee.zip
hostap-fe1919856c3e564748c4601f27b0953d897beaee.tar.gz
hostap-fe1919856c3e564748c4601f27b0953d897beaee.tar.bz2
FT: Update SME frequency info before sme_associate() call
This is needed to allow FT-over-DS to request correct channel for the reassociation with the target AP.
-rw-r--r--wpa_supplicant/events.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index cfe6dc3..8e04248 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1545,7 +1545,16 @@ static void ft_rx_action(struct wpa_supplicant *wpa_s, const u8 *data,
target_ap_addr, NULL, 0) < 0)
return;
- sme_associate(wpa_s, WPAS_MODE_INFRA, target_ap_addr, WLAN_AUTH_FT);
+#ifdef CONFIG_SME
+ {
+ struct wpa_bss *bss;
+ bss = wpa_bss_get_bssid(wpa_s, target_ap_addr);
+ if (bss)
+ wpa_s->sme.freq = bss->freq;
+ sme_associate(wpa_s, WPAS_MODE_INFRA, target_ap_addr,
+ WLAN_AUTH_FT);
+ }
+#endif /* CONFIG_SME */
}
#endif /* CONFIG_IEEE80211R */