ath5k: fix ah_txq_isr_txok_all setting
authorPeter Seiderer <ps.report@gmx.net>
Wed, 12 Jan 2022 08:15:11 +0000 (10:15 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 17 Jan 2022 12:38:27 +0000 (14:38 +0200)
commitdff39ad93de8fad33bba798df2370ac0655311f0
tree87754f20c101fe36baa21d0e047f38b2b555f83e
parent3296fe1a833980629b4345a571778447e8ad4f2f
ath5k: fix ah_txq_isr_txok_all setting

The struct ath5k_hw member ah_txq_isr_txok_all is never reset/assigned
outside of ath5k_hw_get_isr() and with the used bitwise-or in the
interrupt handling accumulates all ever set interrupt flags.

Fix this by clearing ah_txq_isr_txok_all before assigning.

Patch tested with Senao NMP-8602 card

  Qualcomm Atheros AR5413/AR5414 Wireless Network Adapter [AR5006X(S) 802.11abg] (rev 01)
  ath5k: phy6: Atheros AR5413 chip found (MAC: 0xa4, PHY: 0x61)

running IBSS mode against Atheros (ath9k) card using
ping and iperf traffic.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220110223021.17655-5-ps.report@gmx.net
drivers/net/wireless/ath/ath5k/dma.c