347-ath9k-don-t-run-periodic-and-nf-calibation-at-the-sa.patch 791 B

1234567891011121314151617181920212223242526
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Tue, 27 Dec 2016 23:16:23 +0100
  3. Subject: [PATCH] ath9k: don't run periodic and nf calibation at the same time
  4. The checks already prevents periodic cal from being started while noise
  5. floor calibration runs. It is missing checks for the other way around.
  6. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  7. ---
  8. --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
  9. +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
  10. @@ -676,10 +676,10 @@ static int ar9002_hw_calibrate(struct at
  11. return 0;
  12. ah->cal_list_curr = currCal = currCal->calNext;
  13. - if (currCal->calState == CAL_WAITING) {
  14. + if (currCal->calState == CAL_WAITING)
  15. ath9k_hw_reset_calibration(ah, currCal);
  16. - return 0;
  17. - }
  18. +
  19. + return 0;
  20. }
  21. /* Do NF cal only at longer intervals */