diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 36 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 12 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 38 |
8 files changed, 58 insertions, 70 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 19dd9fd9c09a..c0f8b96b9f8b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -463,8 +463,9 @@ static int rs_collect_tx_data(struct iwl_rate_scale_data *windows, | |||
463 | * Fill uCode API rate_n_flags field, based on "search" or "active" table. | 463 | * Fill uCode API rate_n_flags field, based on "search" or "active" table. |
464 | */ | 464 | */ |
465 | /* FIXME:RS:remove this function and put the flags statically in the table */ | 465 | /* FIXME:RS:remove this function and put the flags statically in the table */ |
466 | static u32 rate_n_flags_from_tbl(struct iwl_scale_tbl_info *tbl, | 466 | static u32 rate_n_flags_from_tbl(struct iwl_priv *priv, |
467 | int index, u8 use_green) | 467 | struct iwl_scale_tbl_info *tbl, |
468 | int index, u8 use_green) | ||
468 | { | 469 | { |
469 | u32 rate_n_flags = 0; | 470 | u32 rate_n_flags = 0; |
470 | 471 | ||
@@ -475,8 +476,7 @@ static u32 rate_n_flags_from_tbl(struct iwl_scale_tbl_info *tbl, | |||
475 | 476 | ||
476 | } else if (is_Ht(tbl->lq_type)) { | 477 | } else if (is_Ht(tbl->lq_type)) { |
477 | if (index > IWL_LAST_OFDM_RATE) { | 478 | if (index > IWL_LAST_OFDM_RATE) { |
478 | printk(KERN_ERR RS_NAME": Invalid HT rate index %d\n", | 479 | IWL_ERR(priv, "Invalid HT rate index %d\n", index); |
479 | index); | ||
480 | index = IWL_LAST_OFDM_RATE; | 480 | index = IWL_LAST_OFDM_RATE; |
481 | } | 481 | } |
482 | rate_n_flags = RATE_MCS_HT_MSK; | 482 | rate_n_flags = RATE_MCS_HT_MSK; |
@@ -488,8 +488,7 @@ static u32 rate_n_flags_from_tbl(struct iwl_scale_tbl_info *tbl, | |||
488 | else | 488 | else |
489 | rate_n_flags |= iwl_rates[index].plcp_mimo3; | 489 | rate_n_flags |= iwl_rates[index].plcp_mimo3; |
490 | } else { | 490 | } else { |
491 | printk(KERN_ERR RS_NAME": Invalid tbl->lq_type %d\n", | 491 | IWL_ERR(priv, "Invalid tbl->lq_type %d\n", tbl->lq_type); |
492 | tbl->lq_type); | ||
493 | } | 492 | } |
494 | 493 | ||
495 | rate_n_flags |= ((tbl->ant_type << RATE_MCS_ANT_POS) & | 494 | rate_n_flags |= ((tbl->ant_type << RATE_MCS_ANT_POS) & |
@@ -509,8 +508,7 @@ static u32 rate_n_flags_from_tbl(struct iwl_scale_tbl_info *tbl, | |||
509 | rate_n_flags |= RATE_MCS_GF_MSK; | 508 | rate_n_flags |= RATE_MCS_GF_MSK; |
510 | if (is_siso(tbl->lq_type) && tbl->is_SGI) { | 509 | if (is_siso(tbl->lq_type) && tbl->is_SGI) { |
511 | rate_n_flags &= ~RATE_MCS_SGI_MSK; | 510 | rate_n_flags &= ~RATE_MCS_SGI_MSK; |
512 | printk(KERN_ERR RS_NAME | 511 | IWL_ERR(priv, "GF was set with SGI:SISO\n"); |
513 | ": GF was set with SGI:SISO\n"); | ||
514 | } | 512 | } |
515 | } | 513 | } |
516 | } | 514 | } |
@@ -761,7 +759,7 @@ static u32 rs_get_lower_rate(struct iwl_lq_sta *lq_sta, | |||
761 | low = scale_index; | 759 | low = scale_index; |
762 | 760 | ||
763 | out: | 761 | out: |
764 | return rate_n_flags_from_tbl(tbl, low, is_green); | 762 | return rate_n_flags_from_tbl(lq_sta->drv, tbl, low, is_green); |
765 | } | 763 | } |
766 | 764 | ||
767 | /* | 765 | /* |
@@ -1179,7 +1177,7 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv, | |||
1179 | rate, rate_mask); | 1177 | rate, rate_mask); |
1180 | return -1; | 1178 | return -1; |
1181 | } | 1179 | } |
1182 | tbl->current_rate = rate_n_flags_from_tbl(tbl, rate, is_green); | 1180 | tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, rate, is_green); |
1183 | 1181 | ||
1184 | IWL_DEBUG_RATE("LQ: Switch to new mcs %X index is green %X\n", | 1182 | IWL_DEBUG_RATE("LQ: Switch to new mcs %X index is green %X\n", |
1185 | tbl->current_rate, is_green); | 1183 | tbl->current_rate, is_green); |
@@ -1239,7 +1237,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv, | |||
1239 | rate, rate_mask); | 1237 | rate, rate_mask); |
1240 | return -1; | 1238 | return -1; |
1241 | } | 1239 | } |
1242 | tbl->current_rate = rate_n_flags_from_tbl(tbl, rate, is_green); | 1240 | tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, rate, is_green); |
1243 | IWL_DEBUG_RATE("LQ: Switch to new mcs %X index is green %X\n", | 1241 | IWL_DEBUG_RATE("LQ: Switch to new mcs %X index is green %X\n", |
1244 | tbl->current_rate, is_green); | 1242 | tbl->current_rate, is_green); |
1245 | return 0; | 1243 | return 0; |
@@ -1442,8 +1440,9 @@ static int rs_move_siso_to_other(struct iwl_priv *priv, | |||
1442 | if (tpt >= search_tbl->expected_tpt[index]) | 1440 | if (tpt >= search_tbl->expected_tpt[index]) |
1443 | break; | 1441 | break; |
1444 | } | 1442 | } |
1445 | search_tbl->current_rate = rate_n_flags_from_tbl( | 1443 | search_tbl->current_rate = |
1446 | search_tbl, index, is_green); | 1444 | rate_n_flags_from_tbl(priv, search_tbl, |
1445 | index, is_green); | ||
1447 | goto out; | 1446 | goto out; |
1448 | } | 1447 | } |
1449 | tbl->action++; | 1448 | tbl->action++; |
@@ -1554,8 +1553,9 @@ static int rs_move_mimo_to_other(struct iwl_priv *priv, | |||
1554 | if (tpt >= search_tbl->expected_tpt[index]) | 1553 | if (tpt >= search_tbl->expected_tpt[index]) |
1555 | break; | 1554 | break; |
1556 | } | 1555 | } |
1557 | search_tbl->current_rate = rate_n_flags_from_tbl( | 1556 | search_tbl->current_rate = |
1558 | search_tbl, index, is_green); | 1557 | rate_n_flags_from_tbl(priv, search_tbl, |
1558 | index, is_green); | ||
1559 | goto out; | 1559 | goto out; |
1560 | 1560 | ||
1561 | } | 1561 | } |
@@ -1947,7 +1947,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
1947 | lq_update: | 1947 | lq_update: |
1948 | /* Replace uCode's rate table for the destination station. */ | 1948 | /* Replace uCode's rate table for the destination station. */ |
1949 | if (update_lq) { | 1949 | if (update_lq) { |
1950 | rate = rate_n_flags_from_tbl(tbl, index, is_green); | 1950 | rate = rate_n_flags_from_tbl(priv, tbl, index, is_green); |
1951 | rs_fill_link_cmd(priv, lq_sta, rate); | 1951 | rs_fill_link_cmd(priv, lq_sta, rate); |
1952 | iwl_send_lq_cmd(priv, &lq_sta->lq, CMD_ASYNC); | 1952 | iwl_send_lq_cmd(priv, &lq_sta->lq, CMD_ASYNC); |
1953 | } | 1953 | } |
@@ -2031,7 +2031,7 @@ lq_update: | |||
2031 | } | 2031 | } |
2032 | 2032 | ||
2033 | out: | 2033 | out: |
2034 | tbl->current_rate = rate_n_flags_from_tbl(tbl, index, is_green); | 2034 | tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, index, is_green); |
2035 | i = index; | 2035 | i = index; |
2036 | lq_sta->last_txrate_idx = i; | 2036 | lq_sta->last_txrate_idx = i; |
2037 | 2037 | ||
@@ -2084,7 +2084,7 @@ static void rs_initialize_lq(struct iwl_priv *priv, | |||
2084 | if (!rs_is_valid_ant(valid_tx_ant, tbl->ant_type)) | 2084 | if (!rs_is_valid_ant(valid_tx_ant, tbl->ant_type)) |
2085 | rs_toggle_antenna(valid_tx_ant, &rate, tbl); | 2085 | rs_toggle_antenna(valid_tx_ant, &rate, tbl); |
2086 | 2086 | ||
2087 | rate = rate_n_flags_from_tbl(tbl, rate_idx, use_green); | 2087 | rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); |
2088 | tbl->current_rate = rate; | 2088 | tbl->current_rate = rate; |
2089 | rs_set_expected_tpt_table(lq_sta, tbl); | 2089 | rs_set_expected_tpt_table(lq_sta, tbl); |
2090 | rs_fill_link_cmd(NULL, lq_sta, rate); | 2090 | rs_fill_link_cmd(NULL, lq_sta, rate); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 24e906f75ea9..6e8ab2e5f3d0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1634,16 +1634,16 @@ static int iwl_read_ucode(struct iwl_priv *priv) | |||
1634 | goto err_release; | 1634 | goto err_release; |
1635 | } | 1635 | } |
1636 | if (api_ver != api_max) | 1636 | if (api_ver != api_max) |
1637 | IWL_ERROR("Firmware has old API version. Expected v%u, " | 1637 | IWL_ERR(priv, "Firmware has old API version. Expected v%u, " |
1638 | "got v%u. New firmware can be obtained " | 1638 | "got v%u. New firmware can be obtained " |
1639 | "from http://www.intellinuxwireless.org.\n", | 1639 | "from http://www.intellinuxwireless.org.\n", |
1640 | api_max, api_ver); | 1640 | api_max, api_ver); |
1641 | 1641 | ||
1642 | printk(KERN_INFO DRV_NAME " loaded firmware version %u.%u.%u.%u\n", | 1642 | IWL_INFO(priv, "loaded firmware version %u.%u.%u.%u\n", |
1643 | IWL_UCODE_MAJOR(priv->ucode_ver), | 1643 | IWL_UCODE_MAJOR(priv->ucode_ver), |
1644 | IWL_UCODE_MINOR(priv->ucode_ver), | 1644 | IWL_UCODE_MINOR(priv->ucode_ver), |
1645 | IWL_UCODE_API(priv->ucode_ver), | 1645 | IWL_UCODE_API(priv->ucode_ver), |
1646 | IWL_UCODE_SERIAL(priv->ucode_ver)); | 1646 | IWL_UCODE_SERIAL(priv->ucode_ver)); |
1647 | 1647 | ||
1648 | IWL_DEBUG_INFO("f/w package hdr ucode version raw = 0x%x\n", | 1648 | IWL_DEBUG_INFO("f/w package hdr ucode version raw = 0x%x\n", |
1649 | priv->ucode_ver); | 1649 | priv->ucode_ver); |
@@ -3355,8 +3355,7 @@ static ssize_t store_debug_level(struct device *d, | |||
3355 | 3355 | ||
3356 | ret = strict_strtoul(buf, 0, &val); | 3356 | ret = strict_strtoul(buf, 0, &val); |
3357 | if (ret) | 3357 | if (ret) |
3358 | printk(KERN_INFO DRV_NAME | 3358 | IWL_ERR(priv, "%s is not in hex or decimal form.\n", buf); |
3359 | ": %s is not in hex or decimal form.\n", buf); | ||
3360 | else | 3359 | else |
3361 | priv->debug_level = val; | 3360 | priv->debug_level = val; |
3362 | 3361 | ||
@@ -3435,8 +3434,7 @@ static ssize_t store_tx_power(struct device *d, | |||
3435 | 3434 | ||
3436 | ret = strict_strtoul(buf, 10, &val); | 3435 | ret = strict_strtoul(buf, 10, &val); |
3437 | if (ret) | 3436 | if (ret) |
3438 | printk(KERN_INFO DRV_NAME | 3437 | IWL_INFO(priv, "%s is not in decimal form.\n", buf); |
3439 | ": %s is not in decimal form.\n", buf); | ||
3440 | else | 3438 | else |
3441 | iwl_set_tx_power(priv, val, false); | 3439 | iwl_set_tx_power(priv, val, false); |
3442 | 3440 | ||
@@ -3775,8 +3773,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3775 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 3773 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); |
3776 | /* both attempts failed: */ | 3774 | /* both attempts failed: */ |
3777 | if (err) { | 3775 | if (err) { |
3778 | printk(KERN_WARNING "%s: No suitable DMA available.\n", | 3776 | IWL_WARN(priv, "No suitable DMA available.\n"); |
3779 | DRV_NAME); | ||
3780 | goto out_pci_disable_device; | 3777 | goto out_pci_disable_device; |
3781 | } | 3778 | } |
3782 | } | 3779 | } |
@@ -3802,8 +3799,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3802 | IWL_DEBUG_INFO("pci_resource_base = %p\n", priv->hw_base); | 3799 | IWL_DEBUG_INFO("pci_resource_base = %p\n", priv->hw_base); |
3803 | 3800 | ||
3804 | iwl_hw_detect(priv); | 3801 | iwl_hw_detect(priv); |
3805 | printk(KERN_INFO DRV_NAME | 3802 | IWL_INFO(priv, "Detected Intel Wireless WiFi Link %s REV=0x%X\n", |
3806 | ": Detected Intel Wireless WiFi Link %s REV=0x%X\n", | ||
3807 | priv->cfg->name, priv->hw_rev); | 3803 | priv->cfg->name, priv->hw_rev); |
3808 | 3804 | ||
3809 | /* We disable the RETRY_TIMEOUT register (0x41) to keep | 3805 | /* We disable the RETRY_TIMEOUT register (0x41) to keep |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index bee83d6a51cd..4100b155531f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -511,16 +511,14 @@ static int iwlcore_init_geos(struct iwl_priv *priv) | |||
511 | 511 | ||
512 | if ((priv->bands[IEEE80211_BAND_5GHZ].n_channels == 0) && | 512 | if ((priv->bands[IEEE80211_BAND_5GHZ].n_channels == 0) && |
513 | priv->cfg->sku & IWL_SKU_A) { | 513 | priv->cfg->sku & IWL_SKU_A) { |
514 | dev_printk(KERN_INFO, &(priv->hw->wiphy->dev), | 514 | IWL_INFO(priv, "Incorrectly detected BG card as ABG. " |
515 | "Incorrectly detected BG card as ABG. Please send " | 515 | "Please send your PCI ID 0x%04X:0x%04X to maintainer.\n", |
516 | "your PCI ID 0x%04X:0x%04X to maintainer.\n", | ||
517 | priv->pci_dev->device, | 516 | priv->pci_dev->device, |
518 | priv->pci_dev->subsystem_device); | 517 | priv->pci_dev->subsystem_device); |
519 | priv->cfg->sku &= ~IWL_SKU_A; | 518 | priv->cfg->sku &= ~IWL_SKU_A; |
520 | } | 519 | } |
521 | 520 | ||
522 | dev_printk(KERN_INFO, &(priv->hw->wiphy->dev), | 521 | IWL_INFO(priv, "Tunable channels: %d 802.11bg, %d 802.11a channels\n", |
523 | "Tunable channels: %d 802.11bg, %d 802.11a channels\n", | ||
524 | priv->bands[IEEE80211_BAND_2GHZ].n_channels, | 522 | priv->bands[IEEE80211_BAND_2GHZ].n_channels, |
525 | priv->bands[IEEE80211_BAND_5GHZ].n_channels); | 523 | priv->bands[IEEE80211_BAND_5GHZ].n_channels); |
526 | 524 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index fa0eb8f20cd9..d593b83873e6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h | |||
@@ -31,6 +31,13 @@ | |||
31 | 31 | ||
32 | struct iwl_priv; | 32 | struct iwl_priv; |
33 | 33 | ||
34 | #define IWL_ERROR(f, a...) dev_err(&(priv->pci_dev->dev), f, ## a) | ||
35 | #define IWL_WARNING(f, a...) dev_warn(&(priv->pci_dev->dev), f, ## a) | ||
36 | #define IWL_ERR(p, f, a...) dev_err(&((p)->pci_dev->dev), f, ## a) | ||
37 | #define IWL_WARN(p, f, a...) dev_warn(&((p)->pci_dev->dev), f, ## a) | ||
38 | #define IWL_INFO(p, f, a...) dev_info(&((p)->pci_dev->dev), f, ## a) | ||
39 | #define IWL_CRIT(p, f, a...) dev_crit(&((p)->pci_dev->dev), f, ## a) | ||
40 | |||
34 | #ifdef CONFIG_IWLWIFI_DEBUG | 41 | #ifdef CONFIG_IWLWIFI_DEBUG |
35 | #define IWL_DEBUG(level, fmt, args...) \ | 42 | #define IWL_DEBUG(level, fmt, args...) \ |
36 | do { \ | 43 | do { \ |
@@ -164,11 +171,6 @@ static inline void iwl_dbgfs_unregister(struct iwl_priv *priv) | |||
164 | #define IWL_DL_TX_REPLY (1 << 30) | 171 | #define IWL_DL_TX_REPLY (1 << 30) |
165 | #define IWL_DL_QOS (1 << 31) | 172 | #define IWL_DL_QOS (1 << 31) |
166 | 173 | ||
167 | #define IWL_ERROR(f, a...) \ | ||
168 | dev_printk(KERN_ERR, &(priv->hw->wiphy->dev), f, ## a) | ||
169 | #define IWL_WARNING(f, a...) \ | ||
170 | dev_printk(KERN_WARNING, &(priv->hw->wiphy->dev), f, ## a) | ||
171 | |||
172 | #define IWL_DEBUG_INFO(f, a...) IWL_DEBUG(IWL_DL_INFO, f, ## a) | 174 | #define IWL_DEBUG_INFO(f, a...) IWL_DEBUG(IWL_DL_INFO, f, ## a) |
173 | #define IWL_DEBUG_MAC80211(f, a...) IWL_DEBUG(IWL_DL_MAC80211, f, ## a) | 175 | #define IWL_DEBUG_MAC80211(f, a...) IWL_DEBUG(IWL_DL_MAC80211, f, ## a) |
174 | #define IWL_DEBUG_MACDUMP(f, a...) IWL_DEBUG(IWL_DL_MACDUMP, f, ## a) | 176 | #define IWL_DEBUG_MACDUMP(f, a...) IWL_DEBUG(IWL_DL_MACDUMP, f, ## a) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 1e142fbac616..f27dbb922739 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -172,9 +172,6 @@ static ssize_t iwl_dbgfs_sram_read(struct file *file, | |||
172 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 172 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; |
173 | const size_t bufsz = sizeof(buf); | 173 | const size_t bufsz = sizeof(buf); |
174 | 174 | ||
175 | printk(KERN_DEBUG "offset is: 0x%x\tlen is: 0x%x\n", | ||
176 | priv->dbgfs->sram_offset, priv->dbgfs->sram_len); | ||
177 | |||
178 | iwl_grab_nic_access(priv); | 175 | iwl_grab_nic_access(priv); |
179 | for (i = priv->dbgfs->sram_len; i > 0; i -= 4) { | 176 | for (i = priv->dbgfs->sram_len; i > 0; i -= 4) { |
180 | val = iwl_read_targ_mem(priv, priv->dbgfs->sram_offset + \ | 177 | val = iwl_read_targ_mem(priv, priv->dbgfs->sram_offset + \ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 610a7c2b0ada..18c630d74a3c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -262,8 +262,7 @@ void iwl_rx_allocate(struct iwl_priv *priv) | |||
262 | rxb->skb = alloc_skb(priv->hw_params.rx_buf_size + 256, | 262 | rxb->skb = alloc_skb(priv->hw_params.rx_buf_size + 256, |
263 | GFP_KERNEL); | 263 | GFP_KERNEL); |
264 | if (!rxb->skb) { | 264 | if (!rxb->skb) { |
265 | dev_printk(KERN_CRIT, &(priv->hw->wiphy->dev), | 265 | IWL_CRIT(priv, "Can not allocate SKB buffers\n"); |
266 | "Can not allocate SKB buffers\n"); | ||
267 | /* We don't reschedule replenish work here -- we will | 266 | /* We don't reschedule replenish work here -- we will |
268 | * call the restock method and if it still needs | 267 | * call the restock method and if it still needs |
269 | * more buffers it will schedule replenish */ | 268 | * more buffers it will schedule replenish */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index b0ee86c62685..13aad392b1b5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -802,7 +802,7 @@ static void iwl_tx_cmd_build_hwcrypto(struct iwl_priv *priv, | |||
802 | break; | 802 | break; |
803 | 803 | ||
804 | default: | 804 | default: |
805 | printk(KERN_ERR "Unknown encode alg %d\n", keyconf->alg); | 805 | IWL_ERR(priv, "Unknown encode alg %d\n", keyconf->alg); |
806 | break; | 806 | break; |
807 | } | 807 | } |
808 | } | 808 | } |
@@ -1334,7 +1334,7 @@ int iwl_tx_agg_start(struct iwl_priv *priv, const u8 *ra, u16 tid, u16 *ssn) | |||
1334 | return ret; | 1334 | return ret; |
1335 | 1335 | ||
1336 | if (tid_data->tfds_in_queue == 0) { | 1336 | if (tid_data->tfds_in_queue == 0) { |
1337 | printk(KERN_ERR "HW queue is empty\n"); | 1337 | IWL_ERR(priv, "HW queue is empty\n"); |
1338 | tid_data->agg.state = IWL_AGG_ON; | 1338 | tid_data->agg.state = IWL_AGG_ON; |
1339 | ieee80211_start_tx_ba_cb_irqsafe(priv->hw, ra, tid); | 1339 | ieee80211_start_tx_ba_cb_irqsafe(priv->hw, ra, tid); |
1340 | } else { | 1340 | } else { |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 6bbc887449ca..14864cc6775c 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -2239,7 +2239,7 @@ static void iwl3945_build_tx_cmd_hwcrypto(struct iwl_priv *priv, | |||
2239 | break; | 2239 | break; |
2240 | 2240 | ||
2241 | default: | 2241 | default: |
2242 | printk(KERN_ERR "Unknown encode alg %d\n", keyinfo->alg); | 2242 | IWL_ERR(priv, "Unknown encode alg %d\n", keyinfo->alg); |
2243 | break; | 2243 | break; |
2244 | } | 2244 | } |
2245 | } | 2245 | } |
@@ -3504,8 +3504,7 @@ static void iwl3945_rx_allocate(struct iwl_priv *priv) | |||
3504 | alloc_skb(IWL_RX_BUF_SIZE, __GFP_NOWARN | GFP_ATOMIC); | 3504 | alloc_skb(IWL_RX_BUF_SIZE, __GFP_NOWARN | GFP_ATOMIC); |
3505 | if (!rxb->skb) { | 3505 | if (!rxb->skb) { |
3506 | if (net_ratelimit()) | 3506 | if (net_ratelimit()) |
3507 | printk(KERN_CRIT DRV_NAME | 3507 | IWL_CRIT(priv, ": Can not allocate SKB buffers\n"); |
3508 | ": Can not allocate SKB buffers\n"); | ||
3509 | /* We don't reschedule replenish work here -- we will | 3508 | /* We don't reschedule replenish work here -- we will |
3510 | * call the restock method and if it still needs | 3509 | * call the restock method and if it still needs |
3511 | * more buffers it will schedule replenish */ | 3510 | * more buffers it will schedule replenish */ |
@@ -4874,15 +4873,13 @@ static int iwl3945_init_geos(struct iwl_priv *priv) | |||
4874 | 4873 | ||
4875 | if ((priv->bands[IEEE80211_BAND_5GHZ].n_channels == 0) && | 4874 | if ((priv->bands[IEEE80211_BAND_5GHZ].n_channels == 0) && |
4876 | priv->cfg->sku & IWL_SKU_A) { | 4875 | priv->cfg->sku & IWL_SKU_A) { |
4877 | printk(KERN_INFO DRV_NAME | 4876 | IWL_INFO(priv, "Incorrectly detected BG card as ABG. " |
4878 | ": Incorrectly detected BG card as ABG. Please send " | 4877 | "Please send your PCI ID 0x%04X:0x%04X to maintainer.\n", |
4879 | "your PCI ID 0x%04X:0x%04X to maintainer.\n", | 4878 | priv->pci_dev->device, priv->pci_dev->subsystem_device); |
4880 | priv->pci_dev->device, priv->pci_dev->subsystem_device); | ||
4881 | priv->cfg->sku &= ~IWL_SKU_A; | 4879 | priv->cfg->sku &= ~IWL_SKU_A; |
4882 | } | 4880 | } |
4883 | 4881 | ||
4884 | printk(KERN_INFO DRV_NAME | 4882 | IWL_INFO(priv, "Tunable channels: %d 802.11bg, %d 802.11a channels\n", |
4885 | ": Tunable channels: %d 802.11bg, %d 802.11a channels\n", | ||
4886 | priv->bands[IEEE80211_BAND_2GHZ].n_channels, | 4883 | priv->bands[IEEE80211_BAND_2GHZ].n_channels, |
4887 | priv->bands[IEEE80211_BAND_5GHZ].n_channels); | 4884 | priv->bands[IEEE80211_BAND_5GHZ].n_channels); |
4888 | 4885 | ||
@@ -5299,11 +5296,12 @@ static int iwl3945_read_ucode(struct iwl_priv *priv) | |||
5299 | "from http://www.intellinuxwireless.org.\n", | 5296 | "from http://www.intellinuxwireless.org.\n", |
5300 | api_max, api_ver); | 5297 | api_max, api_ver); |
5301 | 5298 | ||
5302 | printk(KERN_INFO DRV_NAME " loaded firmware version %u.%u.%u.%u\n", | 5299 | IWL_INFO(priv, "loaded firmware version %u.%u.%u.%u\n", |
5303 | IWL_UCODE_MAJOR(priv->ucode_ver), | 5300 | IWL_UCODE_MAJOR(priv->ucode_ver), |
5304 | IWL_UCODE_MINOR(priv->ucode_ver), | 5301 | IWL_UCODE_MINOR(priv->ucode_ver), |
5305 | IWL_UCODE_API(priv->ucode_ver), | 5302 | IWL_UCODE_API(priv->ucode_ver), |
5306 | IWL_UCODE_SERIAL(priv->ucode_ver)); | 5303 | IWL_UCODE_SERIAL(priv->ucode_ver)); |
5304 | |||
5307 | IWL_DEBUG_INFO("f/w package hdr ucode version raw = 0x%x\n", | 5305 | IWL_DEBUG_INFO("f/w package hdr ucode version raw = 0x%x\n", |
5308 | priv->ucode_ver); | 5306 | priv->ucode_ver); |
5309 | IWL_DEBUG_INFO("f/w package hdr runtime inst size = %u\n", inst_size); | 5307 | IWL_DEBUG_INFO("f/w package hdr runtime inst size = %u\n", inst_size); |
@@ -7192,8 +7190,7 @@ static ssize_t store_debug_level(struct device *d, | |||
7192 | 7190 | ||
7193 | ret = strict_strtoul(buf, 0, &val); | 7191 | ret = strict_strtoul(buf, 0, &val); |
7194 | if (ret) | 7192 | if (ret) |
7195 | printk(KERN_INFO DRV_NAME | 7193 | IWL_INFO(priv, "%s is not in hex or decimal form.\n", buf); |
7196 | ": %s is not in hex or decimal form.\n", buf); | ||
7197 | else | 7194 | else |
7198 | priv->debug_level = val; | 7195 | priv->debug_level = val; |
7199 | 7196 | ||
@@ -7235,8 +7232,7 @@ static ssize_t store_tx_power(struct device *d, | |||
7235 | 7232 | ||
7236 | val = simple_strtoul(p, &p, 10); | 7233 | val = simple_strtoul(p, &p, 10); |
7237 | if (p == buf) | 7234 | if (p == buf) |
7238 | printk(KERN_INFO DRV_NAME | 7235 | IWL_INFO(priv, ": %s is not in decimal form.\n", buf); |
7239 | ": %s is not in decimal form.\n", buf); | ||
7240 | else | 7236 | else |
7241 | iwl3945_hw_reg_set_txpower(priv, val); | 7237 | iwl3945_hw_reg_set_txpower(priv, val); |
7242 | 7238 | ||
@@ -7792,7 +7788,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7792 | if (!err) | 7788 | if (!err) |
7793 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 7789 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); |
7794 | if (err) { | 7790 | if (err) { |
7795 | printk(KERN_WARNING DRV_NAME ": No suitable DMA available.\n"); | 7791 | IWL_WARN(priv, "No suitable DMA available.\n"); |
7796 | goto out_pci_disable_device; | 7792 | goto out_pci_disable_device; |
7797 | } | 7793 | } |
7798 | 7794 | ||
@@ -7900,8 +7896,8 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7900 | goto out_free_channel_map; | 7896 | goto out_free_channel_map; |
7901 | } | 7897 | } |
7902 | 7898 | ||
7903 | printk(KERN_INFO DRV_NAME | 7899 | IWL_INFO(priv, "Detected Intel Wireless WiFi Link %s\n", |
7904 | ": Detected Intel Wireless WiFi Link %s\n", priv->cfg->name); | 7900 | priv->cfg->name); |
7905 | 7901 | ||
7906 | /*********************************** | 7902 | /*********************************** |
7907 | * 7. Initialize Module Parameters | 7903 | * 7. Initialize Module Parameters |