mac80211: Fix HT rate control configuration
authorSujith <Sujith.Manoharan@atheros.com>
Mon, 1 Mar 2010 09:12:57 +0000 (14:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Mar 2010 20:39:21 +0000 (15:39 -0500)
commit4fa004373133ece3d9b1c0a7e243b0e53760b165
treee70b44c3d6a5afef0238caff3c7eefbcc74b0bc0
parentb08dfd0435333818a03b38867c556ebcbb3abc02
mac80211: Fix HT rate control configuration

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.

Cc: stable@kernel.org
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/rc.c
include/net/mac80211.h
net/mac80211/mlme.c
net/mac80211/rate.h