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

Commit 565dfefb authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by John W. Linville
Browse files

ath9k_htc: do not configure filter before driver is started

parent 58eb7ff3
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -1294,11 +1294,16 @@ static void ath9k_htc_configure_filter(struct ieee80211_hw *hw,
	u32 rfilt;
	u32 rfilt;


	mutex_lock(&priv->mutex);
	mutex_lock(&priv->mutex);
	ath9k_htc_ps_wakeup(priv);

	changed_flags &= SUPPORTED_FILTERS;
	changed_flags &= SUPPORTED_FILTERS;
	*total_flags &= SUPPORTED_FILTERS;
	*total_flags &= SUPPORTED_FILTERS;


	if (priv->op_flags & OP_INVALID) {
		ath_dbg(ath9k_hw_common(priv->ah), ATH_DBG_ANY,
			"Unable to configure filter on invalid state\n");
		return;
	}
	ath9k_htc_ps_wakeup(priv);

	priv->rxfilter = *total_flags;
	priv->rxfilter = *total_flags;
	rfilt = ath9k_htc_calcrxfilter(priv);
	rfilt = ath9k_htc_calcrxfilter(priv);
	ath9k_hw_setrxfilter(priv->ah, rfilt);
	ath9k_hw_setrxfilter(priv->ah, rfilt);