ath9k_hw: clean up tx completion interrupt handling
TXQ_FLAG_TXOKINT_ENABLE and TXQ_FLAG_TXERRINT_ENABLE are always set and used together, and they share the same bitmask in enum ath9k_tx_queue_flags. Simplify the code that tests for these flags. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
7e03072edd
commit
ce8fdf6ef6
@@ -1355,8 +1355,7 @@ struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype)
|
||||
* 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;
|
||||
qi.tqi_qflags = TXQ_FLAG_TXINT_ENABLE;
|
||||
} else {
|
||||
if (qtype == ATH9K_TX_QUEUE_UAPSD)
|
||||
qi.tqi_qflags = TXQ_FLAG_TXDESCINT_ENABLE;
|
||||
|
Reference in New Issue
Block a user