diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-07-01 18:09:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-02 13:44:37 -0400 |
commit | 54bd5006b03ee980f6067b4d61c3605b5a5e1d4a (patch) | |
tree | 9542e10c03a130c46a34173bebd2cd3e202034f9 /drivers/net/wireless/ath/ath9k/calib.c | |
parent | f2552e28375cb34073a2f940ee9a8439c37d9ec2 (diff) |
ath9k_hw: clean up the noise floor calibration code to reduce code duplication
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index 7f49b7511bfd..cc29ef78d1bf 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -182,6 +182,10 @@ static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) | |||
182 | if (!nf[i]) | 182 | if (!nf[i]) |
183 | continue; | 183 | continue; |
184 | 184 | ||
185 | ath_print(common, ATH_DBG_CALIBRATE, | ||
186 | "NF calibrated [%s] [chain %d] is %d\n", | ||
187 | (i > 3 ? "ext" : "ctl"), i % 3, nf[i]); | ||
188 | |||
185 | if (nf[i] > limit->max) { | 189 | if (nf[i] > limit->max) { |
186 | ath_print(common, ATH_DBG_CALIBRATE, | 190 | ath_print(common, ATH_DBG_CALIBRATE, |
187 | "NF[%d] (%d) > MAX (%d), correcting to MAX", | 191 | "NF[%d] (%d) > MAX (%d), correcting to MAX", |