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

Commit 87df8957 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville
Browse files

ath9k_htc: Protect ampdu_action with a mutex



This is required when issuing commands to the firmware.

Signed-off-by: default avatarSujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2299423b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1639,6 +1639,8 @@ static int ath9k_htc_ampdu_action(struct ieee80211_hw *hw,
	struct ath9k_htc_sta *ista;
	int ret = 0;

	mutex_lock(&priv->mutex);

	switch (action) {
	case IEEE80211_AMPDU_RX_START:
		break;
@@ -1663,6 +1665,8 @@ static int ath9k_htc_ampdu_action(struct ieee80211_hw *hw,
		ath_err(ath9k_hw_common(priv->ah), "Unknown AMPDU action\n");
	}

	mutex_unlock(&priv->mutex);

	return ret;
}