Return-path: Received: from mail30f.wh2.ocn.ne.jp ([220.111.41.203]:36293 "HELO mail30f.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1761184AbXK3C0g (ORCPT ); Thu, 29 Nov 2007 21:26:36 -0500 From: Bruno Randolf To: ath5k-devel@lists.ath5k.org Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com, mcgrof@gmail.com, jirislaby@gmail.com, mickflemm@gmail.com, Bruno Randolf Subject: [PATCH 4/5] ath5k: full noise calibration also for rf511x Date: Fri, 30 Nov 2007 11:26:36 +0900 Message-Id: <1196389597-23559-5-git-send-email-bruno@thinktube.com> (sfid-20071130_022641_350784_803502AB) In-Reply-To: <1196389597-23559-4-git-send-email-bruno@thinktube.com> References: <1196389597-23559-1-git-send-email-bruno@thinktube.com> <1196389597-23559-2-git-send-email-bruno@thinktube.com> <1196389597-23559-3-git-send-email-bruno@thinktube.com> <1196389597-23559-4-git-send-email-bruno@thinktube.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: also perform full noise calibration in ath5k_hw_rf511x_calibrate() instead of just writing the bit. Changes-licensed-under: ISC Signed-off-by: Bruno Randolf Acked-by: Nick Kossifidis --- drivers/net/wireless/ath5k/phy.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath5k/phy.c b/drivers/net/wireless/ath5k/phy.c index 7dba325..74cd97c 100644 --- a/drivers/net/wireless/ath5k/phy.c +++ b/drivers/net/wireless/ath5k/phy.c @@ -1723,8 +1723,7 @@ static int ath5k_hw_rf511x_calibrate(struct ath5k_hw *ah, ((u32)q_coff) | ((u32)i_coff << AR5K_PHY_IQ_CORR_Q_I_COFF_S)); done: - /* Start noise floor calibration */ - AR5K_REG_ENABLE_BITS(ah, AR5K_PHY_AGCCTL, AR5K_PHY_AGCCTL_NF); + ath5k_hw_noise_floor_calibration(ah, channel->freq); /* Request RF gain */ if (channel->val & CHANNEL_5GHZ) { -- 1.5.3.4