diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 87c7bb0d5044..a7e6e32bd489 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -19,7 +19,7 @@ | |||
19 | * file called LICENSE. | 19 | * file called LICENSE. |
20 | * | 20 | * |
21 | * Contact Information: | 21 | * Contact Information: |
22 | * James P. Ketrenos <ipw2100-admin@linux.intel.com> | 22 | * Intel Linux Wireless <ilw@linux.intel.com> |
23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | 23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
24 | * | 24 | * |
25 | *****************************************************************************/ | 25 | *****************************************************************************/ |
@@ -63,7 +63,6 @@ static int iwl4965_hw_get_temperature(const struct iwl_priv *priv); | |||
63 | static struct iwl_mod_params iwl4965_mod_params = { | 63 | static struct iwl_mod_params iwl4965_mod_params = { |
64 | .num_of_queues = IWL49_NUM_QUEUES, | 64 | .num_of_queues = IWL49_NUM_QUEUES, |
65 | .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, | 65 | .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, |
66 | .enable_qos = 1, | ||
67 | .amsdu_size_8K = 1, | 66 | .amsdu_size_8K = 1, |
68 | .restart_fw = 1, | 67 | .restart_fw = 1, |
69 | /* the rest are 0 by default */ | 68 | /* the rest are 0 by default */ |
@@ -352,9 +351,8 @@ static int iwl4965_apm_init(struct iwl_priv *priv) | |||
352 | iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); | 351 | iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); |
353 | 352 | ||
354 | /* wait for clock stabilization */ | 353 | /* wait for clock stabilization */ |
355 | ret = iwl_poll_bit(priv, CSR_GP_CNTRL, | 354 | ret = iwl_poll_direct_bit(priv, CSR_GP_CNTRL, |
356 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, | 355 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000); |
357 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000); | ||
358 | if (ret < 0) { | 356 | if (ret < 0) { |
359 | IWL_DEBUG_INFO("Failed to init the card\n"); | 357 | IWL_DEBUG_INFO("Failed to init the card\n"); |
360 | goto out; | 358 | goto out; |
@@ -436,9 +434,8 @@ static int iwl4965_apm_stop_master(struct iwl_priv *priv) | |||
436 | /* set stop master bit */ | 434 | /* set stop master bit */ |
437 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_STOP_MASTER); | 435 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_STOP_MASTER); |
438 | 436 | ||
439 | ret = iwl_poll_bit(priv, CSR_RESET, | 437 | ret = iwl_poll_direct_bit(priv, CSR_RESET, |
440 | CSR_RESET_REG_FLAG_MASTER_DISABLED, | 438 | CSR_RESET_REG_FLAG_MASTER_DISABLED, 100); |
441 | CSR_RESET_REG_FLAG_MASTER_DISABLED, 100); | ||
442 | if (ret < 0) | 439 | if (ret < 0) |
443 | goto out; | 440 | goto out; |
444 | 441 | ||
@@ -482,11 +479,9 @@ static int iwl4965_apm_reset(struct iwl_priv *priv) | |||
482 | 479 | ||
483 | iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); | 480 | iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); |
484 | 481 | ||
485 | ret = iwl_poll_bit(priv, CSR_RESET, | 482 | ret = iwl_poll_direct_bit(priv, CSR_GP_CNTRL, |
486 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, | 483 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000); |
487 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25); | 484 | if (ret < 0) |
488 | |||
489 | if (ret) | ||
490 | goto out; | 485 | goto out; |
491 | 486 | ||
492 | udelay(10); | 487 | udelay(10); |
@@ -2367,9 +2362,6 @@ MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)"); | |||
2367 | 2362 | ||
2368 | module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, 0444); | 2363 | module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, 0444); |
2369 | MODULE_PARM_DESC(queues_num, "number of hw queues."); | 2364 | MODULE_PARM_DESC(queues_num, "number of hw queues."); |
2370 | /* QoS */ | ||
2371 | module_param_named(qos_enable, iwl4965_mod_params.enable_qos, int, 0444); | ||
2372 | MODULE_PARM_DESC(qos_enable, "enable all QoS functionality"); | ||
2373 | /* 11n */ | 2365 | /* 11n */ |
2374 | module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, 0444); | 2366 | module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, 0444); |
2375 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); | 2367 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); |