source: trunk/package/mac80211/patches/440-ath5k_calibrate_no_queue_stop.patch @ 30623

Last change on this file since 30623 was 30623, checked in by nbd, 4 years ago

ath5k: do not stop the hardware queues during PAPD calibration, speeds up calibration

File size: 1.1 KB
  • drivers/net/wireless/ath/ath5k/base.c

    a b ath5k_calibrate_work(struct work_struct  
    23302330                                        "got new rfgain, resetting\n"); 
    23312331                        ieee80211_queue_work(ah->hw, &ah->reset_work); 
    23322332                } 
    2333  
    2334                 /* TODO: On full calibration we should stop TX here, 
    2335                  * so that it doesn't interfere (mostly due to gain_f 
    2336                  * calibration that messes with tx packets -see phy.c). 
    2337                  * 
    2338                  * NOTE: Stopping the queues from above is not enough 
    2339                  * to stop TX but saves us from disconecting (at least 
    2340                  * we don't lose packets). */ 
    2341                 ieee80211_stop_queues(ah->hw); 
    23422333        } else 
    23432334                ah->ah_cal_mask |= AR5K_CALIBRATION_SHORT; 
    23442335 
    ath5k_calibrate_work(struct work_struct  
    23532344                                ah->curchan->center_freq)); 
    23542345 
    23552346        /* Clear calibration flags */ 
    2356         if (ah->ah_cal_mask & AR5K_CALIBRATION_FULL) { 
    2357                 ieee80211_wake_queues(ah->hw); 
     2347        if (ah->ah_cal_mask & AR5K_CALIBRATION_FULL) 
    23582348                ah->ah_cal_mask &= ~AR5K_CALIBRATION_FULL; 
    2359         } else if (ah->ah_cal_mask & AR5K_CALIBRATION_SHORT) 
     2349        else if (ah->ah_cal_mask & AR5K_CALIBRATION_SHORT) 
    23602350                ah->ah_cal_mask &= ~AR5K_CALIBRATION_SHORT; 
    23612351} 
    23622352 
Note: See TracBrowser for help on using the repository browser.