linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ath9k: decrypt_error flag issue
@ 2012-08-09 15:47 Lorenzo Bianconi
  2012-08-09 17:34 ` Luis R. Rodriguez
  0 siblings, 1 reply; 9+ messages in thread
From: Lorenzo Bianconi @ 2012-08-09 15:47 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, Luis R. Rodriguez

From: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>

After the hw reports a decryption error, the flag decrypt_error is set to
true in ath9k_rx_accept.
Since this flag is initialized to false just outside ath_rx_tasklet while cycle,
all subsequent frames are marked as corrupted until ath_rx_tasklet ends.
Fix the issue initializing decrypt_error flag at the begging of the cycle.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
---
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -1044,7 +1044,6 @@
 	struct ieee80211_hw *hw = sc->hw;
 	struct ieee80211_hdr *hdr;
 	int retval;
-	bool decrypt_error = false;
 	struct ath_rx_status rs;
 	enum ath9k_rx_qtype qtype;
 	bool edma = !!(ah->caps.hw_caps & ATH9K_HW_CAP_EDMA);
@@ -1066,6 +1065,7 @@
 	tsf_lower = tsf & 0xffffffff;

 	do {
+		bool decrypt_error = false;
 		/* If handling rx interrupt and flush is in progress => exit */
 		if (test_bit(SC_OP_RXFLUSH, &sc->sc_flags) && (flush == 0))
 			break;

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-08-09 22:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-09 15:47 [PATCH v2] ath9k: decrypt_error flag issue Lorenzo Bianconi
2012-08-09 17:34 ` Luis R. Rodriguez
2012-08-09 18:06   ` Lorenzo Bianconi
2012-08-09 18:10     ` Luis R. Rodriguez
2012-08-09 21:07       ` Pavel Roskin
2012-08-09 21:21         ` Luis R. Rodriguez
2012-08-09 21:28           ` Felix Fietkau
2012-08-09 22:06             ` Lorenzo Bianconi
2012-08-09 22:14               ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).