Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf850d1d authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo
Browse files

ath10k: don't advertise IBSS iftype for 10.x



The 10.x firmware does not support IBSS mode at
all. It can't beacon and it crashes when trying to
scan.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent aa5b4fbc
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -4733,7 +4733,6 @@ int ath10k_mac_register(struct ath10k *ar)


	ar->hw->wiphy->interface_modes =
	ar->hw->wiphy->interface_modes =
		BIT(NL80211_IFTYPE_STATION) |
		BIT(NL80211_IFTYPE_STATION) |
		BIT(NL80211_IFTYPE_ADHOC) |
		BIT(NL80211_IFTYPE_AP);
		BIT(NL80211_IFTYPE_AP);


	if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) {
	if (test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) {
@@ -4803,6 +4802,8 @@ int ath10k_mac_register(struct ath10k *ar)
		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->netdev_features = NETIF_F_HW_CSUM;
	ar->hw->netdev_features = NETIF_F_HW_CSUM;