aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2008-12-18 21:37:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:16 -0500
commit39aadf8c29ad959e823efca15381bea9d0770b1e (patch)
tree302344b24ccacf38a4af759ec9c809d3b83110a0 /drivers/net/wireless/iwlwifi/iwl-agn.c
parent978785a3892b34448446e8c8a17f48454f1bdd6a (diff)
iwlwifi: replace IWL_WARNING with IWL_WARN
IWL_WARN doesn't use hidden priv pointer. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 6e8ab2e5f3d0..ce290f6867f3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -337,7 +337,7 @@ static void iwl_clear_free_frames(struct iwl_priv *priv)
337 } 337 }
338 338
339 if (priv->frames_count) { 339 if (priv->frames_count) {
340 IWL_WARNING("%d frames still in use. Did we lose one?\n", 340 IWL_WARN(priv, "%d frames still in use. Did we lose one?\n",
341 priv->frames_count); 341 priv->frames_count);
342 priv->frames_count = 0; 342 priv->frames_count = 0;
343 } 343 }
@@ -745,7 +745,7 @@ static int iwl_set_mode(struct iwl_priv *priv, int mode)
745 745
746 cancel_delayed_work(&priv->scan_check); 746 cancel_delayed_work(&priv->scan_check);
747 if (iwl_scan_cancel_timeout(priv, 100)) { 747 if (iwl_scan_cancel_timeout(priv, 100)) {
748 IWL_WARNING("Aborted scan still in progress after 100ms\n"); 748 IWL_WARN(priv, "Aborted scan still in progress after 100ms\n");
749 IWL_DEBUG_MAC80211("leaving - scan abort failed.\n"); 749 IWL_DEBUG_MAC80211("leaving - scan abort failed.\n");
750 return -EAGAIN; 750 return -EAGAIN;
751 } 751 }
@@ -841,7 +841,7 @@ static void iwl_rx_reply_alive(struct iwl_priv *priv,
841 queue_delayed_work(priv->workqueue, pwork, 841 queue_delayed_work(priv->workqueue, pwork,
842 msecs_to_jiffies(5)); 842 msecs_to_jiffies(5));
843 else 843 else
844 IWL_WARNING("uCode did not respond OK.\n"); 844 IWL_WARN(priv, "uCode did not respond OK.\n");
845} 845}
846 846
847static void iwl_rx_reply_error(struct iwl_priv *priv, 847static void iwl_rx_reply_error(struct iwl_priv *priv,
@@ -1193,7 +1193,7 @@ void iwl_rx_handle(struct iwl_priv *priv)
1193 if (rxb && rxb->skb) 1193 if (rxb && rxb->skb)
1194 iwl_tx_cmd_complete(priv, rxb); 1194 iwl_tx_cmd_complete(priv, rxb);
1195 else 1195 else
1196 IWL_WARNING("Claim null rxb?\n"); 1196 IWL_WARN(priv, "Claim null rxb?\n");
1197 } 1197 }
1198 1198
1199 /* For now we just don't re-use anything. We can tweak this 1199 /* For now we just don't re-use anything. We can tweak this
@@ -1457,9 +1457,9 @@ static void iwl_irq_tasklet(struct iwl_priv *priv)
1457 IWL_ERROR("Unhandled INTA bits 0x%08x\n", inta & ~handled); 1457 IWL_ERROR("Unhandled INTA bits 0x%08x\n", inta & ~handled);
1458 1458
1459 if (inta & ~CSR_INI_SET_MASK) { 1459 if (inta & ~CSR_INI_SET_MASK) {
1460 IWL_WARNING("Disabled INTA bits 0x%08x were pending\n", 1460 IWL_WARN(priv, "Disabled INTA bits 0x%08x were pending\n",
1461 inta & ~CSR_INI_SET_MASK); 1461 inta & ~CSR_INI_SET_MASK);
1462 IWL_WARNING(" with FH_INT = 0x%08x\n", inta_fh); 1462 IWL_WARN(priv, " with FH_INT = 0x%08x\n", inta_fh);
1463 } 1463 }
1464 1464
1465 /* Re-enable all interrupts */ 1465 /* Re-enable all interrupts */
@@ -1511,7 +1511,7 @@ static irqreturn_t iwl_isr(int irq, void *data)
1511 if ((inta == 0xFFFFFFFF) || ((inta & 0xFFFFFFF0) == 0xa5a5a5a0)) { 1511 if ((inta == 0xFFFFFFFF) || ((inta & 0xFFFFFFF0) == 0xa5a5a5a0)) {
1512 /* Hardware disappeared. It might have already raised 1512 /* Hardware disappeared. It might have already raised
1513 * an interrupt */ 1513 * an interrupt */
1514 IWL_WARNING("HARDWARE GONE?? INTA == 0x%08x\n", inta); 1514 IWL_WARN(priv, "HARDWARE GONE?? INTA == 0x%08x\n", inta);
1515 goto unplugged; 1515 goto unplugged;
1516 } 1516 }
1517 1517
@@ -1833,8 +1833,8 @@ static void iwl_alive_start(struct iwl_priv *priv)
1833 iwl_clear_stations_table(priv); 1833 iwl_clear_stations_table(priv);
1834 ret = priv->cfg->ops->lib->alive_notify(priv); 1834 ret = priv->cfg->ops->lib->alive_notify(priv);
1835 if (ret) { 1835 if (ret) {
1836 IWL_WARNING("Could not complete ALIVE transition [ntf]: %d\n", 1836 IWL_WARN(priv,
1837 ret); 1837 "Could not complete ALIVE transition [ntf]: %d\n", ret);
1838 goto restart; 1838 goto restart;
1839 } 1839 }
1840 1840
@@ -2020,7 +2020,7 @@ static int __iwl_up(struct iwl_priv *priv)
2020 int ret; 2020 int ret;
2021 2021
2022 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) { 2022 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) {
2023 IWL_WARNING("Exit pending; will not bring the NIC up\n"); 2023 IWL_WARN(priv, "Exit pending; will not bring the NIC up\n");
2024 return -EIO; 2024 return -EIO;
2025 } 2025 }
2026 2026
@@ -2037,7 +2037,7 @@ static int __iwl_up(struct iwl_priv *priv)
2037 2037
2038 if (iwl_is_rfkill(priv)) { 2038 if (iwl_is_rfkill(priv)) {
2039 iwl_enable_interrupts(priv); 2039 iwl_enable_interrupts(priv);
2040 IWL_WARNING("Radio disabled by %s RF Kill switch\n", 2040 IWL_WARN(priv, "Radio disabled by %s RF Kill switch\n",
2041 test_bit(STATUS_RF_KILL_HW, &priv->status) ? "HW" : "SW"); 2041 test_bit(STATUS_RF_KILL_HW, &priv->status) ? "HW" : "SW");
2042 return 0; 2042 return 0;
2043 } 2043 }
@@ -2163,7 +2163,7 @@ static void iwl_bg_rf_kill(struct work_struct *work)
2163 IWL_DEBUG_RF_KILL("Can not turn radio back on - " 2163 IWL_DEBUG_RF_KILL("Can not turn radio back on - "
2164 "disabled by SW switch\n"); 2164 "disabled by SW switch\n");
2165 else 2165 else
2166 IWL_WARNING("Radio Frequency Kill Switch is On:\n" 2166 IWL_WARN(priv, "Radio Frequency Kill Switch is On:\n"
2167 "Kill switch must be turned off for " 2167 "Kill switch must be turned off for "
2168 "wireless networking to work.\n"); 2168 "wireless networking to work.\n");
2169 } 2169 }
@@ -2267,7 +2267,7 @@ static void iwl_post_associate(struct iwl_priv *priv)
2267 ret = iwl_send_cmd_pdu(priv, REPLY_RXON_TIMING, 2267 ret = iwl_send_cmd_pdu(priv, REPLY_RXON_TIMING,
2268 sizeof(priv->rxon_timing), &priv->rxon_timing); 2268 sizeof(priv->rxon_timing), &priv->rxon_timing);
2269 if (ret) 2269 if (ret)
2270 IWL_WARNING("REPLY_RXON_TIMING failed - " 2270 IWL_WARN(priv, "REPLY_RXON_TIMING failed - "
2271 "Attempting to continue.\n"); 2271 "Attempting to continue.\n");
2272 2272
2273 priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; 2273 priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK;
@@ -2668,7 +2668,7 @@ static void iwl_config_ap(struct iwl_priv *priv)
2668 ret = iwl_send_cmd_pdu(priv, REPLY_RXON_TIMING, 2668 ret = iwl_send_cmd_pdu(priv, REPLY_RXON_TIMING,
2669 sizeof(priv->rxon_timing), &priv->rxon_timing); 2669 sizeof(priv->rxon_timing), &priv->rxon_timing);
2670 if (ret) 2670 if (ret)
2671 IWL_WARNING("REPLY_RXON_TIMING failed - " 2671 IWL_WARN(priv, "REPLY_RXON_TIMING failed - "
2672 "Attempting to continue.\n"); 2672 "Attempting to continue.\n");
2673 2673
2674 iwl_set_rxon_chain(priv); 2674 iwl_set_rxon_chain(priv);
@@ -2774,7 +2774,7 @@ static int iwl_mac_config_interface(struct ieee80211_hw *hw,
2774 /* If there is currently a HW scan going on in the background 2774 /* If there is currently a HW scan going on in the background
2775 * then we need to cancel it else the RXON below will fail. */ 2775 * then we need to cancel it else the RXON below will fail. */
2776 if (iwl_scan_cancel_timeout(priv, 100)) { 2776 if (iwl_scan_cancel_timeout(priv, 100)) {
2777 IWL_WARNING("Aborted scan still in progress " 2777 IWL_WARN(priv, "Aborted scan still in progress "
2778 "after 100ms\n"); 2778 "after 100ms\n");
2779 IWL_DEBUG_MAC80211("leaving - scan abort failed.\n"); 2779 IWL_DEBUG_MAC80211("leaving - scan abort failed.\n");
2780 mutex_unlock(&priv->mutex); 2780 mutex_unlock(&priv->mutex);
@@ -3467,7 +3467,7 @@ static ssize_t store_flags(struct device *d,
3467 if (le32_to_cpu(priv->staging_rxon.flags) != flags) { 3467 if (le32_to_cpu(priv->staging_rxon.flags) != flags) {
3468 /* Cancel any currently running scans... */ 3468 /* Cancel any currently running scans... */
3469 if (iwl_scan_cancel_timeout(priv, 100)) 3469 if (iwl_scan_cancel_timeout(priv, 100))
3470 IWL_WARNING("Could not cancel scan.\n"); 3470 IWL_WARN(priv, "Could not cancel scan.\n");
3471 else { 3471 else {
3472 IWL_DEBUG_INFO("Commit rxon.flags = 0x%04X\n", flags); 3472 IWL_DEBUG_INFO("Commit rxon.flags = 0x%04X\n", flags);
3473 priv->staging_rxon.flags = cpu_to_le32(flags); 3473 priv->staging_rxon.flags = cpu_to_le32(flags);
@@ -3506,7 +3506,7 @@ static ssize_t store_filter_flags(struct device *d,
3506 if (le32_to_cpu(priv->staging_rxon.filter_flags) != filter_flags) { 3506 if (le32_to_cpu(priv->staging_rxon.filter_flags) != filter_flags) {
3507 /* Cancel any currently running scans... */ 3507 /* Cancel any currently running scans... */
3508 if (iwl_scan_cancel_timeout(priv, 100)) 3508 if (iwl_scan_cancel_timeout(priv, 100))
3509 IWL_WARNING("Could not cancel scan.\n"); 3509 IWL_WARN(priv, "Could not cancel scan.\n");
3510 else { 3510 else {
3511 IWL_DEBUG_INFO("Committing rxon.filter_flags = " 3511 IWL_DEBUG_INFO("Committing rxon.filter_flags = "
3512 "0x%04X\n", filter_flags); 3512 "0x%04X\n", filter_flags);