Changeset 41952


Ignore:
Timestamp:
2014-08-02T21:51:54+02:00 (4 years ago)
Author:
nbd
Message:

ath9k: disable periodic entropy gathering (keep initial) to fix some stability issues

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/mac80211/patches/550-ath9k_entropy_from_adc.patch

    r40800 r41952  
    109109  
    110110 static inline void ath9k_hw_set_bt_ant_diversity(struct ath_hw *ah, bool enable) 
    111 --- a/drivers/net/wireless/ath/ath9k/link.c 
    112 +++ b/drivers/net/wireless/ath/ath9k/link.c 
    113 @@ -308,6 +308,11 @@ void ath_ani_calibrate(unsigned long dat 
    114         unsigned int timestamp = jiffies_to_msecs(jiffies); 
    115         u32 cal_interval, short_cal_interval, long_cal_interval; 
    116         unsigned long flags; 
    117 +       char buf[256]; 
    118 + 
    119 +       /* gather entropy */ 
    120 +       ath9k_hw_get_adc_entropy(ah, buf, sizeof(buf)); 
    121 +       add_device_randomness(buf, sizeof(buf)); 
    122   
    123         if (ah->caldata && test_bit(NFCAL_INTF, &ah->caldata->cal_flags)) 
    124                 long_cal_interval = ATH_LONG_CALINTERVAL_INT; 
    125111--- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c 
    126112+++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c 
Note: See TracChangeset for help on using the changeset viewer.