From: Reinette Chatre <reinette.chatre@intel.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net,
Wey-Yi Guy <wey-yi.w.guy@intel.com>,
Reinette Chatre <reinette.chatre@intel.com>
Subject: [PATCH 02/18] iwlwifi: fix gain computation for 5000 series and up
Date: Fri, 23 Oct 2009 13:42:20 -0700 [thread overview]
Message-ID: <1256330556-20997-3-git-send-email-reinette.chatre@intel.com> (raw)
In-Reply-To: <1256330556-20997-1-git-send-email-reinette.chatre@intel.com>
From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
In Rx gain balancing (chain noise) computation for 5000 series and up,
the delta gain calculation should use the average noise of default
chain, not "chain 0" which do not exist for all the devices.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
---
drivers/net/wireless/iwlwifi/iwl-5000.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 17555c7..afa88a3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -236,7 +236,7 @@ static void iwl5000_gain_computation(struct iwl_priv *priv,
data->delta_gain_code[i] = 0;
continue;
}
- delta_g = (1000 * ((s32)average_noise[0] -
+ delta_g = (1000 * ((s32)average_noise[default_chain] -
(s32)average_noise[i])) / 1500;
/* bound gain by 2 bits value max, 3rd bit is sign */
data->delta_gain_code[i] =
--
1.5.6.3
next prev parent reply other threads:[~2009-10-23 20:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 20:42 [PATCH 00/18] iwlwifi updates 10/23/2009 Reinette Chatre
2009-10-23 20:42 ` [PATCH 01/18] iwlwifi: add missing commands to syslog messages Reinette Chatre
2009-10-23 20:42 ` Reinette Chatre [this message]
2009-10-23 20:42 ` [PATCH 03/18] iwlwifi: consolidate apm_init() functions Reinette Chatre
2009-10-23 20:42 ` [PATCH 04/18] iwlwifi: separate led function from statistic notification Reinette Chatre
2009-10-23 20:42 ` [PATCH 05/18] iwlwifi: update bt co-exit configuration parameter Reinette Chatre
2009-10-23 20:42 ` [PATCH 06/18] iwlwifi: specify the valid tx/rx chain in device config structure Reinette Chatre
2009-10-23 20:42 ` [PATCH 07/18] iwlwifi: fix use after free bug for paged rx Reinette Chatre
2009-10-23 20:42 ` [PATCH 08/18] iwlwifi: increase max tfd payload size Reinette Chatre
2009-10-23 20:42 ` [PATCH 09/18] iwlwifi: choose thermal throttle method based on device config Reinette Chatre
2009-10-23 20:42 ` [PATCH 10/18] iwlwifi: issue ct_kill host command " Reinette Chatre
2009-10-23 20:42 ` [PATCH 11/18] iwlwifi: add channel switch support to 5000 series and up Reinette Chatre
2009-10-23 20:42 ` [PATCH 12/18] iwlwifi: remove duplicate defines Reinette Chatre
2009-10-23 20:42 ` [PATCH 13/18] iwlwifi: remove unused parameters Reinette Chatre
2009-10-23 20:42 ` [PATCH 14/18] iwlwifi: reuse page for notification packets Reinette Chatre
2009-10-23 20:42 ` [PATCH 15/18] iwlwifi: remove duplicated define Reinette Chatre
2009-10-23 20:42 ` [PATCH 16/18] iwlwifi: update lowest API version support for 6x00 & 6x50 series Reinette Chatre
2009-10-23 20:42 ` [PATCH 17/18] iwlwifi: make sure device is reset when unloading driver Reinette Chatre
2009-10-23 20:42 ` [PATCH 18/18] iwlwifi: minor comments changes for wimax co-exist command Reinette Chatre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256330556-20997-3-git-send-email-reinette.chatre@intel.com \
--to=reinette.chatre@intel.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=wey-yi.w.guy@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox