diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 4995134d7e4a..64f150b19771 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -1946,7 +1946,7 @@ static void iwl3945_init_hw_rates(struct iwl_priv *priv, | |||
1946 | { | 1946 | { |
1947 | int i; | 1947 | int i; |
1948 | 1948 | ||
1949 | for (i = 0; i < IWL_RATE_COUNT; i++) { | 1949 | for (i = 0; i < IWL_RATE_COUNT_LEGACY; i++) { |
1950 | rates[i].bitrate = iwl3945_rates[i].ieee * 5; | 1950 | rates[i].bitrate = iwl3945_rates[i].ieee * 5; |
1951 | rates[i].hw_value = i; /* Rate scaling will work on indexes */ | 1951 | rates[i].hw_value = i; /* Rate scaling will work on indexes */ |
1952 | rates[i].hw_value_short = i; | 1952 | rates[i].hw_value_short = i; |
@@ -3950,7 +3950,7 @@ static int iwl3945_setup_mac(struct iwl_priv *priv) | |||
3950 | BIT(NL80211_IFTYPE_STATION) | | 3950 | BIT(NL80211_IFTYPE_STATION) | |
3951 | BIT(NL80211_IFTYPE_ADHOC); | 3951 | BIT(NL80211_IFTYPE_ADHOC); |
3952 | 3952 | ||
3953 | hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY | | 3953 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY | |
3954 | WIPHY_FLAG_DISABLE_BEACON_HINTS; | 3954 | WIPHY_FLAG_DISABLE_BEACON_HINTS; |
3955 | 3955 | ||
3956 | hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; | 3956 | hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; |