ath9k: improve stuck beacon recovery by reading nf values from the hw when a calibrat...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Aug 2010 01:28:27 +0000 (01:28 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Aug 2010 01:28:27 +0000 (01:28 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22461 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/542-ath9k_bstuck_nf_calibrate.patch

index 35db2cb..4ac4ab2 100644 (file)
@@ -78,7 +78,7 @@
        caldata->rawNoiseFloor = h[0].privNF;
        return true;
  }
-@@ -374,3 +407,26 @@ s16 ath9k_hw_getchan_noise(struct ath_hw
+@@ -374,3 +407,28 @@ s16 ath9k_hw_getchan_noise(struct ath_hw
        return ah->caldata->rawNoiseFloor;
  }
  EXPORT_SYMBOL(ath9k_hw_getchan_noise);
 +       */
 +      if (!caldata->nfcal_pending)
 +              ath9k_hw_start_nfcal(ah, true);
++      else if (!(REG_READ(ah, AR_PHY_AGC_CONTROL) & AR_PHY_AGC_CONTROL_NF))
++              ath9k_hw_getnf(ah, ah->curchan);
 +
 +      caldata->nfcal_interference = true;
 +}
This page took 0.035691 seconds and 4 git commands to generate.