aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-19 11:48:46 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:53 -0500
commitf797eb7e2903571e9c0e7e5d64113f51209f8dc4 (patch)
tree15522a18521aa5acf4fc2bd68d1cc24d67f00a1e /net/mac80211/mlme.c
parentbb2becac91f13e862d4601a8c5364bc758c35b8e (diff)
mac80211: Fix MFP Association Comeback 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. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 43da6227b37c..b9e4b93089c4 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1317,9 +1317,10 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata,
1317 ieee802_11_parse_elems(pos, len - (pos - (u8 *) mgmt), &elems); 1317 ieee802_11_parse_elems(pos, len - (pos - (u8 *) mgmt), &elems);
1318 1318
1319 if (status_code == WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY && 1319 if (status_code == WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY &&
1320 elems.assoc_comeback && elems.assoc_comeback_len == 4) { 1320 elems.timeout_int && elems.timeout_int_len == 5 &&
1321 elems.timeout_int[0] == WLAN_TIMEOUT_ASSOC_COMEBACK) {
1321 u32 tu, ms; 1322 u32 tu, ms;
1322 tu = get_unaligned_le32(elems.assoc_comeback); 1323 tu = get_unaligned_le32(elems.timeout_int + 1);
1323 ms = tu * 1024 / 1000; 1324 ms = tu * 1024 / 1000;
1324 printk(KERN_DEBUG "%s: AP rejected association temporarily; " 1325 printk(KERN_DEBUG "%s: AP rejected association temporarily; "
1325 "comeback duration %u TU (%u ms)\n", 1326 "comeback duration %u TU (%u ms)\n",