aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-08-07 18:41:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:46 -0400
commit7aafef1c6e2e24f9a10dc2972bf0ee70624ccc47 (patch)
tree98cee2e028bc7fe7ea6fb2bac2a39780e78919d5 /drivers/net/wireless/iwlwifi/iwl-core.c
parent3d816c77ecb05d3a3e974a205e53392e5353553e (diff)
iwlwifi: name changed from "fat" to "ht40"
Rename "fat" to "ht40" The term "fat channel" is deprecated in favor of "HT40" 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/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 30f1953208e..5315d347a00 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -105,7 +105,7 @@ void iwl_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags,
105 r->flags |= IEEE80211_TX_RC_MCS; 105 r->flags |= IEEE80211_TX_RC_MCS;
106 if (rate_n_flags & RATE_MCS_GF_MSK) 106 if (rate_n_flags & RATE_MCS_GF_MSK)
107 r->flags |= IEEE80211_TX_RC_GREEN_FIELD; 107 r->flags |= IEEE80211_TX_RC_GREEN_FIELD;
108 if (rate_n_flags & RATE_MCS_FAT_MSK) 108 if (rate_n_flags & RATE_MCS_HT40_MSK)
109 r->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH; 109 r->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
110 if (rate_n_flags & RATE_MCS_DUP_MSK) 110 if (rate_n_flags & RATE_MCS_DUP_MSK)
111 r->flags |= IEEE80211_TX_RC_DUP_DATA; 111 r->flags |= IEEE80211_TX_RC_DUP_DATA;
@@ -400,7 +400,7 @@ static void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv,
400 (WLAN_HT_CAP_SM_PS_DISABLED << 2)); 400 (WLAN_HT_CAP_SM_PS_DISABLED << 2));
401 401
402 max_bit_rate = MAX_BIT_RATE_20_MHZ; 402 max_bit_rate = MAX_BIT_RATE_20_MHZ;
403 if (priv->hw_params.fat_channel & BIT(band)) { 403 if (priv->hw_params.ht40_channel & BIT(band)) {
404 ht_info->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; 404 ht_info->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40;
405 ht_info->cap |= IEEE80211_HT_CAP_SGI_40; 405 ht_info->cap |= IEEE80211_HT_CAP_SGI_40;
406 ht_info->mcs.rx_mask[4] = 0x01; 406 ht_info->mcs.rx_mask[4] = 0x01;
@@ -540,7 +540,7 @@ int iwlcore_init_geos(struct iwl_priv *priv)
540 if (ch->flags & EEPROM_CHANNEL_RADAR) 540 if (ch->flags & EEPROM_CHANNEL_RADAR)
541 geo_ch->flags |= IEEE80211_CHAN_RADAR; 541 geo_ch->flags |= IEEE80211_CHAN_RADAR;
542 542
543 geo_ch->flags |= ch->fat_extension_channel; 543 geo_ch->flags |= ch->ht40_extension_channel;
544 544
545 if (ch->max_power_avg > priv->tx_power_channel_lmt) 545 if (ch->max_power_avg > priv->tx_power_channel_lmt)
546 priv->tx_power_channel_lmt = ch->max_power_avg; 546 priv->tx_power_channel_lmt = ch->max_power_avg;
@@ -604,16 +604,16 @@ static u8 iwl_is_channel_extension(struct iwl_priv *priv,
604 return 0; 604 return 0;
605 605
606 if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_ABOVE) 606 if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_ABOVE)
607 return !(ch_info->fat_extension_channel & 607 return !(ch_info->ht40_extension_channel &
608 IEEE80211_CHAN_NO_HT40PLUS); 608 IEEE80211_CHAN_NO_HT40PLUS);
609 else if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_BELOW) 609 else if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_BELOW)
610 return !(ch_info->fat_extension_channel & 610 return !(ch_info->ht40_extension_channel &
611 IEEE80211_CHAN_NO_HT40MINUS); 611 IEEE80211_CHAN_NO_HT40MINUS);
612 612
613 return 0; 613 return 0;
614} 614}
615 615
616u8 iwl_is_fat_tx_allowed(struct iwl_priv *priv, 616u8 iwl_is_ht40_tx_allowed(struct iwl_priv *priv,
617 struct ieee80211_sta_ht_cap *sta_ht_inf) 617 struct ieee80211_sta_ht_cap *sta_ht_inf)
618{ 618{
619 struct iwl_ht_info *iwl_ht_conf = &priv->current_ht_config; 619 struct iwl_ht_info *iwl_ht_conf = &priv->current_ht_config;
@@ -637,7 +637,7 @@ u8 iwl_is_fat_tx_allowed(struct iwl_priv *priv,
637 le16_to_cpu(priv->staging_rxon.channel), 637 le16_to_cpu(priv->staging_rxon.channel),
638 iwl_ht_conf->extension_chan_offset); 638 iwl_ht_conf->extension_chan_offset);
639} 639}
640EXPORT_SYMBOL(iwl_is_fat_tx_allowed); 640EXPORT_SYMBOL(iwl_is_ht40_tx_allowed);
641 641
642static u16 iwl_adjust_beacon_interval(u16 beacon_val, u16 max_beacon_val) 642static u16 iwl_adjust_beacon_interval(u16 beacon_val, u16 max_beacon_val)
643{ 643{
@@ -866,7 +866,7 @@ void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_info *ht_info)
866 if (!ht_info->is_ht) { 866 if (!ht_info->is_ht) {
867 rxon->flags &= ~(RXON_FLG_CHANNEL_MODE_MSK | 867 rxon->flags &= ~(RXON_FLG_CHANNEL_MODE_MSK |
868 RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK | 868 RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK |
869 RXON_FLG_FAT_PROT_MSK | 869 RXON_FLG_HT40_PROT_MSK |
870 RXON_FLG_HT_PROT_MSK); 870 RXON_FLG_HT_PROT_MSK);
871 return; 871 return;
872 } 872 }
@@ -877,12 +877,12 @@ void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_info *ht_info)
877 rxon->flags |= cpu_to_le32(ht_info->ht_protection << RXON_FLG_HT_OPERATING_MODE_POS); 877 rxon->flags |= cpu_to_le32(ht_info->ht_protection << RXON_FLG_HT_OPERATING_MODE_POS);
878 878
879 /* Set up channel bandwidth: 879 /* Set up channel bandwidth:
880 * 20 MHz only, 20/40 mixed or pure 40 if fat ok */ 880 * 20 MHz only, 20/40 mixed or pure 40 if ht40 ok */
881 /* clear the HT channel mode before set the mode */ 881 /* clear the HT channel mode before set the mode */
882 rxon->flags &= ~(RXON_FLG_CHANNEL_MODE_MSK | 882 rxon->flags &= ~(RXON_FLG_CHANNEL_MODE_MSK |
883 RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK); 883 RXON_FLG_CTRL_CHANNEL_LOC_HI_MSK);
884 if (iwl_is_fat_tx_allowed(priv, NULL)) { 884 if (iwl_is_ht40_tx_allowed(priv, NULL)) {
885 /* pure 40 fat */ 885 /* pure ht40 */
886 if (ht_info->ht_protection == IEEE80211_HT_OP_MODE_PROTECTION_20MHZ) { 886 if (ht_info->ht_protection == IEEE80211_HT_OP_MODE_PROTECTION_20MHZ) {
887 rxon->flags |= RXON_FLG_CHANNEL_MODE_PURE_40; 887 rxon->flags |= RXON_FLG_CHANNEL_MODE_PURE_40;
888 /* Note: control channel is opposite of extension channel */ 888 /* Note: control channel is opposite of extension channel */
@@ -2428,7 +2428,7 @@ static void iwl_ht_conf(struct iwl_priv *priv,
2428 else if (conf_is_ht40_plus(&priv->hw->conf)) 2428 else if (conf_is_ht40_plus(&priv->hw->conf))
2429 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_ABOVE; 2429 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_ABOVE;
2430 2430
2431 /* If no above or below channel supplied disable FAT channel */ 2431 /* If no above or below channel supplied disable HT40 channel */
2432 if (iwl_conf->extension_chan_offset != IEEE80211_HT_PARAM_CHA_SEC_ABOVE && 2432 if (iwl_conf->extension_chan_offset != IEEE80211_HT_PARAM_CHA_SEC_ABOVE &&
2433 iwl_conf->extension_chan_offset != IEEE80211_HT_PARAM_CHA_SEC_BELOW) 2433 iwl_conf->extension_chan_offset != IEEE80211_HT_PARAM_CHA_SEC_BELOW)
2434 iwl_conf->supported_chan_width = 0; 2434 iwl_conf->supported_chan_width = 0;