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

Commit afe754d6 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by John W. Linville
Browse files

ath9k: Enable TXOK and TXERR interrupts for TX EDMA

parent b0a33448
Loading
Loading
Loading
Loading
+10 −5
Original line number Original line Diff line number Diff line
@@ -886,11 +886,16 @@ struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype)
	 * The UAPSD queue is an exception, since we take a desc-
	 * The UAPSD queue is an exception, since we take a desc-
	 * based intr on the EOSP frames.
	 * based intr on the EOSP frames.
	 */
	 */
	if (ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
		qi.tqi_qflags = TXQ_FLAG_TXOKINT_ENABLE |
				TXQ_FLAG_TXERRINT_ENABLE;
	} else {
		if (qtype == ATH9K_TX_QUEUE_UAPSD)
		if (qtype == ATH9K_TX_QUEUE_UAPSD)
			qi.tqi_qflags = TXQ_FLAG_TXDESCINT_ENABLE;
			qi.tqi_qflags = TXQ_FLAG_TXDESCINT_ENABLE;
		else
		else
			qi.tqi_qflags = TXQ_FLAG_TXEOLINT_ENABLE |
			qi.tqi_qflags = TXQ_FLAG_TXEOLINT_ENABLE |
					TXQ_FLAG_TXDESCINT_ENABLE;
					TXQ_FLAG_TXDESCINT_ENABLE;
	}
	qnum = ath9k_hw_setuptxqueue(ah, qtype, &qi);
	qnum = ath9k_hw_setuptxqueue(ah, qtype, &qi);
	if (qnum == -1) {
	if (qnum == -1) {
		/*
		/*