Bartosz Markowski <bartosz.markowski@xxxxxxxxx> writes: > FW 10.X does not support P2P, stop advertising it to mac80211. > > Signed-off-by: Bartosz Markowski <bartosz.markowski@xxxxxxxxx> [...] > @@ -3478,7 +3504,11 @@ int ath10k_mac_register(struct ath10k *ar) > */ > ar->hw->queues = 4; > > - ar->hw->wiphy->iface_combinations = &ath10k_if_comb; > + if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) > + ar->hw->wiphy->iface_combinations = &ath10k_10x_if_comb; > + else > + ar->hw->wiphy->iface_combinations = &ath10k_if_comb; I think it would be better to have a separate feature flag for this, like NO_P2P or something like that. Just in case we want to disable P2P in other firmware branches. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html