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

Commit 9aab3e3e authored by Jouni Malinen's avatar Jouni Malinen Committed by John W. Linville
Browse files

ath9k: Fix TX control flag use for no ACK and RTS/CTS

parent 43f30ae0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -357,9 +357,9 @@ static int ath_tx_prepare(struct ath_softc *sc,
	txctl->flags = ATH9K_TXDESC_CLRDMASK;    /* needed for crypto errors */
	txctl->flags = ATH9K_TXDESC_CLRDMASK;    /* needed for crypto errors */


	if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)
	if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)
		tx_info->flags |= ATH9K_TXDESC_NOACK;
		txctl->flags |= ATH9K_TXDESC_NOACK;
	if (tx_info->flags & IEEE80211_TX_CTL_USE_RTS_CTS)
	if (tx_info->flags & IEEE80211_TX_CTL_USE_RTS_CTS)
		tx_info->flags |= ATH9K_TXDESC_RTSENA;
		txctl->flags |= ATH9K_TXDESC_RTSENA;


	/*
	/*
	 * Setup for rate calculations.
	 * Setup for rate calculations.