diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2010-03-01 04:12:57 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-01 19:01:09 -0400 |
commit | 5421e40def70b76fb0a677f963a8390b6c3cc69a (patch) | |
tree | aee345097385fb64ffd9a642b34bf50312a84449 /net/mac80211/mlme.c | |
parent | 6c6a223088cf477b941fd57806dd0187ada219a0 (diff) |
mac80211: Fix HT rate control configuration
commit 4fa004373133ece3d9b1c0a7e243b0e53760b165 upstream.
Handling HT configuration changes involved setting the channel
with the new HT parameters and then issuing a rate_update()
notification to the driver.
This behavior changed after the off-channel changes. Now, the channel
is not updated with the new HT params in enable_ht() - instead, it
is now done when the scan work terminates. This results in the driver
depending on stale information, defaulting to non-HT mode always.
Fix this by passing the new channel type to the driver.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 05a18f43e1bf..9072a412089e 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -205,7 +205,8 @@ static u32 ieee80211_enable_ht(struct ieee80211_sub_if_data *sdata, | |||
205 | sta = sta_info_get(local, bssid); | 205 | sta = sta_info_get(local, bssid); |
206 | if (sta) | 206 | if (sta) |
207 | rate_control_rate_update(local, sband, sta, | 207 | rate_control_rate_update(local, sband, sta, |
208 | IEEE80211_RC_HT_CHANGED); | 208 | IEEE80211_RC_HT_CHANGED, |
209 | local->oper_channel_type); | ||
209 | rcu_read_unlock(); | 210 | rcu_read_unlock(); |
210 | } | 211 | } |
211 | 212 | ||