Re: [PATCH] ath9k: fix tx99 with monitor mode interface
From: Kalle Valo <hidden>
Date: 2018-08-20 15:20:51
From: Kalle Valo <hidden>
Date: 2018-08-20 15:20:51
Felix Fietkau [off-list ref] writes:
Tx99 is typically configured via a monitor mode interface, which does not get added to the driver as a vif. Since the code currently expects a configured virtual interface for tx99, enabling tx99 via debugfs fails. Since the vif is not needed anyway, remove all checks for it. Signed-off-by: Felix Fietkau <nbd@nbd.name>
[...]
--- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c@@ -1251,15 +1251,10 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, struct ath_vif *avp = (void *)vif->drv_priv; struct ath_node *an = &avp->mcast_node; - mutex_lock(&sc->mutex); + if (IS_ENABLED(CPTCFG_ATH9K_TX99)) + return -EOPNOTSUPP;
Obviously this should be CONFIG_ATH9K_TX99, I'll fix that in the pending branch. -- Kalle Valo