Commit 5cc7caf4 authored by Kalle Valo's avatar Kalle Valo

ath10k: use wmi op version to check which iface combination to use

ATH10K_FW_FEATURE_WMI_10X should not be used for anymore as that's
now deprecated, instead use wmi op version.
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 30c78167
...@@ -5129,16 +5129,25 @@ int ath10k_mac_register(struct ath10k *ar) ...@@ -5129,16 +5129,25 @@ int ath10k_mac_register(struct ath10k *ar)
*/ */
ar->hw->queues = 4; ar->hw->queues = 4;
if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) { switch (ar->wmi.op_version) {
ar->hw->wiphy->iface_combinations = ath10k_10x_if_comb; case ATH10K_FW_WMI_OP_VERSION_MAIN:
ar->hw->wiphy->n_iface_combinations = case ATH10K_FW_WMI_OP_VERSION_TLV:
ARRAY_SIZE(ath10k_10x_if_comb);
} else {
ar->hw->wiphy->iface_combinations = ath10k_if_comb; ar->hw->wiphy->iface_combinations = ath10k_if_comb;
ar->hw->wiphy->n_iface_combinations = ar->hw->wiphy->n_iface_combinations =
ARRAY_SIZE(ath10k_if_comb); ARRAY_SIZE(ath10k_if_comb);
ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC); ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC);
break;
case ATH10K_FW_WMI_OP_VERSION_10_1:
case ATH10K_FW_WMI_OP_VERSION_10_2:
ar->hw->wiphy->iface_combinations = ath10k_10x_if_comb;
ar->hw->wiphy->n_iface_combinations =
ARRAY_SIZE(ath10k_10x_if_comb);
break;
case ATH10K_FW_WMI_OP_VERSION_UNSET:
case ATH10K_FW_WMI_OP_VERSION_MAX:
WARN_ON(1);
ret = -EINVAL;
goto err_free;
} }
ar->hw->netdev_features = NETIF_F_HW_CSUM; ar->hw->netdev_features = NETIF_F_HW_CSUM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment