Changeset 42530


Ignore:
Timestamp:
2014-09-14T13:40:51+02:00 (3 years ago)
Author:
nbd
Message:

ath9k_htc: fix decryption errors

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/mac80211/patches/300-pending_work.patch

    r42453 r42530  
     1commit fb77a822cc68745186b38db7d105ad97e0622152 
     2Author: Johannes Stezenbach <js@sig21.net> 
     3Date:   Fri Sep 12 22:36:51 2014 +0200 
     4 
     5    ath9k_htc: fix random decryption failure 
     6     
     7    In v3.15 the driver stopped to accept network packets after successful 
     8    authentification, which could be worked around by passing the 
     9    nohwcrypt=1 module parameter.  This was not reproducible by 
     10    everyone, and showed random behaviour in some tests. 
     11    It was caused by an uninitialized variable introduced 
     12    in 4ed1a8d4a257 ("ath9k_htc: use ath9k_cmn_rx_accept") and 
     13    used in 341b29b9cd2f ("ath9k_htc: use ath9k_cmn_rx_skb_postprocess"). 
     14     
     15    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=78581 
     16    Fixes: 341b29b9cd2f ("ath9k_htc: use ath9k_cmn_rx_skb_postprocess") 
     17    Signed-off-by: Johannes Stezenbach <js@sig21.net> 
     18 
    119commit 11f17631d9bf2a9e910dac7d09ba4581f5693831 
    220Author: Felix Fietkau <nbd@openwrt.org> 
     
    32923310 #define AR_RTC_9160_PLL_DIV    0x000003ff 
    32933311 #define AR_RTC_9160_PLL_DIV_S   0 
     3312--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 
     3313+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c 
     3314@@ -978,7 +978,7 @@ static bool ath9k_rx_prepare(struct ath9 
     3315        struct ath_hw *ah = common->ah; 
     3316        struct ath_htc_rx_status *rxstatus; 
     3317        struct ath_rx_status rx_stats; 
     3318-       bool decrypt_error; 
     3319+       bool decrypt_error = false; 
     3320  
     3321        if (skb->len < HTC_RX_FRAME_HEADER_SIZE) { 
     3322                ath_err(common, "Corrupted RX frame, dropping (len: %d)\n", 
Note: See TracChangeset for help on using the changeset viewer.