diff options
author | Daniel C Halperin <daniel.c.halperin@intel.com> | 2009-08-13 16:30:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:33:12 -0400 |
commit | b261793da587160d12ce6d63db60493342ddce20 (patch) | |
tree | d6c8d01469cfadc1afffb8306ca5d8f73455ffe8 /drivers/net/wireless/iwlwifi/iwl-6000.c | |
parent | 28e6f48953f44f7eb615383efe6e7f17624a11bb (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-6000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 0b731fd5ad1c..383177db7de7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -171,6 +171,7 @@ struct iwl_cfg iwl6000h_2agn_cfg = { | |||
171 | .pa_type = IWL_PA_HYBRID, | 171 | .pa_type = IWL_PA_HYBRID, |
172 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 172 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
173 | .shadow_ram_support = true, | 173 | .shadow_ram_support = true, |
174 | .ht_greenfield_support = true, | ||
174 | }; | 175 | }; |
175 | 176 | ||
176 | /* | 177 | /* |
@@ -193,6 +194,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = { | |||
193 | .pa_type = IWL_PA_INTERNAL, | 194 | .pa_type = IWL_PA_INTERNAL, |
194 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 195 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
195 | .shadow_ram_support = true, | 196 | .shadow_ram_support = true, |
197 | .ht_greenfield_support = true, | ||
196 | }; | 198 | }; |
197 | 199 | ||
198 | struct iwl_cfg iwl6050_2agn_cfg = { | 200 | struct iwl_cfg iwl6050_2agn_cfg = { |
@@ -212,6 +214,7 @@ struct iwl_cfg iwl6050_2agn_cfg = { | |||
212 | .pa_type = IWL_PA_SYSTEM, | 214 | .pa_type = IWL_PA_SYSTEM, |
213 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 215 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
214 | .shadow_ram_support = true, | 216 | .shadow_ram_support = true, |
217 | .ht_greenfield_support = true, | ||
215 | }; | 218 | }; |
216 | 219 | ||
217 | struct iwl_cfg iwl6000_3agn_cfg = { | 220 | struct iwl_cfg iwl6000_3agn_cfg = { |
@@ -231,6 +234,7 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
231 | .pa_type = IWL_PA_SYSTEM, | 234 | .pa_type = IWL_PA_SYSTEM, |
232 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 235 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
233 | .shadow_ram_support = true, | 236 | .shadow_ram_support = true, |
237 | .ht_greenfield_support = true, | ||
234 | }; | 238 | }; |
235 | 239 | ||
236 | struct iwl_cfg iwl6050_3agn_cfg = { | 240 | struct iwl_cfg iwl6050_3agn_cfg = { |
@@ -250,6 +254,7 @@ struct iwl_cfg iwl6050_3agn_cfg = { | |||
250 | .pa_type = IWL_PA_SYSTEM, | 254 | .pa_type = IWL_PA_SYSTEM, |
251 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 255 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
252 | .shadow_ram_support = true, | 256 | .shadow_ram_support = true, |
257 | .ht_greenfield_support = true, | ||
253 | }; | 258 | }; |
254 | 259 | ||
255 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); | 260 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |