diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-04-26 10:09:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:50 -0400 |
commit | 35f00cfcc06bb85e0659f9847400518008d78145 (patch) | |
tree | dccebd4dd7cde975d857d1fb3f28dd1e467fa72f /drivers/net/wireless/rt2x00/rt2x00config.c | |
parent | 9f1661718c7fcf82e25c6aed20b729ee372d9d65 (diff) |
rt2x00: Implement support for 802.11n
Extend rt2x00lib capabilities to support 802.11n,
it still lacks aggregation support, but that can
be added in the future.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.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 9c2f5517af2a..863e399d4fa6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -173,6 +173,11 @@ void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, | |||
173 | libconf.conf = conf; | 173 | libconf.conf = conf; |
174 | 174 | ||
175 | if (ieee80211_flags & IEEE80211_CONF_CHANGE_CHANNEL) { | 175 | if (ieee80211_flags & IEEE80211_CONF_CHANGE_CHANNEL) { |
176 | if (conf_is_ht40(conf)) | ||
177 | __set_bit(CONFIG_CHANNEL_HT40, &rt2x00dev->flags); | ||
178 | else | ||
179 | __clear_bit(CONFIG_CHANNEL_HT40, &rt2x00dev->flags); | ||
180 | |||
176 | memcpy(&libconf.rf, | 181 | memcpy(&libconf.rf, |
177 | &rt2x00dev->spec.channels[conf->channel->hw_value], | 182 | &rt2x00dev->spec.channels[conf->channel->hw_value], |
178 | sizeof(libconf.rf)); | 183 | sizeof(libconf.rf)); |