aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.c8
-rw-r--r--include/net/cfg80211.h10
-rw-r--r--net/mac80211/mlme.c4
-rw-r--r--net/wireless/reg.c8
5 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 5393fb3f452c..6c1b171d92be 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -603,10 +603,10 @@ static u8 iwl_is_channel_extension(struct iwl_priv *priv,
603 603
604 if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_ABOVE) 604 if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_ABOVE)
605 return !(ch_info->fat_extension_channel & 605 return !(ch_info->fat_extension_channel &
606 IEEE80211_CHAN_NO_FAT_ABOVE); 606 IEEE80211_CHAN_NO_HT40PLUS);
607 else if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_BELOW) 607 else if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_BELOW)
608 return !(ch_info->fat_extension_channel & 608 return !(ch_info->fat_extension_channel &
609 IEEE80211_CHAN_NO_FAT_BELOW); 609 IEEE80211_CHAN_NO_HT40MINUS);
610 610
611 return 0; 611 return 0;
612} 612}
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
index 401438aec19c..b400bd510fc5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
@@ -481,8 +481,8 @@ int iwl_init_channel_map(struct iwl_priv *priv)
481 /* First write that fat is not enabled, and then enable 481 /* First write that fat is not enabled, and then enable
482 * one by one */ 482 * one by one */
483 ch_info->fat_extension_channel = 483 ch_info->fat_extension_channel =
484 (IEEE80211_CHAN_NO_FAT_ABOVE | 484 (IEEE80211_CHAN_NO_HT40PLUS |
485 IEEE80211_CHAN_NO_FAT_BELOW); 485 IEEE80211_CHAN_NO_HT40MINUS);
486 486
487 if (!(is_channel_valid(ch_info))) { 487 if (!(is_channel_valid(ch_info))) {
488 IWL_DEBUG_INFO(priv, "Ch. %d Flags %x [%sGHz] - " 488 IWL_DEBUG_INFO(priv, "Ch. %d Flags %x [%sGHz] - "
@@ -561,7 +561,7 @@ int iwl_init_channel_map(struct iwl_priv *priv)
561 fat_extension_chan = 0; 561 fat_extension_chan = 0;
562 else 562 else
563 fat_extension_chan = 563 fat_extension_chan =
564 IEEE80211_CHAN_NO_FAT_BELOW; 564 IEEE80211_CHAN_NO_HT40MINUS;
565 565
566 /* Set up driver's info for lower half */ 566 /* Set up driver's info for lower half */
567 iwl_set_fat_chan_info(priv, ieeeband, 567 iwl_set_fat_chan_info(priv, ieeeband,
@@ -573,7 +573,7 @@ int iwl_init_channel_map(struct iwl_priv *priv)
573 iwl_set_fat_chan_info(priv, ieeeband, 573 iwl_set_fat_chan_info(priv, ieeeband,
574 (eeprom_ch_index[ch] + 4), 574 (eeprom_ch_index[ch] + 4),
575 &(eeprom_ch_info[ch]), 575 &(eeprom_ch_info[ch]),
576 IEEE80211_CHAN_NO_FAT_ABOVE); 576 IEEE80211_CHAN_NO_HT40PLUS);
577 } 577 }
578 } 578 }
579 579
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 282d58d52fce..7391ad10c8c0 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -56,9 +56,9 @@ enum ieee80211_band {
56 * on this channel. 56 * on this channel.
57 * @IEEE80211_CHAN_NO_IBSS: IBSS is not allowed on this channel. 57 * @IEEE80211_CHAN_NO_IBSS: IBSS is not allowed on this channel.
58 * @IEEE80211_CHAN_RADAR: Radar detection is required on this channel. 58 * @IEEE80211_CHAN_RADAR: Radar detection is required on this channel.
59 * @IEEE80211_CHAN_NO_FAT_ABOVE: extension channel above this channel 59 * @IEEE80211_CHAN_NO_HT40PLUS: extension channel above this channel
60 * is not permitted. 60 * is not permitted.
61 * @IEEE80211_CHAN_NO_FAT_BELOW: extension channel below this channel 61 * @IEEE80211_CHAN_NO_HT40MINUS: extension channel below this channel
62 * is not permitted. 62 * is not permitted.
63 */ 63 */
64enum ieee80211_channel_flags { 64enum ieee80211_channel_flags {
@@ -66,12 +66,12 @@ enum ieee80211_channel_flags {
66 IEEE80211_CHAN_PASSIVE_SCAN = 1<<1, 66 IEEE80211_CHAN_PASSIVE_SCAN = 1<<1,
67 IEEE80211_CHAN_NO_IBSS = 1<<2, 67 IEEE80211_CHAN_NO_IBSS = 1<<2,
68 IEEE80211_CHAN_RADAR = 1<<3, 68 IEEE80211_CHAN_RADAR = 1<<3,
69 IEEE80211_CHAN_NO_FAT_ABOVE = 1<<4, 69 IEEE80211_CHAN_NO_HT40PLUS = 1<<4,
70 IEEE80211_CHAN_NO_FAT_BELOW = 1<<5, 70 IEEE80211_CHAN_NO_HT40MINUS = 1<<5,
71}; 71};
72 72
73#define IEEE80211_CHAN_NO_HT40 \ 73#define IEEE80211_CHAN_NO_HT40 \
74 (IEEE80211_CHAN_NO_FAT_ABOVE | IEEE80211_CHAN_NO_FAT_BELOW) 74 (IEEE80211_CHAN_NO_HT40PLUS | IEEE80211_CHAN_NO_HT40MINUS)
75 75
76/** 76/**
77 * struct ieee80211_channel - channel definition 77 * struct ieee80211_channel - channel definition
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ae030688771f..da582b643b9a 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -349,13 +349,13 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
349 349
350 switch (ht_info->ht_param & IEEE80211_HT_PARAM_CHA_SEC_OFFSET) { 350 switch (ht_info->ht_param & IEEE80211_HT_PARAM_CHA_SEC_OFFSET) {
351 case IEEE80211_HT_PARAM_CHA_SEC_ABOVE: 351 case IEEE80211_HT_PARAM_CHA_SEC_ABOVE:
352 if (flags & IEEE80211_CHAN_NO_FAT_ABOVE) { 352 if (flags & IEEE80211_CHAN_NO_HT40PLUS) {
353 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; 353 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
354 cap &= ~IEEE80211_HT_CAP_SGI_40; 354 cap &= ~IEEE80211_HT_CAP_SGI_40;
355 } 355 }
356 break; 356 break;
357 case IEEE80211_HT_PARAM_CHA_SEC_BELOW: 357 case IEEE80211_HT_PARAM_CHA_SEC_BELOW:
358 if (flags & IEEE80211_CHAN_NO_FAT_BELOW) { 358 if (flags & IEEE80211_CHAN_NO_HT40MINUS) {
359 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; 359 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
360 cap &= ~IEEE80211_HT_CAP_SGI_40; 360 cap &= ~IEEE80211_HT_CAP_SGI_40;
361 } 361 }
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index d897528ee7fc..48db569d4c6b 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1226,14 +1226,14 @@ static void reg_process_ht_flags_channel(struct wiphy *wiphy,
1226 * to include that as well. 1226 * to include that as well.
1227 */ 1227 */
1228 if (is_ht40_not_allowed(channel_before)) 1228 if (is_ht40_not_allowed(channel_before))
1229 channel->flags |= IEEE80211_CHAN_NO_FAT_BELOW; 1229 channel->flags |= IEEE80211_CHAN_NO_HT40MINUS;
1230 else 1230 else
1231 channel->flags &= ~IEEE80211_CHAN_NO_FAT_BELOW; 1231 channel->flags &= ~IEEE80211_CHAN_NO_HT40MINUS;
1232 1232
1233 if (is_ht40_not_allowed(channel_after)) 1233 if (is_ht40_not_allowed(channel_after))
1234 channel->flags |= IEEE80211_CHAN_NO_FAT_ABOVE; 1234 channel->flags |= IEEE80211_CHAN_NO_HT40PLUS;
1235 else 1235 else
1236 channel->flags &= ~IEEE80211_CHAN_NO_FAT_ABOVE; 1236 channel->flags &= ~IEEE80211_CHAN_NO_HT40PLUS;
1237} 1237}
1238 1238
1239static void reg_process_ht_flags_band(struct wiphy *wiphy, 1239static void reg_process_ht_flags_band(struct wiphy *wiphy,