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 06/18] iwlwifi: specify the valid tx/rx chain in device config structure
Date: Fri, 23 Oct 2009 13:42:24 -0700 [thread overview]
Message-ID: <1256330556-20997-7-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>
Specify both Tx and Rx chain in device configuration structure instead
of hard code in set_hw_params() for 4965
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-4965.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 32d5f3d..bd856df 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -653,10 +653,10 @@ static int iwl4965_hw_set_hw_params(struct iwl_priv *priv)
priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
- priv->hw_params.tx_chains_num = 2;
- priv->hw_params.rx_chains_num = 2;
- priv->hw_params.valid_tx_ant = ANT_A | ANT_B;
- priv->hw_params.valid_rx_ant = ANT_A | ANT_B;
+ priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
+ priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
+ priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
+ priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
@@ -2225,6 +2225,8 @@ struct iwl_cfg iwl4965_agn_cfg = {
.num_of_queues = IWL49_NUM_QUEUES,
.num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES,
.mod_params = &iwl4965_mod_params,
+ .valid_tx_ant = ANT_AB,
+ .valid_rx_ant = ANT_AB,
.pll_cfg_val = 0,
.set_l0s = true,
.use_bsm = true,
--
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 ` [PATCH 02/18] iwlwifi: fix gain computation for 5000 series and up Reinette Chatre
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 ` Reinette Chatre [this message]
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-7-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