diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-04-04 16:15:33 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-11 16:23:44 -0400 |
commit | da40f4074fdfde347974ebcef3ad57a49f7d04a7 (patch) | |
tree | 99d4bfaf5f4d5ce0a0a1c0e3b5dbeaac78060105 /drivers/net/wireless/rt2x00/rt2x00config.c | |
parent | 78f9c85035101317d4189cdb31c582f96854b182 (diff) | |
download | op-kernel-dev-da40f4074fdfde347974ebcef3ad57a49f7d04a7.zip op-kernel-dev-da40f4074fdfde347974ebcef3ad57a49f7d04a7.tar.gz |
rt2x00: configure different txdesc parameters for non HT channel
This is needed when we are concted to non 11n AP.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00config.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index 293676b..e7361d9 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c @@ -217,6 +217,11 @@ void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, libconf.conf = conf; if (ieee80211_flags & IEEE80211_CONF_CHANGE_CHANNEL) { + if (!conf_is_ht(conf)) + set_bit(CONFIG_HT_DISABLED, &rt2x00dev->flags); + else + clear_bit(CONFIG_HT_DISABLED, &rt2x00dev->flags); + if (conf_is_ht40(conf)) { set_bit(CONFIG_CHANNEL_HT40, &rt2x00dev->flags); hw_value = rt2x00ht_center_channel(rt2x00dev, conf); |