Changeset 40431


Ignore:
Timestamp:
2014-04-09T00:14:51+02:00 (4 years ago)
Author:
nbd
Message:

ath9k: fix some ANI related stability issues

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

Backport of r40427

Location:
branches/attitude_adjustment/package/mac80211/patches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/attitude_adjustment/package/mac80211/patches/300-pending_work.patch

    r39928 r40431  
     1commit 93f310a38a1d81a4bc8fcd9bf29628bd721cf2ef 
     2Author: Felix Fietkau <nbd@openwrt.org> 
     3Date:   Sun Apr 6 23:35:28 2014 +0200 
     4 
     5    ath9k_hw: reduce ANI firstep range for older chips 
     6     
     7    Use 0-8 instead of 0-16, which is closer to the old implementation. 
     8    Also drop the overwrite of the firstep_low parameter to improve 
     9    stability. 
     10     
     11    Signed-off-by: Felix Fietkau <nbd@openwrt.org> 
     12 
    113commit 584d297fd29fb39c76af25ae74ff9d5fe74c8a14 
    214Author: Helmut Schaa <helmut.schaa@googlemail.com> 
     
    40304042        switch (cmd & ah->ani_function) { 
    40314043        case ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION:{ 
    4032 @@ -1008,42 +1004,11 @@ static bool ar5008_hw_ani_control_new(st 
     4044@@ -1008,42 +1004,9 @@ static bool ar5008_hw_ani_control_new(st 
    40334045        case ATH9K_ANI_FIRSTEP_LEVEL:{ 
    40344046                u32 level = param; 
     
    40524064-               if (value > ATH9K_SIG_FIRSTEP_SETTING_MAX) 
    40534065-                       value = ATH9K_SIG_FIRSTEP_SETTING_MAX; 
    4054 +               value = level * 2; 
     4066+               value = level; 
    40554067                REG_RMW_FIELD(ah, AR_PHY_FIND_SIG, 
    40564068-                             AR_PHY_FIND_SIG_FIRSTEP, 
     
    40694081-                       value2 = ATH9K_SIG_FIRSTEP_SETTING_MAX; 
    40704082- 
     4083-               REG_RMW_FIELD(ah, AR_PHY_FIND_SIG_LOW, 
     4084-                             AR_PHY_FIND_SIG_FIRSTEP_LOW, value2); 
    40714085+                             AR_PHY_FIND_SIG_FIRSTEP, value); 
    4072                 REG_RMW_FIELD(ah, AR_PHY_FIND_SIG_LOW, 
    4073 -                             AR_PHY_FIND_SIG_FIRSTEP_LOW, value2); 
    4074 +                             AR_PHY_FIND_SIG_FIRSTEP_LOW, value); 
    40754086  
    40764087                if (level != aniState->firstepLevel) { 
    40774088                        ath_dbg(common, ANI, 
    4078 @@ -1060,7 +1025,7 @@ static bool ar5008_hw_ani_control_new(st 
     4089@@ -1060,7 +1023,7 @@ static bool ar5008_hw_ani_control_new(st 
    40794090                                aniState->firstepLevel, 
    40804091                                level, 
     
    40854096                        if (level > aniState->firstepLevel) 
    40864097                                ah->stats.ast_ani_stepup++; 
    4087 @@ -1073,41 +1038,13 @@ static bool ar5008_hw_ani_control_new(st 
     4098@@ -1073,41 +1036,13 @@ static bool ar5008_hw_ani_control_new(st 
    40884099        case ATH9K_ANI_SPUR_IMMUNITY_LEVEL:{ 
    40894100                u32 level = param; 
     
    41324143                if (level != aniState->spurImmunityLevel) { 
    41334144                        ath_dbg(common, ANI, 
    4134 @@ -1124,7 +1061,7 @@ static bool ar5008_hw_ani_control_new(st 
     4145@@ -1124,7 +1059,7 @@ static bool ar5008_hw_ani_control_new(st 
    41354146                                aniState->spurImmunityLevel, 
    41364147                                level, 
  • branches/attitude_adjustment/package/mac80211/patches/550-ath9k_entropy_from_adc.patch

    r39928 r40431  
    125125--- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c 
    126126+++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c 
    127 @@ -1233,9 +1233,30 @@ static void ar5008_hw_set_radar_conf(str 
     127@@ -1231,9 +1231,30 @@ static void ar5008_hw_set_radar_conf(str 
    128128        conf->radar_inband = 8; 
    129129 } 
     
    156156                AR_PHY_CCA, 
    157157                AR_PHY_CH1_CCA, 
    158 @@ -1250,6 +1271,8 @@ int ar5008_hw_attach_phy_ops(struct ath_ 
     158@@ -1248,6 +1269,8 @@ int ar5008_hw_attach_phy_ops(struct ath_ 
    159159        if (ret) 
    160160            return ret; 
Note: See TracChangeset for help on using the changeset viewer.