aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-1000.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c31
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c12
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.h1
5 files changed, 27 insertions, 27 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index cf0aa71abdf3..b941b3e95697 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -237,7 +237,7 @@ struct iwl_cfg iwl1000_bgn_cfg = {
237 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, 237 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION,
238 .num_of_queues = IWLAGN_NUM_QUEUES, 238 .num_of_queues = IWLAGN_NUM_QUEUES,
239 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 239 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
240 .mod_params = &iwl50_mod_params, 240 .mod_params = &iwlagn_mod_params,
241 .valid_tx_ant = ANT_A, 241 .valid_tx_ant = ANT_A,
242 .valid_rx_ant = ANT_AB, 242 .valid_rx_ant = ANT_AB,
243 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 243 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -267,7 +267,7 @@ struct iwl_cfg iwl1000_bg_cfg = {
267 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, 267 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION,
268 .num_of_queues = IWLAGN_NUM_QUEUES, 268 .num_of_queues = IWLAGN_NUM_QUEUES,
269 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 269 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
270 .mod_params = &iwl50_mod_params, 270 .mod_params = &iwlagn_mod_params,
271 .valid_tx_ant = ANT_A, 271 .valid_tx_ant = ANT_A,
272 .valid_rx_ant = ANT_AB, 272 .valid_rx_ant = ANT_AB,
273 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 273 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 4d3dda1beb25..6c09b2477b95 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -397,13 +397,6 @@ static const struct iwl_ops iwl5150_ops = {
397 .led = &iwlagn_led_ops, 397 .led = &iwlagn_led_ops,
398}; 398};
399 399
400struct iwl_mod_params iwl50_mod_params = {
401 .amsdu_size_8K = 1,
402 .restart_fw = 1,
403 /* the rest are 0 by default */
404};
405
406
407struct iwl_cfg iwl5300_agn_cfg = { 400struct iwl_cfg iwl5300_agn_cfg = {
408 .name = "Intel(R) Ultimate N WiFi Link 5300 AGN", 401 .name = "Intel(R) Ultimate N WiFi Link 5300 AGN",
409 .fw_name_pre = IWL5000_FW_PRE, 402 .fw_name_pre = IWL5000_FW_PRE,
@@ -416,7 +409,7 @@ struct iwl_cfg iwl5300_agn_cfg = {
416 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 409 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
417 .num_of_queues = IWLAGN_NUM_QUEUES, 410 .num_of_queues = IWLAGN_NUM_QUEUES,
418 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 411 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
419 .mod_params = &iwl50_mod_params, 412 .mod_params = &iwlagn_mod_params,
420 .valid_tx_ant = ANT_ABC, 413 .valid_tx_ant = ANT_ABC,
421 .valid_rx_ant = ANT_ABC, 414 .valid_rx_ant = ANT_ABC,
422 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 415 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -443,7 +436,7 @@ struct iwl_cfg iwl5100_bgn_cfg = {
443 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 436 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
444 .num_of_queues = IWLAGN_NUM_QUEUES, 437 .num_of_queues = IWLAGN_NUM_QUEUES,
445 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 438 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
446 .mod_params = &iwl50_mod_params, 439 .mod_params = &iwlagn_mod_params,
447 .valid_tx_ant = ANT_B, 440 .valid_tx_ant = ANT_B,
448 .valid_rx_ant = ANT_AB, 441 .valid_rx_ant = ANT_AB,
449 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 442 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -470,7 +463,7 @@ struct iwl_cfg iwl5100_abg_cfg = {
470 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 463 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
471 .num_of_queues = IWLAGN_NUM_QUEUES, 464 .num_of_queues = IWLAGN_NUM_QUEUES,
472 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 465 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
473 .mod_params = &iwl50_mod_params, 466 .mod_params = &iwlagn_mod_params,
474 .valid_tx_ant = ANT_B, 467 .valid_tx_ant = ANT_B,
475 .valid_rx_ant = ANT_AB, 468 .valid_rx_ant = ANT_AB,
476 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 469 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -495,7 +488,7 @@ struct iwl_cfg iwl5100_agn_cfg = {
495 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 488 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
496 .num_of_queues = IWLAGN_NUM_QUEUES, 489 .num_of_queues = IWLAGN_NUM_QUEUES,
497 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 490 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
498 .mod_params = &iwl50_mod_params, 491 .mod_params = &iwlagn_mod_params,
499 .valid_tx_ant = ANT_B, 492 .valid_tx_ant = ANT_B,
500 .valid_rx_ant = ANT_AB, 493 .valid_rx_ant = ANT_AB,
501 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 494 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -522,7 +515,7 @@ struct iwl_cfg iwl5350_agn_cfg = {
522 .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, 515 .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION,
523 .num_of_queues = IWLAGN_NUM_QUEUES, 516 .num_of_queues = IWLAGN_NUM_QUEUES,
524 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 517 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
525 .mod_params = &iwl50_mod_params, 518 .mod_params = &iwlagn_mod_params,
526 .valid_tx_ant = ANT_ABC, 519 .valid_tx_ant = ANT_ABC,
527 .valid_rx_ant = ANT_ABC, 520 .valid_rx_ant = ANT_ABC,
528 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 521 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -549,7 +542,7 @@ struct iwl_cfg iwl5150_agn_cfg = {
549 .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, 542 .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION,
550 .num_of_queues = IWLAGN_NUM_QUEUES, 543 .num_of_queues = IWLAGN_NUM_QUEUES,
551 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 544 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
552 .mod_params = &iwl50_mod_params, 545 .mod_params = &iwlagn_mod_params,
553 .valid_tx_ant = ANT_A, 546 .valid_tx_ant = ANT_A,
554 .valid_rx_ant = ANT_AB, 547 .valid_rx_ant = ANT_AB,
555 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 548 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -576,7 +569,7 @@ struct iwl_cfg iwl5150_abg_cfg = {
576 .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, 569 .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION,
577 .num_of_queues = IWLAGN_NUM_QUEUES, 570 .num_of_queues = IWLAGN_NUM_QUEUES,
578 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 571 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
579 .mod_params = &iwl50_mod_params, 572 .mod_params = &iwlagn_mod_params,
580 .valid_tx_ant = ANT_A, 573 .valid_tx_ant = ANT_A,
581 .valid_rx_ant = ANT_AB, 574 .valid_rx_ant = ANT_AB,
582 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, 575 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
@@ -592,15 +585,15 @@ struct iwl_cfg iwl5150_abg_cfg = {
592MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); 585MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX));
593MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); 586MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX));
594 587
595module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, S_IRUGO); 588module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO);
596MODULE_PARM_DESC(swcrypto50, 589MODULE_PARM_DESC(swcrypto50,
597 "using software crypto engine (default 0 [hardware])\n"); 590 "using software crypto engine (default 0 [hardware])\n");
598module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, S_IRUGO); 591module_param_named(queues_num50, iwlagn_mod_params.num_of_queues, int, S_IRUGO);
599MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); 592MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series");
600module_param_named(11n_disable50, iwl50_mod_params.disable_11n, int, S_IRUGO); 593module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO);
601MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality"); 594MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality");
602module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, 595module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K,
603 int, S_IRUGO); 596 int, S_IRUGO);
604MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series"); 597MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series");
605module_param_named(fw_restart50, iwl50_mod_params.restart_fw, int, S_IRUGO); 598module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO);
606MODULE_PARM_DESC(fw_restart50, "restart firmware in case of error"); 599MODULE_PARM_DESC(fw_restart50, "restart firmware in case of error");
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index cb9c2d6905f9..f89e1c794388 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -374,7 +374,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = {
374 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, 374 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
375 .num_of_queues = IWLAGN_NUM_QUEUES, 375 .num_of_queues = IWLAGN_NUM_QUEUES,
376 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 376 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
377 .mod_params = &iwl50_mod_params, 377 .mod_params = &iwlagn_mod_params,
378 .valid_tx_ant = ANT_BC, 378 .valid_tx_ant = ANT_BC,
379 .valid_rx_ant = ANT_BC, 379 .valid_rx_ant = ANT_BC,
380 .pll_cfg_val = 0, 380 .pll_cfg_val = 0,
@@ -407,7 +407,7 @@ struct iwl_cfg iwl6000i_2abg_cfg = {
407 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, 407 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
408 .num_of_queues = IWLAGN_NUM_QUEUES, 408 .num_of_queues = IWLAGN_NUM_QUEUES,
409 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 409 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
410 .mod_params = &iwl50_mod_params, 410 .mod_params = &iwlagn_mod_params,
411 .valid_tx_ant = ANT_BC, 411 .valid_tx_ant = ANT_BC,
412 .valid_rx_ant = ANT_BC, 412 .valid_rx_ant = ANT_BC,
413 .pll_cfg_val = 0, 413 .pll_cfg_val = 0,
@@ -439,7 +439,7 @@ struct iwl_cfg iwl6000i_2bg_cfg = {
439 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, 439 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
440 .num_of_queues = IWLAGN_NUM_QUEUES, 440 .num_of_queues = IWLAGN_NUM_QUEUES,
441 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 441 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
442 .mod_params = &iwl50_mod_params, 442 .mod_params = &iwlagn_mod_params,
443 .valid_tx_ant = ANT_BC, 443 .valid_tx_ant = ANT_BC,
444 .valid_rx_ant = ANT_BC, 444 .valid_rx_ant = ANT_BC,
445 .pll_cfg_val = 0, 445 .pll_cfg_val = 0,
@@ -471,7 +471,7 @@ struct iwl_cfg iwl6050_2agn_cfg = {
471 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, 471 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
472 .num_of_queues = IWLAGN_NUM_QUEUES, 472 .num_of_queues = IWLAGN_NUM_QUEUES,
473 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 473 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
474 .mod_params = &iwl50_mod_params, 474 .mod_params = &iwlagn_mod_params,
475 .valid_tx_ant = ANT_AB, 475 .valid_tx_ant = ANT_AB,
476 .valid_rx_ant = ANT_AB, 476 .valid_rx_ant = ANT_AB,
477 .pll_cfg_val = 0, 477 .pll_cfg_val = 0,
@@ -504,7 +504,7 @@ struct iwl_cfg iwl6050_2abg_cfg = {
504 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, 504 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
505 .num_of_queues = IWLAGN_NUM_QUEUES, 505 .num_of_queues = IWLAGN_NUM_QUEUES,
506 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 506 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
507 .mod_params = &iwl50_mod_params, 507 .mod_params = &iwlagn_mod_params,
508 .valid_tx_ant = ANT_AB, 508 .valid_tx_ant = ANT_AB,
509 .valid_rx_ant = ANT_AB, 509 .valid_rx_ant = ANT_AB,
510 .pll_cfg_val = 0, 510 .pll_cfg_val = 0,
@@ -536,7 +536,7 @@ struct iwl_cfg iwl6000_3agn_cfg = {
536 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, 536 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
537 .num_of_queues = IWLAGN_NUM_QUEUES, 537 .num_of_queues = IWLAGN_NUM_QUEUES,
538 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, 538 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
539 .mod_params = &iwl50_mod_params, 539 .mod_params = &iwlagn_mod_params,
540 .valid_tx_ant = ANT_ABC, 540 .valid_tx_ant = ANT_ABC,
541 .valid_rx_ant = ANT_ABC, 541 .valid_rx_ant = ANT_ABC,
542 .pll_cfg_val = 0, 542 .pll_cfg_val = 0,
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index e4c0726601af..c826b7f54256 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -375,3 +375,9 @@ const u8 *iwlagn_eeprom_query_addr(const struct iwl_priv *priv,
375 BUG_ON(address >= priv->cfg->eeprom_size); 375 BUG_ON(address >= priv->cfg->eeprom_size);
376 return &priv->eeprom[address]; 376 return &priv->eeprom[address];
377} 377}
378
379struct iwl_mod_params iwlagn_mod_params = {
380 .amsdu_size_8K = 1,
381 .restart_fw = 1,
382 /* the rest are 0 by default */
383};
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h
index aa49e6670979..ad9b47e1a817 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.h
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.h
@@ -65,6 +65,7 @@
65 65
66#include "iwl-dev.h" 66#include "iwl-dev.h"
67 67
68extern struct iwl_mod_params iwlagn_mod_params;
68extern struct iwl_ucode_ops iwlagn_ucode; 69extern struct iwl_ucode_ops iwlagn_ucode;
69extern struct iwl_hcmd_ops iwlagn_hcmd; 70extern struct iwl_hcmd_ops iwlagn_hcmd;
70extern struct iwl_hcmd_utils_ops iwlagn_hcmd_utils; 71extern struct iwl_hcmd_utils_ops iwlagn_hcmd_utils;