aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-05-07 10:16:24 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-11 15:23:54 -0400
commitaa837e1d6bd1a71b3c30c7738b6c29d41512fe7d (patch)
treeee5ad78a279d22fb63821e4664de7ce03fe6d4d8 /net/mac80211/mlme.c
parent58905ca5b11a0ff3860f55b789cbbf052f7158a7 (diff)
mac80211: set default QoS values according to spec
We've never really cared about the default QoS (WMM) values, but we really should if the AP doesn't send any. This patch makes mac80211 use the default values according to 802.11-2007, and additionally syncs the default values when we disassociate so whatever the last AP said gets "unconfigured". Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 75c487229f2e..c5445bae9d6c 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1043,6 +1043,8 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
1043 1043
1044 rcu_read_unlock(); 1044 rcu_read_unlock();
1045 1045
1046 ieee80211_set_wmm_default(sdata);
1047
1046 ieee80211_recalc_idle(local); 1048 ieee80211_recalc_idle(local);
1047 1049
1048 /* channel(_type) changes are handled by ieee80211_hw_config */ 1050 /* channel(_type) changes are handled by ieee80211_hw_config */
@@ -1658,6 +1660,8 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata,
1658 if (elems.wmm_param) 1660 if (elems.wmm_param)
1659 ieee80211_sta_wmm_params(local, ifmgd, elems.wmm_param, 1661 ieee80211_sta_wmm_params(local, ifmgd, elems.wmm_param,
1660 elems.wmm_param_len); 1662 elems.wmm_param_len);
1663 else
1664 ieee80211_set_wmm_default(sdata);
1661 1665
1662 if (elems.ht_info_elem && elems.wmm_param && 1666 if (elems.ht_info_elem && elems.wmm_param &&
1663 (ifmgd->flags & IEEE80211_STA_WMM_ENABLED) && 1667 (ifmgd->flags & IEEE80211_STA_WMM_ENABLED) &&