diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 4561933acb1d..d88363e766c4 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -5822,10 +5822,8 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv) | |||
5822 | A = 0, | 5822 | A = 0, |
5823 | B = 1, | 5823 | B = 1, |
5824 | G = 2, | 5824 | G = 2, |
5825 | A_11N = 3, | ||
5826 | G_11N = 4, | ||
5827 | }; | 5825 | }; |
5828 | int mode_count = 5; | 5826 | int mode_count = 3; |
5829 | 5827 | ||
5830 | if (priv->modes) { | 5828 | if (priv->modes) { |
5831 | IWL_DEBUG_INFO("Geography modes already initialized.\n"); | 5829 | IWL_DEBUG_INFO("Geography modes already initialized.\n"); |
@@ -5865,6 +5863,9 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv) | |||
5865 | modes[A].num_rates = 8; /* just OFDM */ | 5863 | modes[A].num_rates = 8; /* just OFDM */ |
5866 | modes[A].rates = &rates[4]; | 5864 | modes[A].rates = &rates[4]; |
5867 | modes[A].num_channels = 0; | 5865 | modes[A].num_channels = 0; |
5866 | #ifdef CONFIG_IWL4965_HT | ||
5867 | iwl4965_init_ht_hw_capab(&modes[A].ht_info, MODE_IEEE80211A); | ||
5868 | #endif | ||
5868 | 5869 | ||
5869 | modes[B].mode = MODE_IEEE80211B; | 5870 | modes[B].mode = MODE_IEEE80211B; |
5870 | modes[B].channels = channels; | 5871 | modes[B].channels = channels; |
@@ -5877,18 +5878,9 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv) | |||
5877 | modes[G].rates = rates; | 5878 | modes[G].rates = rates; |
5878 | modes[G].num_rates = 12; /* OFDM & CCK */ | 5879 | modes[G].num_rates = 12; /* OFDM & CCK */ |
5879 | modes[G].num_channels = 0; | 5880 | modes[G].num_channels = 0; |
5880 | 5881 | #ifdef CONFIG_IWL4965_HT | |
5881 | modes[G_11N].mode = MODE_IEEE80211G; | 5882 | iwl4965_init_ht_hw_capab(&modes[G].ht_info, MODE_IEEE80211G); |
5882 | modes[G_11N].channels = channels; | 5883 | #endif |
5883 | modes[G_11N].num_rates = 13; /* OFDM & CCK */ | ||
5884 | modes[G_11N].rates = rates; | ||
5885 | modes[G_11N].num_channels = 0; | ||
5886 | |||
5887 | modes[A_11N].mode = MODE_IEEE80211A; | ||
5888 | modes[A_11N].channels = &channels[ARRAY_SIZE(iwl4965_eeprom_band_1)]; | ||
5889 | modes[A_11N].rates = &rates[4]; | ||
5890 | modes[A_11N].num_rates = 9; /* just OFDM */ | ||
5891 | modes[A_11N].num_channels = 0; | ||
5892 | 5884 | ||
5893 | priv->ieee_channels = channels; | 5885 | priv->ieee_channels = channels; |
5894 | priv->ieee_rates = rates; | 5886 | priv->ieee_rates = rates; |
@@ -5908,11 +5900,9 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv) | |||
5908 | 5900 | ||
5909 | if (is_channel_a_band(ch)) { | 5901 | if (is_channel_a_band(ch)) { |
5910 | geo_ch = &modes[A].channels[modes[A].num_channels++]; | 5902 | geo_ch = &modes[A].channels[modes[A].num_channels++]; |
5911 | modes[A_11N].num_channels++; | ||
5912 | } else { | 5903 | } else { |
5913 | geo_ch = &modes[B].channels[modes[B].num_channels++]; | 5904 | geo_ch = &modes[B].channels[modes[B].num_channels++]; |
5914 | modes[G].num_channels++; | 5905 | modes[G].num_channels++; |
5915 | modes[G_11N].num_channels++; | ||
5916 | } | 5906 | } |
5917 | 5907 | ||
5918 | geo_ch->freq = ieee80211chan2mhz(ch->channel); | 5908 | geo_ch->freq = ieee80211chan2mhz(ch->channel); |