source: branches/backfire/package/mac80211/patches/543-ath9k_interference_nf_cal.patch @ 22494

Last change on this file since 22494 was 22494, checked in by nbd, 6 years ago

mac80211: merge changes from latest trunk into backfire

File size: 1.5 KB
  • drivers/net/wireless/ath/ath9k/ath9k.h

    a b int ath_beaconq_config(struct ath_softc  
    423423#define ATH_AP_SHORT_CALINTERVAL  100     /* 100 ms */ 
    424424#define ATH_ANI_POLLINTERVAL_OLD  100     /* 100 ms */ 
    425425#define ATH_ANI_POLLINTERVAL_NEW  1000    /* 1000 ms */ 
     426#define ATH_LONG_CALINTERVAL_INT  1000    /* 1000 ms */ 
    426427#define ATH_LONG_CALINTERVAL      30000   /* 30 seconds */ 
    427428#define ATH_RESTART_CALINTERVAL   1200000 /* 20 minutes */ 
    428429 
  • drivers/net/wireless/ath/ath9k/main.c

    a b void ath_ani_calibrate(unsigned long dat 
    396396        bool shortcal = false; 
    397397        bool aniflag = false; 
    398398        unsigned int timestamp = jiffies_to_msecs(jiffies); 
    399         u32 cal_interval, short_cal_interval; 
     399        u32 cal_interval, short_cal_interval, long_cal_interval; 
     400 
     401        if (ah->caldata && ah->caldata->nfcal_interference) 
     402                long_cal_interval = ATH_LONG_CALINTERVAL_INT; 
     403        else 
     404                long_cal_interval = ATH_LONG_CALINTERVAL; 
    400405 
    401406        short_cal_interval = (ah->opmode == NL80211_IFTYPE_AP) ? 
    402407                ATH_AP_SHORT_CALINTERVAL : ATH_STA_SHORT_CALINTERVAL; 
    void ath_ani_calibrate(unsigned long dat 
    408413        ath9k_ps_wakeup(sc); 
    409414 
    410415        /* Long calibration runs independently of short calibration. */ 
    411         if ((timestamp - common->ani.longcal_timer) >= ATH_LONG_CALINTERVAL) { 
     416        if ((timestamp - common->ani.longcal_timer) >= long_cal_interval) { 
    412417                longcal = true; 
    413418                ath_print(common, ATH_DBG_ANI, "longcal @%lu\n", jiffies); 
    414419                common->ani.longcal_timer = timestamp; 
Note: See TracBrowser for help on using the repository browser.