diff options
-rw-r--r-- | net/mac80211/mlme.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 8b733cf6f3ea..77913a15f537 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -880,14 +880,6 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata, | |||
880 | sdata->u.mgd.flags &= ~(IEEE80211_STA_CONNECTION_POLL | | 880 | sdata->u.mgd.flags &= ~(IEEE80211_STA_CONNECTION_POLL | |
881 | IEEE80211_STA_BEACON_POLL); | 881 | IEEE80211_STA_BEACON_POLL); |
882 | 882 | ||
883 | /* | ||
884 | * Always handle WMM once after association regardless | ||
885 | * of the first value the AP uses. Setting -1 here has | ||
886 | * that effect because the AP values is an unsigned | ||
887 | * 4-bit value. | ||
888 | */ | ||
889 | sdata->u.mgd.wmm_last_param_set = -1; | ||
890 | |||
891 | ieee80211_led_assoc(local, 1); | 883 | ieee80211_led_assoc(local, 1); |
892 | 884 | ||
893 | if (local->hw.flags & IEEE80211_HW_NEED_DTIM_PERIOD) | 885 | if (local->hw.flags & IEEE80211_HW_NEED_DTIM_PERIOD) |
@@ -1367,6 +1359,14 @@ static bool ieee80211_assoc_success(struct ieee80211_work *wk, | |||
1367 | return false; | 1359 | return false; |
1368 | } | 1360 | } |
1369 | 1361 | ||
1362 | /* | ||
1363 | * Always handle WMM once after association regardless | ||
1364 | * of the first value the AP uses. Setting -1 here has | ||
1365 | * that effect because the AP values is an unsigned | ||
1366 | * 4-bit value. | ||
1367 | */ | ||
1368 | ifmgd->wmm_last_param_set = -1; | ||
1369 | |||
1370 | if (elems.wmm_param) | 1370 | if (elems.wmm_param) |
1371 | ieee80211_sta_wmm_params(local, sdata, elems.wmm_param, | 1371 | ieee80211_sta_wmm_params(local, sdata, elems.wmm_param, |
1372 | elems.wmm_param_len); | 1372 | elems.wmm_param_len); |