aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000.c
diff options
context:
space:
mode:
authorDaniel C Halperin <daniel.c.halperin@intel.com>2009-08-13 16:30:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 11:33:12 -0400
commitb261793da587160d12ce6d63db60493342ddce20 (patch)
treed6c8d01469cfadc1afffb8306ca5d8f73455ffe8 /drivers/net/wireless/iwlwifi/iwl-5000.c
parent28e6f48953f44f7eb615383efe6e7f17624a11bb (diff)
iwlwifi: use station HT capabilities and BSS operating mode for Green-field
Green-field mode should be configured in the HT station table. This patch uses both the per-station GF support flag as well as the current BSS HT operation mode (non-GF stations present flag). Added the "ht_greenfield_support" field to struct iwl_cfg to replace the device-specific check in rs_use_green(). That check has been moved to iwlcore_init_ht_hw_capab(). Signed-off-by: Daniel C Halperin <daniel.c.halperin@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 755c184b3ecb..e1e862eb5aca 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -1652,6 +1652,7 @@ struct iwl_cfg iwl5300_agn_cfg = {
1652 .valid_tx_ant = ANT_ABC, 1652 .valid_tx_ant = ANT_ABC,
1653 .valid_rx_ant = ANT_ABC, 1653 .valid_rx_ant = ANT_ABC,
1654 .need_pll_cfg = true, 1654 .need_pll_cfg = true,
1655 .ht_greenfield_support = true,
1655}; 1656};
1656 1657
1657struct iwl_cfg iwl5100_bg_cfg = { 1658struct iwl_cfg iwl5100_bg_cfg = {
@@ -1668,6 +1669,7 @@ struct iwl_cfg iwl5100_bg_cfg = {
1668 .valid_tx_ant = ANT_B, 1669 .valid_tx_ant = ANT_B,
1669 .valid_rx_ant = ANT_AB, 1670 .valid_rx_ant = ANT_AB,
1670 .need_pll_cfg = true, 1671 .need_pll_cfg = true,
1672 .ht_greenfield_support = true,
1671}; 1673};
1672 1674
1673struct iwl_cfg iwl5100_abg_cfg = { 1675struct iwl_cfg iwl5100_abg_cfg = {
@@ -1684,6 +1686,7 @@ struct iwl_cfg iwl5100_abg_cfg = {
1684 .valid_tx_ant = ANT_B, 1686 .valid_tx_ant = ANT_B,
1685 .valid_rx_ant = ANT_AB, 1687 .valid_rx_ant = ANT_AB,
1686 .need_pll_cfg = true, 1688 .need_pll_cfg = true,
1689 .ht_greenfield_support = true,
1687}; 1690};
1688 1691
1689struct iwl_cfg iwl5100_agn_cfg = { 1692struct iwl_cfg iwl5100_agn_cfg = {
@@ -1700,6 +1703,7 @@ struct iwl_cfg iwl5100_agn_cfg = {
1700 .valid_tx_ant = ANT_B, 1703 .valid_tx_ant = ANT_B,
1701 .valid_rx_ant = ANT_AB, 1704 .valid_rx_ant = ANT_AB,
1702 .need_pll_cfg = true, 1705 .need_pll_cfg = true,
1706 .ht_greenfield_support = true,
1703}; 1707};
1704 1708
1705struct iwl_cfg iwl5350_agn_cfg = { 1709struct iwl_cfg iwl5350_agn_cfg = {
@@ -1716,6 +1720,7 @@ struct iwl_cfg iwl5350_agn_cfg = {
1716 .valid_tx_ant = ANT_ABC, 1720 .valid_tx_ant = ANT_ABC,
1717 .valid_rx_ant = ANT_ABC, 1721 .valid_rx_ant = ANT_ABC,
1718 .need_pll_cfg = true, 1722 .need_pll_cfg = true,
1723 .ht_greenfield_support = true,
1719}; 1724};
1720 1725
1721struct iwl_cfg iwl5150_agn_cfg = { 1726struct iwl_cfg iwl5150_agn_cfg = {
@@ -1732,6 +1737,7 @@ struct iwl_cfg iwl5150_agn_cfg = {
1732 .valid_tx_ant = ANT_A, 1737 .valid_tx_ant = ANT_A,
1733 .valid_rx_ant = ANT_AB, 1738 .valid_rx_ant = ANT_AB,
1734 .need_pll_cfg = true, 1739 .need_pll_cfg = true,
1740 .ht_greenfield_support = true,
1735}; 1741};
1736 1742
1737MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); 1743MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX));