diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-03-27 13:12:12 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-04-13 02:36:04 -0400 |
commit | c13b172559403eb6e6b23918736740d937feac54 (patch) | |
tree | cd4601c3a3274a0d82cc25070aadeb59902c2304 | |
parent | 748fa67cb76608457d03f3932874b9baddb4d8bf (diff) |
iwlwifi: mvm: deprecate -7 firmware
This firmware is not supported any more.
A few code paths specific to old firmware can be removed.
We can now assume that a few TLV flags are always set since
we won't load firmware that didn't support the corresponding
features. This will be done in a separate patch.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-7000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac80211.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/sf.c | 3 |
4 files changed, 5 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-7000.c b/drivers/net/wireless/iwlwifi/iwl-7000.c index c42d80c710e7..3ab21efaf1f2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-7000.c +++ b/drivers/net/wireless/iwlwifi/iwl-7000.c | |||
@@ -75,8 +75,8 @@ | |||
75 | #define IWL3160_UCODE_API_OK 8 | 75 | #define IWL3160_UCODE_API_OK 8 |
76 | 76 | ||
77 | /* Lowest firmware API version supported */ | 77 | /* Lowest firmware API version supported */ |
78 | #define IWL7260_UCODE_API_MIN 7 | 78 | #define IWL7260_UCODE_API_MIN 8 |
79 | #define IWL3160_UCODE_API_MIN 7 | 79 | #define IWL3160_UCODE_API_MIN 8 |
80 | 80 | ||
81 | /* NVM versions */ | 81 | /* NVM versions */ |
82 | #define IWL7260_NVM_VERSION 0x0a1d | 82 | #define IWL7260_NVM_VERSION 0x0a1d |
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c index 9ccec10bba16..7110ec2605d6 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | |||
@@ -667,12 +667,9 @@ static void iwl_mvm_mac_ctxt_cmd_common(struct iwl_mvm *mvm, | |||
667 | if (vif->bss_conf.qos) | 667 | if (vif->bss_conf.qos) |
668 | cmd->qos_flags |= cpu_to_le32(MAC_QOS_FLG_UPDATE_EDCA); | 668 | cmd->qos_flags |= cpu_to_le32(MAC_QOS_FLG_UPDATE_EDCA); |
669 | 669 | ||
670 | /* Don't use cts to self as the fw doesn't support it currently. */ | ||
671 | if (vif->bss_conf.use_cts_prot) { | 670 | if (vif->bss_conf.use_cts_prot) { |
672 | cmd->protection_flags |= cpu_to_le32(MAC_PROT_FLG_TGG_PROTECT); | 671 | cmd->protection_flags |= cpu_to_le32(MAC_PROT_FLG_TGG_PROTECT); |
673 | if (IWL_UCODE_API(mvm->fw->ucode_ver) >= 8) | 672 | cmd->protection_flags |= cpu_to_le32(MAC_PROT_FLG_SELF_CTS_EN); |
674 | cmd->protection_flags |= | ||
675 | cpu_to_le32(MAC_PROT_FLG_SELF_CTS_EN); | ||
676 | } | 673 | } |
677 | IWL_DEBUG_RATE(mvm, "use_cts_prot %d, ht_operation_mode %d\n", | 674 | IWL_DEBUG_RATE(mvm, "use_cts_prot %d, ht_operation_mode %d\n", |
678 | vif->bss_conf.use_cts_prot, | 675 | vif->bss_conf.use_cts_prot, |
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c index 01b4228fb856..39e4ffeae22f 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c | |||
@@ -309,11 +309,8 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) | |||
309 | BIT(NL80211_IFTYPE_P2P_CLIENT) | | 309 | BIT(NL80211_IFTYPE_P2P_CLIENT) | |
310 | BIT(NL80211_IFTYPE_AP) | | 310 | BIT(NL80211_IFTYPE_AP) | |
311 | BIT(NL80211_IFTYPE_P2P_GO) | | 311 | BIT(NL80211_IFTYPE_P2P_GO) | |
312 | BIT(NL80211_IFTYPE_P2P_DEVICE); | 312 | BIT(NL80211_IFTYPE_P2P_DEVICE) | |
313 | 313 | BIT(NL80211_IFTYPE_ADHOC); | |
314 | /* IBSS has bugs in older versions */ | ||
315 | if (IWL_UCODE_API(mvm->fw->ucode_ver) >= 8) | ||
316 | hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC); | ||
317 | 314 | ||
318 | hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; | 315 | hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; |
319 | hw->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | | 316 | hw->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | |
diff --git a/drivers/net/wireless/iwlwifi/mvm/sf.c b/drivers/net/wireless/iwlwifi/mvm/sf.c index 8401627c0030..aa819e613650 100644 --- a/drivers/net/wireless/iwlwifi/mvm/sf.c +++ b/drivers/net/wireless/iwlwifi/mvm/sf.c | |||
@@ -237,9 +237,6 @@ int iwl_mvm_sf_update(struct iwl_mvm *mvm, struct ieee80211_vif *changed_vif, | |||
237 | .sta_vif_ap_sta_id = IWL_MVM_STATION_COUNT, | 237 | .sta_vif_ap_sta_id = IWL_MVM_STATION_COUNT, |
238 | }; | 238 | }; |
239 | 239 | ||
240 | if (IWL_UCODE_API(mvm->fw->ucode_ver) < 8) | ||
241 | return 0; | ||
242 | |||
243 | /* | 240 | /* |
244 | * Ignore the call if we are in HW Restart flow, or if the handled | 241 | * Ignore the call if we are in HW Restart flow, or if the handled |
245 | * vif is a p2p device. | 242 | * vif is a p2p device. |