aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-19 16:42:10 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 09:54:26 (GMT)
commit7922f1735cfdbd97ce4184a0902874c391ee65e3 (patch)
tree931c7185932a434fa2e8570b8d46c8334967b164 /wpa_supplicant
parent440180c88e1d006c729f42fccfcc924198808a3e (diff)
downloadhostap-06-7922f1735cfdbd97ce4184a0902874c391ee65e3.zip
hostap-06-7922f1735cfdbd97ce4184a0902874c391ee65e3.tar.gz
hostap-06-7922f1735cfdbd97ce4184a0902874c391ee65e3.tar.bz2
Fixed MFP Association Comeback mechanism to use Timeout Interval IE
The separate Association Comeback Time IE was removed from IEEE 802.11w and the Timeout Interval IE (from IEEE 802.11r) is used instead. The editing on this is still somewhat incomplete in IEEE 802.11w/D7.0, but still, the use of Timeout Interval IE is the expected mechanism. (cherry picked from commit adddffd129af12c3719278a7b2936b9730ce6891)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/mlme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/mlme.c b/wpa_supplicant/mlme.c
index 964b8c0..0c63067 100644
--- a/wpa_supplicant/mlme.c
+++ b/wpa_supplicant/mlme.c
@@ -1087,9 +1087,10 @@ static void ieee80211_rx_mgmt_assoc_resp(struct wpa_supplicant *wpa_s,
status_code);
#ifdef CONFIG_IEEE80211W
if (status_code == WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY &&
- elems.assoc_comeback && elems.assoc_comeback_len == 4) {
+ elems.timeout_int && elems.timeout_int_len == 5 &&
+ elems.timeout_int[0] == WLAN_TIMEOUT_ASSOC_COMEBACK) {
u32 tu, ms;
- tu = WPA_GET_LE32(elems.assoc_comeback);
+ tu = WPA_GET_LE32(elems.timeout_int + 1);
ms = tu * 1024 / 1000;
wpa_printf(MSG_DEBUG, "MLME: AP rejected association "
"temporarily; comeback duration %u TU "