Skip to content

Commit d21ccfd

Browse files
Johannes Stezenbachlinvjw
authored andcommitted
ath9k_htc: fix random decryption failure
In v3.15 the driver stopped to accept network packets after successful authentification, which could be worked around by passing the nohwcrypt=1 module parameter. This was not reproducible by everyone, and showed random behaviour in some tests. It was caused by an uninitialized variable introduced in 4ed1a8d ("ath9k_htc: use ath9k_cmn_rx_accept") and used in 341b29b ("ath9k_htc: use ath9k_cmn_rx_skb_postprocess"). Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=78581 Fixes: 341b29b ("ath9k_htc: use ath9k_cmn_rx_skb_postprocess") Signed-off-by: Johannes Stezenbach <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 87c4790 commit d21ccfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
978978
struct ath_hw *ah = common->ah;
979979
struct ath_htc_rx_status *rxstatus;
980980
struct ath_rx_status rx_stats;
981-
bool decrypt_error;
981+
bool decrypt_error = false;
982982

983983
if (skb->len < HTC_RX_FRAME_HEADER_SIZE) {
984984
ath_err(common, "Corrupted RX frame, dropping (len: %d)\n",

0 commit comments

Comments
 (0)