diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 5 |
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", |