Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298434
b: refs/heads/master
c: 2ee0a07
h: refs/heads/master
v: v3
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed Mar 26, 2012
1 parent 285e131 commit e28118e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 883a649b737cdbe3ede7e50f3f939fd706ed5c4e
refs/heads/master: 2ee0a07028d2cde6e131b73f029dae2b93c50f3a
5 changes: 2 additions & 3 deletions trunk/drivers/net/wireless/ath/ath9k/calib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e28118e

Please sign in to comment.