diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-15 16:21:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-15 16:21:34 -0400 |
commit | 5c01d5669356e13f0fb468944c1dd4c6a7e978ad (patch) | |
tree | fa43345288d7b25fac92b3b35360a177c4947313 /net/mac80211/cfg.c | |
parent | fea069152614cdeefba4b2bf80afcddb9c217fc8 (diff) | |
parent | a5e944f1d955f3819503348426763e21e0413ba6 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/wl12xx/wl1271_main.c
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index c41aaba839fa..7dd7cda75cfa 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1137,6 +1137,10 @@ static int ieee80211_set_txq_params(struct wiphy *wiphy, | |||
1137 | return -EINVAL; | 1137 | return -EINVAL; |
1138 | } | 1138 | } |
1139 | 1139 | ||
1140 | /* enable WMM or activate new settings */ | ||
1141 | local->hw.conf.flags |= IEEE80211_CONF_QOS; | ||
1142 | drv_config(local, IEEE80211_CONF_CHANGE_QOS); | ||
1143 | |||
1140 | return 0; | 1144 | return 0; |
1141 | } | 1145 | } |
1142 | 1146 | ||
@@ -1412,9 +1416,6 @@ static int ieee80211_set_cqm_rssi_config(struct wiphy *wiphy, | |||
1412 | struct ieee80211_vif *vif = &sdata->vif; | 1416 | struct ieee80211_vif *vif = &sdata->vif; |
1413 | struct ieee80211_bss_conf *bss_conf = &vif->bss_conf; | 1417 | struct ieee80211_bss_conf *bss_conf = &vif->bss_conf; |
1414 | 1418 | ||
1415 | if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_CQM_RSSI)) | ||
1416 | return -EOPNOTSUPP; | ||
1417 | |||
1418 | if (rssi_thold == bss_conf->cqm_rssi_thold && | 1419 | if (rssi_thold == bss_conf->cqm_rssi_thold && |
1419 | rssi_hyst == bss_conf->cqm_rssi_hyst) | 1420 | rssi_hyst == bss_conf->cqm_rssi_hyst) |
1420 | return 0; | 1421 | return 0; |
@@ -1422,6 +1423,12 @@ static int ieee80211_set_cqm_rssi_config(struct wiphy *wiphy, | |||
1422 | bss_conf->cqm_rssi_thold = rssi_thold; | 1423 | bss_conf->cqm_rssi_thold = rssi_thold; |
1423 | bss_conf->cqm_rssi_hyst = rssi_hyst; | 1424 | bss_conf->cqm_rssi_hyst = rssi_hyst; |
1424 | 1425 | ||
1426 | if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_CQM_RSSI)) { | ||
1427 | if (sdata->vif.type != NL80211_IFTYPE_STATION) | ||
1428 | return -EOPNOTSUPP; | ||
1429 | return 0; | ||
1430 | } | ||
1431 | |||
1425 | /* tell the driver upon association, unless already associated */ | 1432 | /* tell the driver upon association, unless already associated */ |
1426 | if (sdata->u.mgd.associated) | 1433 | if (sdata->u.mgd.associated) |
1427 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_CQM); | 1434 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_CQM); |