summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorRon Rindjunsky2008-05-15 07:53:55 +0200
committerJohn W. Linville2008-05-22 03:47:52 +0200
commitedcdf8b21ac920e06b4180246123fe43b022e020 (patch)
treef24622a574e9f8a2746339ae0460f555a6bdd3b0 /drivers/net/wireless/iwlwifi/iwl4965-base.c
parentiwlwifi: remove iwl4965_nic_start function (diff)
downloadkernel-qcow2-linux-edcdf8b21ac920e06b4180246123fe43b022e020.tar.gz
kernel-qcow2-linux-edcdf8b21ac920e06b4180246123fe43b022e020.tar.xz
kernel-qcow2-linux-edcdf8b21ac920e06b4180246123fe43b022e020.zip
mac80211: separate Tx and Rx MCS when configuring HT
This patch follows the 11n spec in separation between Tx and Rx MCS capabilities. Up until now, when configuring the HT possible set of Tx MCS only Rx MCS were considered, assuming they are the same as the Tx MCS. This patch fixed this by looking at low level driver Tx capabilities. Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 1a2d3768867d..c713b27ec653 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -3958,6 +3958,13 @@ static void iwl4965_dealloc_ucode_pci(struct iwl_priv *priv)
iwl_free_fw_desc(priv->pci_dev, &priv->ucode_boot);
}
+static void iwl4965_nic_start(struct iwl_priv *priv)
+{
+ /* Remove all resets to allow NIC to operate */
+ iwl_write32(priv, CSR_RESET, 0);
+}
+
+
/**
* iwl4965_read_ucode - Read uCode images from disk file.
*
@@ -4447,8 +4454,7 @@ static int __iwl4965_up(struct iwl_priv *priv)
}
/* start card; "initialize" will load runtime ucode */
- /* Remove all resets to allow NIC to operate */
- iwl_write32(priv, CSR_RESET, 0);
+ iwl4965_nic_start(priv);
IWL_DEBUG_INFO(DRV_NAME " is coming up\n");
@@ -6842,10 +6848,6 @@ static int __init iwl4965_init(void)
return ret;
-
-#ifdef CONFIG_IWLWIFI_DEBUG
- pci_unregister_driver(&iwl_driver);
-#endif
error_register:
iwl4965_rate_control_unregister();
return ret;