|
@@ -20,7 +20,6 @@
|
|
|
|
|
|
/* Common calibration code */
|
|
|
|
|
|
-#define ATH9K_NF_TOO_HIGH -60
|
|
|
|
|
|
static int16_t ath9k_hw_get_nf_hist_mid(int16_t *nfCalBuffer)
|
|
|
{
|
|
@@ -346,10 +345,10 @@ static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf)
|
|
|
"NF calibrated [%s] [chain %d] is %d\n",
|
|
|
(i >= 3 ? "ext" : "ctl"), i % 3, nf[i]);
|
|
|
|
|
|
- if (nf[i] > ATH9K_NF_TOO_HIGH) {
|
|
|
+ if (nf[i] > limit->max) {
|
|
|
ath_dbg(common, CALIBRATE,
|
|
|
"NF[%d] (%d) > MAX (%d), correcting to MAX\n",
|
|
|
- i, nf[i], ATH9K_NF_TOO_HIGH);
|
|
|
+ i, nf[i], limit->max);
|
|
|
nf[i] = limit->max;
|
|
|
} else if (nf[i] < limit->min) {
|
|
|
ath_dbg(common, CALIBRATE,
|