diff options
23 files changed, 123 insertions, 122 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index a841e79dfac6..d46944f9de53 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
@@ -545,3 +545,26 @@ Why: udev fully replaces this special file system that only contains CAPI | |||
545 | NCCI TTY device nodes. User space (pppdcapiplugin) works without | 545 | NCCI TTY device nodes. User space (pppdcapiplugin) works without |
546 | noticing the difference. | 546 | noticing the difference. |
547 | Who: Jan Kiszka <jan.kiszka@web.de> | 547 | Who: Jan Kiszka <jan.kiszka@web.de> |
548 | |||
549 | ---------------------------- | ||
550 | |||
551 | What: iwlwifi 50XX module parameters | ||
552 | When: 2.6.40 | ||
553 | Why: The "..50" modules parameters were used to configure 5000 series and | ||
554 | up devices; different set of module parameters also available for 4965 | ||
555 | with same functionalities. Consolidate both set into single place | ||
556 | in drivers/net/wireless/iwlwifi/iwl-agn.c | ||
557 | |||
558 | Who: Wey-Yi Guy <wey-yi.w.guy@intel.com> | ||
559 | |||
560 | ---------------------------- | ||
561 | |||
562 | What: iwl4965 alias support | ||
563 | When: 2.6.40 | ||
564 | Why: Internal alias support has been present in module-init-tools for some | ||
565 | time, the MODULE_ALIAS("iwl4965") boilerplate aliases can be removed | ||
566 | with no impact. | ||
567 | |||
568 | Who: Wey-Yi Guy <wey-yi.w.guy@intel.com> | ||
569 | |||
570 | ---------------------------- | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h index 074f42a7dcad..91bcb4e3cdfb 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |||
@@ -71,10 +71,6 @@ | |||
71 | 71 | ||
72 | #include "iwl-eeprom.h" | 72 | #include "iwl-eeprom.h" |
73 | 73 | ||
74 | /* Time constants */ | ||
75 | #define SHORT_SLOT_TIME 9 | ||
76 | #define LONG_SLOT_TIME 20 | ||
77 | |||
78 | /* RSSI to dBm */ | 74 | /* RSSI to dBm */ |
79 | #define IWL39_RSSI_OFFSET 95 | 75 | #define IWL39_RSSI_OFFSET 95 |
80 | 76 | ||
@@ -230,7 +226,6 @@ struct iwl3945_eeprom { | |||
230 | 226 | ||
231 | /* 4 DATA + 1 CMD. There are 2 HCCA queues that are not used. */ | 227 | /* 4 DATA + 1 CMD. There are 2 HCCA queues that are not used. */ |
232 | #define IWL39_NUM_QUEUES 5 | 228 | #define IWL39_NUM_QUEUES 5 |
233 | #define IWL_NUM_SCAN_RATES (2) | ||
234 | 229 | ||
235 | #define IWL_DEFAULT_TX_RETRY 15 | 230 | #define IWL_DEFAULT_TX_RETRY 15 |
236 | 231 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c index 605aca4c78c8..9e411dc0e5e1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c | |||
@@ -341,7 +341,7 @@ void iwl3945_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta, u8 s | |||
341 | struct ieee80211_supported_band *sband; | 341 | struct ieee80211_supported_band *sband; |
342 | int i; | 342 | int i; |
343 | 343 | ||
344 | IWL_DEBUG_INFO(priv, "enter \n"); | 344 | IWL_DEBUG_INFO(priv, "enter\n"); |
345 | if (sta_id == priv->hw_params.bcast_sta_id) | 345 | if (sta_id == priv->hw_params.bcast_sta_id) |
346 | goto out; | 346 | goto out; |
347 | 347 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 2c16c5c10bc5..e81577b1a253 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -486,7 +486,7 @@ static void _iwl3945_dbg_report_frame(struct iwl_priv *priv, | |||
486 | * but you can hack it to show more, if you'd like to. */ | 486 | * but you can hack it to show more, if you'd like to. */ |
487 | if (dataframe) | 487 | if (dataframe) |
488 | IWL_DEBUG_RX(priv, "%s: mhd=0x%04x, dst=0x%02x, " | 488 | IWL_DEBUG_RX(priv, "%s: mhd=0x%04x, dst=0x%02x, " |
489 | "len=%u, rssi=%d, chnl=%d, rate=%d, \n", | 489 | "len=%u, rssi=%d, chnl=%d, rate=%d,\n", |
490 | title, le16_to_cpu(fc), header->addr1[5], | 490 | title, le16_to_cpu(fc), header->addr1[5], |
491 | length, rssi, channel, rate); | 491 | length, rssi, channel, rate); |
492 | else { | 492 | else { |
@@ -998,7 +998,7 @@ static void iwl3945_nic_config(struct iwl_priv *priv) | |||
998 | IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id); | 998 | IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id); |
999 | 999 | ||
1000 | if (rev_id & PCI_CFG_REV_ID_BIT_RTP) | 1000 | if (rev_id & PCI_CFG_REV_ID_BIT_RTP) |
1001 | IWL_DEBUG_INFO(priv, "RTP type \n"); | 1001 | IWL_DEBUG_INFO(priv, "RTP type\n"); |
1002 | else if (rev_id & PCI_CFG_REV_ID_BIT_BASIC_SKU) { | 1002 | else if (rev_id & PCI_CFG_REV_ID_BIT_BASIC_SKU) { |
1003 | IWL_DEBUG_INFO(priv, "3945 RADIO-MB type\n"); | 1003 | IWL_DEBUG_INFO(priv, "3945 RADIO-MB type\n"); |
1004 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, | 1004 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h index 67ef562e8db1..cd4b61ae25b7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |||
@@ -81,26 +81,6 @@ | |||
81 | */ | 81 | */ |
82 | #define IWL49_FIRST_AMPDU_QUEUE 7 | 82 | #define IWL49_FIRST_AMPDU_QUEUE 7 |
83 | 83 | ||
84 | /* Time constants */ | ||
85 | #define SHORT_SLOT_TIME 9 | ||
86 | #define LONG_SLOT_TIME 20 | ||
87 | |||
88 | /* RSSI to dBm */ | ||
89 | #define IWL49_RSSI_OFFSET 44 | ||
90 | |||
91 | |||
92 | /* PCI registers */ | ||
93 | #define PCI_CFG_RETRY_TIMEOUT 0x041 | ||
94 | |||
95 | /* PCI register values */ | ||
96 | #define PCI_CFG_LINK_CTRL_VAL_L0S_EN 0x01 | ||
97 | #define PCI_CFG_LINK_CTRL_VAL_L1_EN 0x02 | ||
98 | |||
99 | #define IWL_NUM_SCAN_RATES (2) | ||
100 | |||
101 | #define IWL_DEFAULT_TX_RETRY 15 | ||
102 | |||
103 | |||
104 | /* Sizes and addresses for instruction and data memory (SRAM) in | 84 | /* Sizes and addresses for instruction and data memory (SRAM) in |
105 | * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ | 85 | * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ |
106 | #define IWL49_RTC_INST_LOWER_BOUND (0x000000) | 86 | #define IWL49_RTC_INST_LOWER_BOUND (0x000000) |
@@ -393,10 +373,6 @@ static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr) | |||
393 | * location(s) in command (struct iwl4965_txpowertable_cmd). | 373 | * location(s) in command (struct iwl4965_txpowertable_cmd). |
394 | */ | 374 | */ |
395 | 375 | ||
396 | /* Limit range of txpower output target to be between these values */ | ||
397 | #define IWL_TX_POWER_TARGET_POWER_MIN (0) /* 0 dBm = 1 milliwatt */ | ||
398 | #define IWL_TX_POWER_TARGET_POWER_MAX (16) /* 16 dBm */ | ||
399 | |||
400 | /** | 376 | /** |
401 | * When MIMO is used (2 transmitters operating simultaneously), driver should | 377 | * When MIMO is used (2 transmitters operating simultaneously), driver should |
402 | * limit each transmitter to deliver a max of 3 dB below the regulatory limit | 378 | * limit each transmitter to deliver a max of 3 dB below the regulatory limit |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 1808c976e504..9a220d415449 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -61,14 +61,6 @@ static int iwl4965_hw_get_temperature(struct iwl_priv *priv); | |||
61 | #define _IWL4965_MODULE_FIRMWARE(api) IWL4965_FW_PRE #api ".ucode" | 61 | #define _IWL4965_MODULE_FIRMWARE(api) IWL4965_FW_PRE #api ".ucode" |
62 | #define IWL4965_MODULE_FIRMWARE(api) _IWL4965_MODULE_FIRMWARE(api) | 62 | #define IWL4965_MODULE_FIRMWARE(api) _IWL4965_MODULE_FIRMWARE(api) |
63 | 63 | ||
64 | |||
65 | /* module parameters */ | ||
66 | static struct iwl_mod_params iwl4965_mod_params = { | ||
67 | .amsdu_size_8K = 1, | ||
68 | .restart_fw = 1, | ||
69 | /* the rest are 0 by default */ | ||
70 | }; | ||
71 | |||
72 | /* check contents of special bootstrap uCode SRAM */ | 64 | /* check contents of special bootstrap uCode SRAM */ |
73 | static int iwl4965_verify_bsm(struct iwl_priv *priv) | 65 | static int iwl4965_verify_bsm(struct iwl_priv *priv) |
74 | { | 66 | { |
@@ -418,7 +410,7 @@ static void iwl4965_gain_computation(struct iwl_priv *priv, | |||
418 | sizeof(cmd), &cmd); | 410 | sizeof(cmd), &cmd); |
419 | if (ret) | 411 | if (ret) |
420 | IWL_DEBUG_CALIB(priv, "fail sending cmd " | 412 | IWL_DEBUG_CALIB(priv, "fail sending cmd " |
421 | "REPLY_PHY_CALIBRATION_CMD \n"); | 413 | "REPLY_PHY_CALIBRATION_CMD\n"); |
422 | 414 | ||
423 | /* TODO we might want recalculate | 415 | /* TODO we might want recalculate |
424 | * rx_chain in rxon cmd */ | 416 | * rx_chain in rxon cmd */ |
@@ -1620,19 +1612,19 @@ static int iwl4965_is_temp_calib_needed(struct iwl_priv *priv) | |||
1620 | 1612 | ||
1621 | /* get absolute value */ | 1613 | /* get absolute value */ |
1622 | if (temp_diff < 0) { | 1614 | if (temp_diff < 0) { |
1623 | IWL_DEBUG_POWER(priv, "Getting cooler, delta %d, \n", temp_diff); | 1615 | IWL_DEBUG_POWER(priv, "Getting cooler, delta %d\n", temp_diff); |
1624 | temp_diff = -temp_diff; | 1616 | temp_diff = -temp_diff; |
1625 | } else if (temp_diff == 0) | 1617 | } else if (temp_diff == 0) |
1626 | IWL_DEBUG_POWER(priv, "Same temp, \n"); | 1618 | IWL_DEBUG_POWER(priv, "Temperature unchanged\n"); |
1627 | else | 1619 | else |
1628 | IWL_DEBUG_POWER(priv, "Getting warmer, delta %d, \n", temp_diff); | 1620 | IWL_DEBUG_POWER(priv, "Getting warmer, delta %d\n", temp_diff); |
1629 | 1621 | ||
1630 | if (temp_diff < IWL_TEMPERATURE_THRESHOLD) { | 1622 | if (temp_diff < IWL_TEMPERATURE_THRESHOLD) { |
1631 | IWL_DEBUG_POWER(priv, "Thermal txpower calib not needed\n"); | 1623 | IWL_DEBUG_POWER(priv, " => thermal txpower calib not needed\n"); |
1632 | return 0; | 1624 | return 0; |
1633 | } | 1625 | } |
1634 | 1626 | ||
1635 | IWL_DEBUG_POWER(priv, "Thermal txpower calib needed\n"); | 1627 | IWL_DEBUG_POWER(priv, " => thermal txpower calib needed\n"); |
1636 | 1628 | ||
1637 | return 1; | 1629 | return 1; |
1638 | } | 1630 | } |
@@ -2094,7 +2086,7 @@ static int iwl4965_calc_rssi(struct iwl_priv *priv, | |||
2094 | 2086 | ||
2095 | /* dBm = max_rssi dB - agc dB - constant. | 2087 | /* dBm = max_rssi dB - agc dB - constant. |
2096 | * Higher AGC (higher radio gain) means lower signal. */ | 2088 | * Higher AGC (higher radio gain) means lower signal. */ |
2097 | return max_rssi - agc - IWL49_RSSI_OFFSET; | 2089 | return max_rssi - agc - IWLAGN_RSSI_OFFSET; |
2098 | } | 2090 | } |
2099 | 2091 | ||
2100 | 2092 | ||
@@ -2245,7 +2237,7 @@ struct iwl_cfg iwl4965_agn_cfg = { | |||
2245 | .ops = &iwl4965_ops, | 2237 | .ops = &iwl4965_ops, |
2246 | .num_of_queues = IWL49_NUM_QUEUES, | 2238 | .num_of_queues = IWL49_NUM_QUEUES, |
2247 | .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, | 2239 | .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, |
2248 | .mod_params = &iwl4965_mod_params, | 2240 | .mod_params = &iwlagn_mod_params, |
2249 | .valid_tx_ant = ANT_AB, | 2241 | .valid_tx_ant = ANT_AB, |
2250 | .valid_rx_ant = ANT_ABC, | 2242 | .valid_rx_ant = ANT_ABC, |
2251 | .pll_cfg_val = 0, | 2243 | .pll_cfg_val = 0, |
@@ -2265,22 +2257,3 @@ struct iwl_cfg iwl4965_agn_cfg = { | |||
2265 | /* Module firmware */ | 2257 | /* Module firmware */ |
2266 | MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); | 2258 | MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); |
2267 | 2259 | ||
2268 | module_param_named(antenna, iwl4965_mod_params.antenna, int, S_IRUGO); | ||
2269 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); | ||
2270 | module_param_named(swcrypto, iwl4965_mod_params.sw_crypto, int, S_IRUGO); | ||
2271 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); | ||
2272 | module_param_named( | ||
2273 | disable_hw_scan, iwl4965_mod_params.disable_hw_scan, int, S_IRUGO); | ||
2274 | MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)"); | ||
2275 | |||
2276 | module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, S_IRUGO); | ||
2277 | MODULE_PARM_DESC(queues_num, "number of hw queues."); | ||
2278 | /* 11n */ | ||
2279 | module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, S_IRUGO); | ||
2280 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); | ||
2281 | module_param_named(amsdu_size_8K, iwl4965_mod_params.amsdu_size_8K, | ||
2282 | int, S_IRUGO); | ||
2283 | MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size"); | ||
2284 | |||
2285 | module_param_named(fw_restart4965, iwl4965_mod_params.restart_fw, int, S_IRUGO); | ||
2286 | MODULE_PARM_DESC(fw_restart4965, "restart firmware in case of error"); | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 5ca451722d19..ecc302e4c205 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -585,16 +585,3 @@ struct iwl_cfg iwl5150_abg_cfg = { | |||
585 | 585 | ||
586 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); | 586 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); |
587 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); | 587 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); |
588 | |||
589 | module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO); | ||
590 | MODULE_PARM_DESC(swcrypto50, | ||
591 | "using software crypto engine (default 0 [hardware])\n"); | ||
592 | module_param_named(queues_num50, iwlagn_mod_params.num_of_queues, int, S_IRUGO); | ||
593 | MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); | ||
594 | module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO); | ||
595 | MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality"); | ||
596 | module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K, | ||
597 | int, S_IRUGO); | ||
598 | MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series"); | ||
599 | module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO); | ||
600 | MODULE_PARM_DESC(fw_restart50, "restart firmware in case of error"); | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c index 6e331f502e14..28bc8f8ba981 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | |||
@@ -254,7 +254,7 @@ static int iwlagn_calc_rssi(struct iwl_priv *priv, | |||
254 | 254 | ||
255 | /* dBm = max_rssi dB - agc dB - constant. | 255 | /* dBm = max_rssi dB - agc dB - constant. |
256 | * Higher AGC (higher radio gain) means lower signal. */ | 256 | * Higher AGC (higher radio gain) means lower signal. */ |
257 | return max_rssi - agc - IWL49_RSSI_OFFSET; | 257 | return max_rssi - agc - IWLAGN_RSSI_OFFSET; |
258 | } | 258 | } |
259 | 259 | ||
260 | struct iwl_hcmd_ops iwlagn_hcmd = { | 260 | struct iwl_hcmd_ops iwlagn_hcmd = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hw.h b/drivers/net/wireless/iwlwifi/iwl-agn-hw.h index e2ad870bb348..f9a3fbb6338f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hw.h | |||
@@ -78,6 +78,22 @@ | |||
78 | #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \ | 78 | #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \ |
79 | IWLAGN_RTC_DATA_LOWER_BOUND) | 79 | IWLAGN_RTC_DATA_LOWER_BOUND) |
80 | 80 | ||
81 | /* RSSI to dBm */ | ||
82 | #define IWLAGN_RSSI_OFFSET 44 | ||
83 | |||
84 | /* PCI registers */ | ||
85 | #define PCI_CFG_RETRY_TIMEOUT 0x041 | ||
86 | |||
87 | /* PCI register values */ | ||
88 | #define PCI_CFG_LINK_CTRL_VAL_L0S_EN 0x01 | ||
89 | #define PCI_CFG_LINK_CTRL_VAL_L1_EN 0x02 | ||
90 | |||
91 | #define IWLAGN_DEFAULT_TX_RETRY 15 | ||
92 | |||
93 | /* Limit range of txpower output target to be between these values */ | ||
94 | #define IWLAGN_TX_POWER_TARGET_POWER_MIN (0) /* 0 dBm: 1 milliwatt */ | ||
95 | #define IWLAGN_TX_POWER_TARGET_POWER_MAX (16) /* 16 dBm */ | ||
96 | |||
81 | /* EEPROM */ | 97 | /* EEPROM */ |
82 | #define IWLAGN_EEPROM_IMG_SIZE 2048 | 98 | #define IWLAGN_EEPROM_IMG_SIZE 2048 |
83 | 99 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index 1d2e84c1fad5..49e20f1acb7c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -403,6 +403,9 @@ void iwlagn_rx_queue_reset(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | |||
403 | list_add_tail(&rxq->pool[i].list, &rxq->rx_used); | 403 | list_add_tail(&rxq->pool[i].list, &rxq->rx_used); |
404 | } | 404 | } |
405 | 405 | ||
406 | for (i = 0; i < RX_QUEUE_SIZE; i++) | ||
407 | rxq->queue[i] = NULL; | ||
408 | |||
406 | /* Set us so that we have processed and used all buffers, but have | 409 | /* Set us so that we have processed and used all buffers, but have |
407 | * not restocked the Rx queue with fresh buffers */ | 410 | * not restocked the Rx queue with fresh buffers */ |
408 | rxq->read = rxq->write = 0; | 411 | rxq->read = rxq->write = 0; |
@@ -538,11 +541,13 @@ void iwlagn_rx_queue_restock(struct iwl_priv *priv) | |||
538 | struct list_head *element; | 541 | struct list_head *element; |
539 | struct iwl_rx_mem_buffer *rxb; | 542 | struct iwl_rx_mem_buffer *rxb; |
540 | unsigned long flags; | 543 | unsigned long flags; |
541 | int write; | ||
542 | 544 | ||
543 | spin_lock_irqsave(&rxq->lock, flags); | 545 | spin_lock_irqsave(&rxq->lock, flags); |
544 | write = rxq->write & ~0x7; | ||
545 | while ((iwl_rx_queue_space(rxq) > 0) && (rxq->free_count)) { | 546 | while ((iwl_rx_queue_space(rxq) > 0) && (rxq->free_count)) { |
547 | /* The overwritten rxb must be a used one */ | ||
548 | rxb = rxq->queue[rxq->write]; | ||
549 | BUG_ON(rxb && rxb->page); | ||
550 | |||
546 | /* Get next free Rx buffer, remove from free list */ | 551 | /* Get next free Rx buffer, remove from free list */ |
547 | element = rxq->rx_free.next; | 552 | element = rxq->rx_free.next; |
548 | rxb = list_entry(element, struct iwl_rx_mem_buffer, list); | 553 | rxb = list_entry(element, struct iwl_rx_mem_buffer, list); |
@@ -635,6 +640,7 @@ void iwlagn_rx_allocate(struct iwl_priv *priv, gfp_t priority) | |||
635 | 640 | ||
636 | spin_unlock_irqrestore(&rxq->lock, flags); | 641 | spin_unlock_irqrestore(&rxq->lock, flags); |
637 | 642 | ||
643 | BUG_ON(rxb->page); | ||
638 | rxb->page = page; | 644 | rxb->page = page; |
639 | /* Get physical address of the RB */ | 645 | /* Get physical address of the RB */ |
640 | rxb->page_dma = pci_map_page(priv->pci_dev, page, 0, | 646 | rxb->page_dma = pci_map_page(priv->pci_dev, page, 0, |
@@ -845,7 +851,7 @@ static void iwlagn_dbg_report_frame(struct iwl_priv *priv, | |||
845 | * but you can hack it to show more, if you'd like to. */ | 851 | * but you can hack it to show more, if you'd like to. */ |
846 | if (dataframe) | 852 | if (dataframe) |
847 | IWL_DEBUG_RX(priv, "%s: mhd=0x%04x, dst=0x%02x, " | 853 | IWL_DEBUG_RX(priv, "%s: mhd=0x%04x, dst=0x%02x, " |
848 | "len=%u, rssi=%d, chnl=%d, rate=%u, \n", | 854 | "len=%u, rssi=%d, chnl=%d, rate=%u,\n", |
849 | title, le16_to_cpu(fc), header->addr1[5], | 855 | title, le16_to_cpu(fc), header->addr1[5], |
850 | length, rssi, channel, bitrate); | 856 | length, rssi, channel, bitrate); |
851 | else { | 857 | else { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index bcae6a088106..0f881947627b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -2009,7 +2009,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
2009 | /* rates available for this association, and for modulation mode */ | 2009 | /* rates available for this association, and for modulation mode */ |
2010 | rate_mask = rs_get_supported_rates(lq_sta, hdr, tbl->lq_type); | 2010 | rate_mask = rs_get_supported_rates(lq_sta, hdr, tbl->lq_type); |
2011 | 2011 | ||
2012 | IWL_DEBUG_RATE(priv, "mask 0x%04X \n", rate_mask); | 2012 | IWL_DEBUG_RATE(priv, "mask 0x%04X\n", rate_mask); |
2013 | 2013 | ||
2014 | /* mask with station rate restriction */ | 2014 | /* mask with station rate restriction */ |
2015 | if (is_legacy(tbl->lq_type)) { | 2015 | if (is_legacy(tbl->lq_type)) { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c index 257e4aff3d96..a76e14351b5a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |||
@@ -404,7 +404,7 @@ static void iwlagn_tx_cmd_build_rate(struct iwl_priv *priv, | |||
404 | if (ieee80211_is_probe_resp(fc)) | 404 | if (ieee80211_is_probe_resp(fc)) |
405 | data_retry_limit = 3; | 405 | data_retry_limit = 3; |
406 | else | 406 | else |
407 | data_retry_limit = IWL_DEFAULT_TX_RETRY; | 407 | data_retry_limit = IWLAGN_DEFAULT_TX_RETRY; |
408 | tx_cmd->data_retry_limit = data_retry_limit; | 408 | tx_cmd->data_retry_limit = data_retry_limit; |
409 | 409 | ||
410 | /* Set retry limit on RTS packets */ | 410 | /* Set retry limit on RTS packets */ |
@@ -723,9 +723,9 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb) | |||
723 | tx_cmd->dram_lsb_ptr = cpu_to_le32(scratch_phys); | 723 | tx_cmd->dram_lsb_ptr = cpu_to_le32(scratch_phys); |
724 | tx_cmd->dram_msb_ptr = iwl_get_dma_hi_addr(scratch_phys); | 724 | tx_cmd->dram_msb_ptr = iwl_get_dma_hi_addr(scratch_phys); |
725 | 725 | ||
726 | IWL_DEBUG_TX(priv, "sequence nr = 0X%x \n", | 726 | IWL_DEBUG_TX(priv, "sequence nr = 0X%x\n", |
727 | le16_to_cpu(out_cmd->hdr.sequence)); | 727 | le16_to_cpu(out_cmd->hdr.sequence)); |
728 | IWL_DEBUG_TX(priv, "tx_flags = 0X%x \n", le32_to_cpu(tx_cmd->tx_flags)); | 728 | IWL_DEBUG_TX(priv, "tx_flags = 0X%x\n", le32_to_cpu(tx_cmd->tx_flags)); |
729 | iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd, sizeof(*tx_cmd)); | 729 | iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd, sizeof(*tx_cmd)); |
730 | iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd->hdr, hdr_len); | 730 | iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd->hdr, hdr_len); |
731 | 731 | ||
@@ -1289,7 +1289,7 @@ void iwlagn_rx_reply_compressed_ba(struct iwl_priv *priv, | |||
1289 | (unsigned long long)le64_to_cpu(ba_resp->bitmap), | 1289 | (unsigned long long)le64_to_cpu(ba_resp->bitmap), |
1290 | ba_resp->scd_flow, | 1290 | ba_resp->scd_flow, |
1291 | ba_resp->scd_ssn); | 1291 | ba_resp->scd_ssn); |
1292 | IWL_DEBUG_TX_REPLY(priv, "DAT start_idx = %d, bitmap = 0x%llx \n", | 1292 | IWL_DEBUG_TX_REPLY(priv, "DAT start_idx = %d, bitmap = 0x%llx\n", |
1293 | agg->start_idx, | 1293 | agg->start_idx, |
1294 | (unsigned long long)agg->bitmap); | 1294 | (unsigned long long)agg->bitmap); |
1295 | 1295 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index b431e9254c06..629cbf38aa9b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -83,13 +83,6 @@ MODULE_AUTHOR(DRV_COPYRIGHT " " DRV_AUTHOR); | |||
83 | MODULE_LICENSE("GPL"); | 83 | MODULE_LICENSE("GPL"); |
84 | MODULE_ALIAS("iwl4965"); | 84 | MODULE_ALIAS("iwl4965"); |
85 | 85 | ||
86 | /*************** STATION TABLE MANAGEMENT **** | ||
87 | * mac80211 should be examined to determine if sta_info is duplicating | ||
88 | * the functionality provided here | ||
89 | */ | ||
90 | |||
91 | /**************************************************************/ | ||
92 | |||
93 | /** | 86 | /** |
94 | * iwl_commit_rxon - commit staging_rxon to hardware | 87 | * iwl_commit_rxon - commit staging_rxon to hardware |
95 | * | 88 | * |
@@ -188,7 +181,7 @@ int iwl_commit_rxon(struct iwl_priv *priv) | |||
188 | IWL_ERR(priv, "Error setting new RXON (%d)\n", ret); | 181 | IWL_ERR(priv, "Error setting new RXON (%d)\n", ret); |
189 | return ret; | 182 | return ret; |
190 | } | 183 | } |
191 | IWL_DEBUG_INFO(priv, "Return from !new_assoc RXON. \n"); | 184 | IWL_DEBUG_INFO(priv, "Return from !new_assoc RXON.\n"); |
192 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); | 185 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); |
193 | iwl_clear_ucode_stations(priv, false); | 186 | iwl_clear_ucode_stations(priv, false); |
194 | iwl_restore_stations(priv); | 187 | iwl_restore_stations(priv); |
@@ -2310,7 +2303,7 @@ static int iwl_prepare_card_hw(struct iwl_priv *priv) | |||
2310 | { | 2303 | { |
2311 | int ret = 0; | 2304 | int ret = 0; |
2312 | 2305 | ||
2313 | IWL_DEBUG_INFO(priv, "iwl_prepare_card_hw enter \n"); | 2306 | IWL_DEBUG_INFO(priv, "iwl_prepare_card_hw enter\n"); |
2314 | 2307 | ||
2315 | ret = iwl_set_hw_ready(priv); | 2308 | ret = iwl_set_hw_ready(priv); |
2316 | if (priv->hw_ready) | 2309 | if (priv->hw_ready) |
@@ -3074,7 +3067,7 @@ static int iwlagn_mac_sta_add(struct ieee80211_hw *hw, | |||
3074 | iwl_restore_wepkeys(priv); | 3067 | iwl_restore_wepkeys(priv); |
3075 | 3068 | ||
3076 | /* Initialize rate scaling */ | 3069 | /* Initialize rate scaling */ |
3077 | IWL_DEBUG_INFO(priv, "Initializing rate scaling for station %pM \n", | 3070 | IWL_DEBUG_INFO(priv, "Initializing rate scaling for station %pM\n", |
3078 | sta->addr); | 3071 | sta->addr); |
3079 | iwl_rs_rate_init(priv, sta, sta_id); | 3072 | iwl_rs_rate_init(priv, sta, sta_id); |
3080 | 3073 | ||
@@ -3375,7 +3368,7 @@ static int iwl_init_drv(struct iwl_priv *priv) | |||
3375 | /* Set the tx_power_user_lmt to the lowest power level | 3368 | /* Set the tx_power_user_lmt to the lowest power level |
3376 | * this value will get overwritten by channel max power avg | 3369 | * this value will get overwritten by channel max power avg |
3377 | * from eeprom */ | 3370 | * from eeprom */ |
3378 | priv->tx_power_user_lmt = IWL_TX_POWER_TARGET_POWER_MIN; | 3371 | priv->tx_power_user_lmt = IWLAGN_TX_POWER_TARGET_POWER_MIN; |
3379 | 3372 | ||
3380 | ret = iwl_init_channel_map(priv); | 3373 | ret = iwl_init_channel_map(priv); |
3381 | if (ret) { | 3374 | if (ret) { |
@@ -3921,3 +3914,33 @@ module_param_named(debug, iwl_debug_level, uint, S_IRUGO | S_IWUSR); | |||
3921 | MODULE_PARM_DESC(debug, "debug output mask"); | 3914 | MODULE_PARM_DESC(debug, "debug output mask"); |
3922 | #endif | 3915 | #endif |
3923 | 3916 | ||
3917 | module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO); | ||
3918 | MODULE_PARM_DESC(swcrypto50, | ||
3919 | "using crypto in software (default 0 [hardware]) (deprecated)"); | ||
3920 | module_param_named(swcrypto, iwlagn_mod_params.sw_crypto, int, S_IRUGO); | ||
3921 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); | ||
3922 | module_param_named(queues_num50, | ||
3923 | iwlagn_mod_params.num_of_queues, int, S_IRUGO); | ||
3924 | MODULE_PARM_DESC(queues_num50, | ||
3925 | "number of hw queues in 50xx series (deprecated)"); | ||
3926 | module_param_named(queues_num, iwlagn_mod_params.num_of_queues, int, S_IRUGO); | ||
3927 | MODULE_PARM_DESC(queues_num, "number of hw queues."); | ||
3928 | module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO); | ||
3929 | MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality (deprecated)"); | ||
3930 | module_param_named(11n_disable, iwlagn_mod_params.disable_11n, int, S_IRUGO); | ||
3931 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); | ||
3932 | module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K, | ||
3933 | int, S_IRUGO); | ||
3934 | MODULE_PARM_DESC(amsdu_size_8K50, | ||
3935 | "enable 8K amsdu size in 50XX series (deprecated)"); | ||
3936 | module_param_named(amsdu_size_8K, iwlagn_mod_params.amsdu_size_8K, | ||
3937 | int, S_IRUGO); | ||
3938 | MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size"); | ||
3939 | module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO); | ||
3940 | MODULE_PARM_DESC(fw_restart50, | ||
3941 | "restart firmware in case of error (deprecated)"); | ||
3942 | module_param_named(fw_restart, iwlagn_mod_params.restart_fw, int, S_IRUGO); | ||
3943 | MODULE_PARM_DESC(fw_restart, "restart firmware in case of error"); | ||
3944 | module_param_named( | ||
3945 | disable_hw_scan, iwlagn_mod_params.disable_hw_scan, int, S_IRUGO); | ||
3946 | MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)"); | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c index 845831ac053e..dbb50a8e0ce3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-calib.c +++ b/drivers/net/wireless/iwlwifi/iwl-calib.c | |||
@@ -592,7 +592,7 @@ void iwl_sensitivity_calibration(struct iwl_priv *priv, | |||
592 | IWL_DEBUG_CALIB(priv, "rx_enable_time = %u usecs\n", rx_enable_time); | 592 | IWL_DEBUG_CALIB(priv, "rx_enable_time = %u usecs\n", rx_enable_time); |
593 | 593 | ||
594 | if (!rx_enable_time) { | 594 | if (!rx_enable_time) { |
595 | IWL_DEBUG_CALIB(priv, "<< RX Enable Time == 0! \n"); | 595 | IWL_DEBUG_CALIB(priv, "<< RX Enable Time == 0!\n"); |
596 | return; | 596 | return; |
597 | } | 597 | } |
598 | 598 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 38d19c11c47e..f09bff823ab6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1376,10 +1376,11 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force) | |||
1376 | int ret = 0; | 1376 | int ret = 0; |
1377 | s8 prev_tx_power = priv->tx_power_user_lmt; | 1377 | s8 prev_tx_power = priv->tx_power_user_lmt; |
1378 | 1378 | ||
1379 | if (tx_power < IWL_TX_POWER_TARGET_POWER_MIN) { | 1379 | if (tx_power < IWLAGN_TX_POWER_TARGET_POWER_MIN) { |
1380 | IWL_WARN(priv, "Requested user TXPOWER %d below lower limit %d.\n", | 1380 | IWL_WARN(priv, |
1381 | "Requested user TXPOWER %d below lower limit %d.\n", | ||
1381 | tx_power, | 1382 | tx_power, |
1382 | IWL_TX_POWER_TARGET_POWER_MIN); | 1383 | IWLAGN_TX_POWER_TARGET_POWER_MIN); |
1383 | return -EINVAL; | 1384 | return -EINVAL; |
1384 | } | 1385 | } |
1385 | 1386 | ||
@@ -1800,7 +1801,7 @@ static void iwl_ht_conf(struct iwl_priv *priv, | |||
1800 | struct iwl_ht_config *ht_conf = &priv->current_ht_config; | 1801 | struct iwl_ht_config *ht_conf = &priv->current_ht_config; |
1801 | struct ieee80211_sta *sta; | 1802 | struct ieee80211_sta *sta; |
1802 | 1803 | ||
1803 | IWL_DEBUG_MAC80211(priv, "enter: \n"); | 1804 | IWL_DEBUG_MAC80211(priv, "enter:\n"); |
1804 | 1805 | ||
1805 | if (!ht_conf->is_ht) | 1806 | if (!ht_conf->is_ht) |
1806 | return; | 1807 | return; |
@@ -2365,7 +2366,7 @@ int iwl_alloc_txq_mem(struct iwl_priv *priv) | |||
2365 | sizeof(struct iwl_tx_queue) * priv->cfg->num_of_queues, | 2366 | sizeof(struct iwl_tx_queue) * priv->cfg->num_of_queues, |
2366 | GFP_KERNEL); | 2367 | GFP_KERNEL); |
2367 | if (!priv->txq) { | 2368 | if (!priv->txq) { |
2368 | IWL_ERR(priv, "Not enough memory for txq \n"); | 2369 | IWL_ERR(priv, "Not enough memory for txq\n"); |
2369 | return -ENOMEM; | 2370 | return -ENOMEM; |
2370 | } | 2371 | } |
2371 | return 0; | 2372 | return 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 7f38d2d9b575..4319bda487d9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #include "iwl-debug.h" | 43 | #include "iwl-debug.h" |
44 | #include "iwl-4965-hw.h" | 44 | #include "iwl-4965-hw.h" |
45 | #include "iwl-3945-hw.h" | 45 | #include "iwl-3945-hw.h" |
46 | #include "iwl-agn-hw.h" | ||
46 | #include "iwl-led.h" | 47 | #include "iwl-led.h" |
47 | #include "iwl-power.h" | 48 | #include "iwl-power.h" |
48 | #include "iwl-agn-rs.h" | 49 | #include "iwl-agn-rs.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-hcmd.c index 73681c4fefe7..51f89e7ba681 100644 --- a/drivers/net/wireless/iwlwifi/iwl-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-hcmd.c | |||
@@ -169,7 +169,7 @@ int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
169 | mutex_lock(&priv->sync_cmd_mutex); | 169 | mutex_lock(&priv->sync_cmd_mutex); |
170 | 170 | ||
171 | set_bit(STATUS_HCMD_ACTIVE, &priv->status); | 171 | set_bit(STATUS_HCMD_ACTIVE, &priv->status); |
172 | IWL_DEBUG_INFO(priv, "Setting HCMD_ACTIVE for command %s \n", | 172 | IWL_DEBUG_INFO(priv, "Setting HCMD_ACTIVE for command %s\n", |
173 | get_cmd_string(cmd->id)); | 173 | get_cmd_string(cmd->id)); |
174 | 174 | ||
175 | cmd_idx = iwl_enqueue_hcmd(priv, cmd); | 175 | cmd_idx = iwl_enqueue_hcmd(priv, cmd); |
@@ -191,7 +191,7 @@ int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
191 | jiffies_to_msecs(HOST_COMPLETE_TIMEOUT)); | 191 | jiffies_to_msecs(HOST_COMPLETE_TIMEOUT)); |
192 | 192 | ||
193 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 193 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
194 | IWL_DEBUG_INFO(priv, "Clearing HCMD_ACTIVE for command %s \n", | 194 | IWL_DEBUG_INFO(priv, "Clearing HCMD_ACTIVE for command %s\n", |
195 | get_cmd_string(cmd->id)); | 195 | get_cmd_string(cmd->id)); |
196 | ret = -ETIMEDOUT; | 196 | ret = -ETIMEDOUT; |
197 | goto cancel; | 197 | goto cancel; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h index c719baf2585a..4f54a5f71cd5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-io.h | |||
@@ -297,7 +297,7 @@ static inline u32 __iwl_read_direct32(const char *f, u32 l, | |||
297 | struct iwl_priv *priv, u32 reg) | 297 | struct iwl_priv *priv, u32 reg) |
298 | { | 298 | { |
299 | u32 value = _iwl_read_direct32(priv, reg); | 299 | u32 value = _iwl_read_direct32(priv, reg); |
300 | IWL_DEBUG_IO(priv, "read_direct32(0x%4X) = 0x%08x - %s %d \n", reg, value, | 300 | IWL_DEBUG_IO(priv, "read_direct32(0x%4X) = 0x%08x - %s %d\n", reg, value, |
301 | f, l); | 301 | f, l); |
302 | return value; | 302 | return value; |
303 | } | 303 | } |
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index e0581a771aab..2655dbdc8175 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c | |||
@@ -874,7 +874,7 @@ void iwl_tt_initialize(struct iwl_priv *priv) | |||
874 | int size = sizeof(struct iwl_tt_trans) * (IWL_TI_STATE_MAX - 1); | 874 | int size = sizeof(struct iwl_tt_trans) * (IWL_TI_STATE_MAX - 1); |
875 | struct iwl_tt_trans *transaction; | 875 | struct iwl_tt_trans *transaction; |
876 | 876 | ||
877 | IWL_DEBUG_POWER(priv, "Initialize Thermal Throttling \n"); | 877 | IWL_DEBUG_POWER(priv, "Initialize Thermal Throttling\n"); |
878 | 878 | ||
879 | memset(tt, 0, sizeof(struct iwl_tt_mgmt)); | 879 | memset(tt, 0, sizeof(struct iwl_tt_mgmt)); |
880 | 880 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index 5ecfc7f6ff43..0daa1c9f1c6b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c | |||
@@ -453,7 +453,7 @@ static int iwl_get_channels_for_scan(struct iwl_priv *priv, | |||
453 | added++; | 453 | added++; |
454 | } | 454 | } |
455 | 455 | ||
456 | IWL_DEBUG_SCAN(priv, "total channels to scan %d \n", added); | 456 | IWL_DEBUG_SCAN(priv, "total channels to scan %d\n", added); |
457 | return added; | 457 | return added; |
458 | } | 458 | } |
459 | 459 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index 9c28ad7a2de1..e34ac0355c75 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -71,7 +71,7 @@ u8 iwl_find_station(struct iwl_priv *priv, const u8 *addr) | |||
71 | (!(priv->stations[ret].used & IWL_STA_UCODE_ACTIVE) || | 71 | (!(priv->stations[ret].used & IWL_STA_UCODE_ACTIVE) || |
72 | ((priv->stations[ret].used & IWL_STA_UCODE_ACTIVE) && | 72 | ((priv->stations[ret].used & IWL_STA_UCODE_ACTIVE) && |
73 | (priv->stations[ret].used & IWL_STA_UCODE_INPROGRESS)))) { | 73 | (priv->stations[ret].used & IWL_STA_UCODE_INPROGRESS)))) { |
74 | IWL_ERR(priv, "Requested station info for sta %d before ready. \n", | 74 | IWL_ERR(priv, "Requested station info for sta %d before ready.\n", |
75 | ret); | 75 | ret); |
76 | ret = IWL_INVALID_STATION; | 76 | ret = IWL_INVALID_STATION; |
77 | } | 77 | } |
@@ -143,7 +143,7 @@ static void iwl_process_add_sta_resp(struct iwl_priv *priv, | |||
143 | sta_id); | 143 | sta_id); |
144 | break; | 144 | break; |
145 | case ADD_STA_MODIFY_NON_EXIST_STA: | 145 | case ADD_STA_MODIFY_NON_EXIST_STA: |
146 | IWL_ERR(priv, "Attempting to modify non-existing station %d \n", | 146 | IWL_ERR(priv, "Attempting to modify non-existing station %d\n", |
147 | sta_id); | 147 | sta_id); |
148 | break; | 148 | break; |
149 | default: | 149 | default: |
@@ -571,7 +571,7 @@ static int iwl_remove_station(struct iwl_priv *priv, struct ieee80211_sta *sta) | |||
571 | 571 | ||
572 | if (!iwl_is_ready(priv)) { | 572 | if (!iwl_is_ready(priv)) { |
573 | IWL_DEBUG_INFO(priv, | 573 | IWL_DEBUG_INFO(priv, |
574 | "Unable to remove station %pM, device not ready. \n", | 574 | "Unable to remove station %pM, device not ready.\n", |
575 | sta->addr); | 575 | sta->addr); |
576 | /* | 576 | /* |
577 | * It is typical for stations to be removed when we are | 577 | * It is typical for stations to be removed when we are |
@@ -668,7 +668,7 @@ void iwl_clear_ucode_stations(struct iwl_priv *priv, bool force) | |||
668 | } else { | 668 | } else { |
669 | for (i = 0; i < priv->hw_params.max_stations; i++) { | 669 | for (i = 0; i < priv->hw_params.max_stations; i++) { |
670 | if (priv->stations[i].used & IWL_STA_UCODE_ACTIVE) { | 670 | if (priv->stations[i].used & IWL_STA_UCODE_ACTIVE) { |
671 | IWL_DEBUG_INFO(priv, "Clearing ucode active for station %d \n", i); | 671 | IWL_DEBUG_INFO(priv, "Clearing ucode active for station %d\n", i); |
672 | priv->stations[i].used &= ~IWL_STA_UCODE_ACTIVE; | 672 | priv->stations[i].used &= ~IWL_STA_UCODE_ACTIVE; |
673 | cleared = true; | 673 | cleared = true; |
674 | } | 674 | } |
@@ -1105,7 +1105,7 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv, | |||
1105 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; | 1105 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; |
1106 | 1106 | ||
1107 | if (iwl_is_rfkill(priv)) { | 1107 | if (iwl_is_rfkill(priv)) { |
1108 | IWL_DEBUG_WEP(priv, "Not sending REPLY_ADD_STA command because RFKILL enabled. \n"); | 1108 | IWL_DEBUG_WEP(priv, "Not sending REPLY_ADD_STA command because RFKILL enabled.\n"); |
1109 | spin_unlock_irqrestore(&priv->sta_lock, flags); | 1109 | spin_unlock_irqrestore(&priv->sta_lock, flags); |
1110 | return 0; | 1110 | return 0; |
1111 | } | 1111 | } |
@@ -1207,7 +1207,7 @@ int iwl_send_lq_cmd(struct iwl_priv *priv, | |||
1207 | return ret; | 1207 | return ret; |
1208 | 1208 | ||
1209 | if (init) { | 1209 | if (init) { |
1210 | IWL_DEBUG_INFO(priv, "init LQ command complete, clearing sta addition status for sta %d \n", | 1210 | IWL_DEBUG_INFO(priv, "init LQ command complete, clearing sta addition status for sta %d\n", |
1211 | lq->sta_id); | 1211 | lq->sta_id); |
1212 | spin_lock_irqsave(&priv->sta_lock, flags_spin); | 1212 | spin_lock_irqsave(&priv->sta_lock, flags_spin); |
1213 | priv->stations[lq->sta_id].used &= ~IWL_STA_UCODE_INPROGRESS; | 1213 | priv->stations[lq->sta_id].used &= ~IWL_STA_UCODE_INPROGRESS; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 91f9c89b1b6d..65090d386a53 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -579,7 +579,7 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
579 | 579 | ||
580 | if (!(meta->flags & CMD_ASYNC)) { | 580 | if (!(meta->flags & CMD_ASYNC)) { |
581 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 581 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
582 | IWL_DEBUG_INFO(priv, "Clearing HCMD_ACTIVE for command %s \n", | 582 | IWL_DEBUG_INFO(priv, "Clearing HCMD_ACTIVE for command %s\n", |
583 | get_cmd_string(cmd->hdr.cmd)); | 583 | get_cmd_string(cmd->hdr.cmd)); |
584 | wake_up_interruptible(&priv->wait_command_queue); | 584 | wake_up_interruptible(&priv->wait_command_queue); |
585 | } | 585 | } |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 24c240d53f5c..4d0394b3fb59 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -597,9 +597,9 @@ static int iwl3945_tx_skb(struct iwl_priv *priv, struct sk_buff *skb) | |||
597 | txq->need_update = 0; | 597 | txq->need_update = 0; |
598 | } | 598 | } |
599 | 599 | ||
600 | IWL_DEBUG_TX(priv, "sequence nr = 0X%x \n", | 600 | IWL_DEBUG_TX(priv, "sequence nr = 0X%x\n", |
601 | le16_to_cpu(out_cmd->hdr.sequence)); | 601 | le16_to_cpu(out_cmd->hdr.sequence)); |
602 | IWL_DEBUG_TX(priv, "tx_flags = 0X%x \n", le32_to_cpu(tx_cmd->tx_flags)); | 602 | IWL_DEBUG_TX(priv, "tx_flags = 0X%x\n", le32_to_cpu(tx_cmd->tx_flags)); |
603 | iwl_print_hex_dump(priv, IWL_DL_TX, tx_cmd, sizeof(*tx_cmd)); | 603 | iwl_print_hex_dump(priv, IWL_DL_TX, tx_cmd, sizeof(*tx_cmd)); |
604 | iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd->hdr, | 604 | iwl_print_hex_dump(priv, IWL_DL_TX, (u8 *)tx_cmd->hdr, |
605 | ieee80211_hdrlen(fc)); | 605 | ieee80211_hdrlen(fc)); |
@@ -1937,7 +1937,7 @@ static int iwl3945_get_channels_for_scan(struct iwl_priv *priv, | |||
1937 | added++; | 1937 | added++; |
1938 | } | 1938 | } |
1939 | 1939 | ||
1940 | IWL_DEBUG_SCAN(priv, "total channels to scan %d \n", added); | 1940 | IWL_DEBUG_SCAN(priv, "total channels to scan %d\n", added); |
1941 | return added; | 1941 | return added; |
1942 | } | 1942 | } |
1943 | 1943 | ||
@@ -3401,7 +3401,7 @@ static int iwl3945_mac_sta_add(struct ieee80211_hw *hw, | |||
3401 | } | 3401 | } |
3402 | 3402 | ||
3403 | /* Initialize rate scaling */ | 3403 | /* Initialize rate scaling */ |
3404 | IWL_DEBUG_INFO(priv, "Initializing rate scaling for station %pM \n", | 3404 | IWL_DEBUG_INFO(priv, "Initializing rate scaling for station %pM\n", |
3405 | sta->addr); | 3405 | sta->addr); |
3406 | iwl3945_rs_rate_init(priv, sta, sta_id); | 3406 | iwl3945_rs_rate_init(priv, sta, sta_id); |
3407 | 3407 | ||