diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-06-12 16:22:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-06-15 15:05:52 -0400 |
commit | 508b08e7121f2083c9e9cd82f10b9088b6bc13fb (patch) | |
tree | 22a23d6ab5084a3e882ed7143a4347e5c32bba4c /drivers | |
parent | 8e8df3a08c6f3098b54639ee6892e3753ad5f210 (diff) |
iwlwifi: check control channel for pure 40MHz
for pure 40MHz mode, set the control channel location if provided, but not
like Mixed mode; if information is not provided, still allow 40MHz
operation.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index b2875fe12561..b122eedef369 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -826,9 +826,18 @@ void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_info *ht_info) | |||
826 | RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK); | 826 | RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK); |
827 | if (iwl_is_fat_tx_allowed(priv, NULL)) { | 827 | if (iwl_is_fat_tx_allowed(priv, NULL)) { |
828 | /* pure 40 fat */ | 828 | /* pure 40 fat */ |
829 | if (ht_info->ht_protection == IEEE80211_HT_OP_MODE_PROTECTION_20MHZ) | 829 | if (ht_info->ht_protection == IEEE80211_HT_OP_MODE_PROTECTION_20MHZ) { |
830 | rxon->flags |= RXON_FLG_CHANNEL_MODE_PURE_40; | 830 | rxon->flags |= RXON_FLG_CHANNEL_MODE_PURE_40; |
831 | else { | 831 | /* Note: control channel is opposite of extension channel */ |
832 | switch (ht_info->extension_chan_offset) { | ||
833 | case IEEE80211_HT_PARAM_CHA_SEC_ABOVE: | ||
834 | rxon->flags &= ~RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK; | ||
835 | break; | ||
836 | case IEEE80211_HT_PARAM_CHA_SEC_BELOW: | ||
837 | rxon->flags |= RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK; | ||
838 | break; | ||
839 | } | ||
840 | } else { | ||
832 | /* Note: control channel is opposite of extension channel */ | 841 | /* Note: control channel is opposite of extension channel */ |
833 | switch (ht_info->extension_chan_offset) { | 842 | switch (ht_info->extension_chan_offset) { |
834 | case IEEE80211_HT_PARAM_CHA_SEC_ABOVE: | 843 | case IEEE80211_HT_PARAM_CHA_SEC_ABOVE: |