aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/coex.c
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2016-03-07 09:55:20 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-03-30 09:21:27 -0400
commit97f95c93c8ed5177371e75275f236513152fa308 (patch)
tree1bccd1fe9435b8b24354e2fa0cd114dff4ca6b41 /drivers/net/wireless/intel/iwlwifi/mvm/coex.c
parenta0b09f13036cedfd67c9cb4b9d05138e7022723d (diff)
iwlwifi: remove support for fw older than -16.ucode
API version lower than 16 is not supported anymore - don't load older ucode. Remove code handling older versions. Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/coex.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/coex.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/coex.c b/drivers/net/wireless/intel/iwlwifi/mvm/coex.c
index 2e098f8e0f83..35cdeca3d61e 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/coex.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/coex.c
@@ -411,9 +411,6 @@ int iwl_send_bt_init_conf(struct iwl_mvm *mvm)
411 struct iwl_bt_coex_cmd bt_cmd = {}; 411 struct iwl_bt_coex_cmd bt_cmd = {};
412 u32 mode; 412 u32 mode;
413 413
414 if (!fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_BT_COEX_SPLIT))
415 return iwl_send_bt_init_conf_old(mvm);
416
417 lockdep_assert_held(&mvm->mutex); 414 lockdep_assert_held(&mvm->mutex);
418 415
419 if (unlikely(mvm->bt_force_ant_mode != BT_FORCE_ANT_DIS)) { 416 if (unlikely(mvm->bt_force_ant_mode != BT_FORCE_ANT_DIS)) {
@@ -728,12 +725,6 @@ void iwl_mvm_rx_bt_coex_notif(struct iwl_mvm *mvm,
728 struct iwl_rx_packet *pkt = rxb_addr(rxb); 725 struct iwl_rx_packet *pkt = rxb_addr(rxb);
729 struct iwl_bt_coex_profile_notif *notif = (void *)pkt->data; 726 struct iwl_bt_coex_profile_notif *notif = (void *)pkt->data;
730 727
731 if (!fw_has_api(&mvm->fw->ucode_capa,
732 IWL_UCODE_TLV_API_BT_COEX_SPLIT)) {
733 iwl_mvm_rx_bt_coex_notif_old(mvm, rxb);
734 return;
735 }
736
737 IWL_DEBUG_COEX(mvm, "BT Coex Notification received\n"); 728 IWL_DEBUG_COEX(mvm, "BT Coex Notification received\n");
738 IWL_DEBUG_COEX(mvm, "\tBT ci compliance %d\n", notif->bt_ci_compliance); 729 IWL_DEBUG_COEX(mvm, "\tBT ci compliance %d\n", notif->bt_ci_compliance);
739 IWL_DEBUG_COEX(mvm, "\tBT primary_ch_lut %d\n", 730 IWL_DEBUG_COEX(mvm, "\tBT primary_ch_lut %d\n",
@@ -755,12 +746,6 @@ void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
755 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 746 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
756 int ret; 747 int ret;
757 748
758 if (!fw_has_api(&mvm->fw->ucode_capa,
759 IWL_UCODE_TLV_API_BT_COEX_SPLIT)) {
760 iwl_mvm_bt_rssi_event_old(mvm, vif, rssi_event);
761 return;
762 }
763
764 lockdep_assert_held(&mvm->mutex); 749 lockdep_assert_held(&mvm->mutex);
765 750
766 /* Ignore updates if we are in force mode */ 751 /* Ignore updates if we are in force mode */
@@ -807,9 +792,6 @@ u16 iwl_mvm_coex_agg_time_limit(struct iwl_mvm *mvm,
807 struct iwl_mvm_phy_ctxt *phy_ctxt = mvmvif->phy_ctxt; 792 struct iwl_mvm_phy_ctxt *phy_ctxt = mvmvif->phy_ctxt;
808 enum iwl_bt_coex_lut_type lut_type; 793 enum iwl_bt_coex_lut_type lut_type;
809 794
810 if (!fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_BT_COEX_SPLIT))
811 return iwl_mvm_coex_agg_time_limit_old(mvm, sta);
812
813 if (IWL_COEX_IS_TTC_ON(mvm->last_bt_notif.ttc_rrc_status, phy_ctxt->id)) 795 if (IWL_COEX_IS_TTC_ON(mvm->last_bt_notif.ttc_rrc_status, phy_ctxt->id))
814 return LINK_QUAL_AGG_TIME_LIMIT_DEF; 796 return LINK_QUAL_AGG_TIME_LIMIT_DEF;
815 797
@@ -834,9 +816,6 @@ bool iwl_mvm_bt_coex_is_mimo_allowed(struct iwl_mvm *mvm,
834 struct iwl_mvm_phy_ctxt *phy_ctxt = mvmvif->phy_ctxt; 816 struct iwl_mvm_phy_ctxt *phy_ctxt = mvmvif->phy_ctxt;
835 enum iwl_bt_coex_lut_type lut_type; 817 enum iwl_bt_coex_lut_type lut_type;
836 818
837 if (!fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_BT_COEX_SPLIT))
838 return iwl_mvm_bt_coex_is_mimo_allowed_old(mvm, sta);
839
840 if (IWL_COEX_IS_TTC_ON(mvm->last_bt_notif.ttc_rrc_status, phy_ctxt->id)) 819 if (IWL_COEX_IS_TTC_ON(mvm->last_bt_notif.ttc_rrc_status, phy_ctxt->id))
841 return true; 820 return true;
842 821
@@ -864,9 +843,6 @@ bool iwl_mvm_bt_coex_is_ant_avail(struct iwl_mvm *mvm, u8 ant)
864 if (ant & mvm->cfg->non_shared_ant) 843 if (ant & mvm->cfg->non_shared_ant)
865 return true; 844 return true;
866 845
867 if (!fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_BT_COEX_SPLIT))
868 return iwl_mvm_bt_coex_is_shared_ant_avail_old(mvm);
869
870 return le32_to_cpu(mvm->last_bt_notif.bt_activity_grading) < 846 return le32_to_cpu(mvm->last_bt_notif.bt_activity_grading) <
871 BT_HIGH_TRAFFIC; 847 BT_HIGH_TRAFFIC;
872} 848}
@@ -877,9 +853,6 @@ bool iwl_mvm_bt_coex_is_shared_ant_avail(struct iwl_mvm *mvm)
877 if (mvm->cfg->bt_shared_single_ant) 853 if (mvm->cfg->bt_shared_single_ant)
878 return true; 854 return true;
879 855
880 if (!fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_BT_COEX_SPLIT))
881 return iwl_mvm_bt_coex_is_shared_ant_avail_old(mvm);
882
883 return le32_to_cpu(mvm->last_bt_notif.bt_activity_grading) < BT_HIGH_TRAFFIC; 856 return le32_to_cpu(mvm->last_bt_notif.bt_activity_grading) < BT_HIGH_TRAFFIC;
884} 857}
885 858
@@ -888,9 +861,6 @@ bool iwl_mvm_bt_coex_is_tpc_allowed(struct iwl_mvm *mvm,
888{ 861{
889 u32 bt_activity = le32_to_cpu(mvm->last_bt_notif.bt_activity_grading); 862 u32 bt_activity = le32_to_cpu(mvm->last_bt_notif.bt_activity_grading);
890 863
891 if (!fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_BT_COEX_SPLIT))
892 return iwl_mvm_bt_coex_is_tpc_allowed_old(mvm, band);
893
894 if (band != IEEE80211_BAND_2GHZ) 864 if (band != IEEE80211_BAND_2GHZ)
895 return false; 865 return false;
896 866
@@ -937,12 +907,6 @@ u8 iwl_mvm_bt_coex_tx_prio(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
937 907
938void iwl_mvm_bt_coex_vif_change(struct iwl_mvm *mvm) 908void iwl_mvm_bt_coex_vif_change(struct iwl_mvm *mvm)
939{ 909{
940 if (!fw_has_api(&mvm->fw->ucode_capa,
941 IWL_UCODE_TLV_API_BT_COEX_SPLIT)) {
942 iwl_mvm_bt_coex_vif_change_old(mvm);
943 return;
944 }
945
946 iwl_mvm_bt_coex_notif_handle(mvm); 910 iwl_mvm_bt_coex_notif_handle(mvm);
947} 911}
948 912
@@ -955,12 +919,6 @@ void iwl_mvm_rx_ant_coupling_notif(struct iwl_mvm *mvm,
955 u8 __maybe_unused lower_bound, upper_bound; 919 u8 __maybe_unused lower_bound, upper_bound;
956 u8 lut; 920 u8 lut;
957 921
958 if (!fw_has_api(&mvm->fw->ucode_capa,
959 IWL_UCODE_TLV_API_BT_COEX_SPLIT)) {
960 iwl_mvm_rx_ant_coupling_notif_old(mvm, rxb);
961 return;
962 }
963
964 if (!iwl_mvm_bt_is_plcr_supported(mvm)) 922 if (!iwl_mvm_bt_is_plcr_supported(mvm))
965 return; 923 return;
966 924