diff options
author | Joe Perches <joe@perches.com> | 2012-05-15 17:20:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-05 15:27:16 -0400 |
commit | f0d232080fa5d040aaf73a39d127b003cdd2d0ae (patch) | |
tree | 7c6ee7c422152e2627040e466dc2d709a27f0469 /net | |
parent | 6efb71b01e37296eb0bcd6c63f7fa3b2d996d589 (diff) |
net: mac80211: Convert printk(KERN_DEBUG to pr_debug
Standardize the debugging to be able to use dynamic_debug.
Coalesce formats, align arguments.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/agg-rx.c | 20 | ||||
-rw-r--r-- | net/mac80211/agg-tx.c | 68 | ||||
-rw-r--r-- | net/mac80211/cfg.c | 4 | ||||
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 2 | ||||
-rw-r--r-- | net/mac80211/ibss.c | 88 | ||||
-rw-r--r-- | net/mac80211/iface.c | 4 | ||||
-rw-r--r-- | net/mac80211/mesh.c | 3 | ||||
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 2 | ||||
-rw-r--r-- | net/mac80211/mesh_pathtbl.c | 2 | ||||
-rw-r--r-- | net/mac80211/mesh_plink.c | 2 | ||||
-rw-r--r-- | net/mac80211/mesh_sync.c | 2 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 131 | ||||
-rw-r--r-- | net/mac80211/rx.c | 22 | ||||
-rw-r--r-- | net/mac80211/sta_info.c | 21 | ||||
-rw-r--r-- | net/mac80211/status.c | 2 | ||||
-rw-r--r-- | net/mac80211/tkip.c | 21 | ||||
-rw-r--r-- | net/mac80211/tx.c | 14 |
17 files changed, 181 insertions, 227 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index 26ddb699d693..ec55f42705b7 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c | |||
@@ -75,17 +75,16 @@ void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, | |||
75 | RCU_INIT_POINTER(sta->ampdu_mlme.tid_rx[tid], NULL); | 75 | RCU_INIT_POINTER(sta->ampdu_mlme.tid_rx[tid], NULL); |
76 | 76 | ||
77 | #ifdef CONFIG_MAC80211_HT_DEBUG | 77 | #ifdef CONFIG_MAC80211_HT_DEBUG |
78 | printk(KERN_DEBUG | 78 | pr_debug("Rx BA session stop requested for %pM tid %u %s reason: %d\n", |
79 | "Rx BA session stop requested for %pM tid %u %s reason: %d\n", | 79 | sta->sta.addr, tid, |
80 | sta->sta.addr, tid, | 80 | initiator == WLAN_BACK_RECIPIENT ? "recipient" : "inititator", |
81 | initiator == WLAN_BACK_RECIPIENT ? "recipient" : "inititator", | 81 | (int)reason); |
82 | (int)reason); | ||
83 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 82 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
84 | 83 | ||
85 | if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP, | 84 | if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP, |
86 | &sta->sta, tid, NULL, 0)) | 85 | &sta->sta, tid, NULL, 0)) |
87 | printk(KERN_DEBUG "HW problem - can not stop rx " | 86 | pr_debug("HW problem - can not stop rx aggregation for tid %d\n", |
88 | "aggregation for tid %d\n", tid); | 87 | tid); |
89 | 88 | ||
90 | /* check if this is a self generated aggregation halt */ | 89 | /* check if this is a self generated aggregation halt */ |
91 | if (initiator == WLAN_BACK_RECIPIENT && tx) | 90 | if (initiator == WLAN_BACK_RECIPIENT && tx) |
@@ -156,7 +155,7 @@ static void sta_rx_agg_session_timer_expired(unsigned long data) | |||
156 | } | 155 | } |
157 | 156 | ||
158 | #ifdef CONFIG_MAC80211_HT_DEBUG | 157 | #ifdef CONFIG_MAC80211_HT_DEBUG |
159 | printk(KERN_DEBUG "rx session timer expired on tid %d\n", (u16)*ptid); | 158 | pr_debug("rx session timer expired on tid %d\n", (u16)*ptid); |
160 | #endif | 159 | #endif |
161 | set_bit(*ptid, sta->ampdu_mlme.tid_rx_timer_expired); | 160 | set_bit(*ptid, sta->ampdu_mlme.tid_rx_timer_expired); |
162 | ieee80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work); | 161 | ieee80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work); |
@@ -245,8 +244,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
245 | 244 | ||
246 | if (test_sta_flag(sta, WLAN_STA_BLOCK_BA)) { | 245 | if (test_sta_flag(sta, WLAN_STA_BLOCK_BA)) { |
247 | #ifdef CONFIG_MAC80211_HT_DEBUG | 246 | #ifdef CONFIG_MAC80211_HT_DEBUG |
248 | printk(KERN_DEBUG "Suspend in progress. " | 247 | pr_debug("Suspend in progress - Denying ADDBA request\n"); |
249 | "Denying ADDBA request\n"); | ||
250 | #endif | 248 | #endif |
251 | goto end_no_lock; | 249 | goto end_no_lock; |
252 | } | 250 | } |
@@ -320,7 +318,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
320 | ret = drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_START, | 318 | ret = drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_START, |
321 | &sta->sta, tid, &start_seq_num, 0); | 319 | &sta->sta, tid, &start_seq_num, 0); |
322 | #ifdef CONFIG_MAC80211_HT_DEBUG | 320 | #ifdef CONFIG_MAC80211_HT_DEBUG |
323 | printk(KERN_DEBUG "Rx A-MPDU request on tid %d result %d\n", tid, ret); | 321 | pr_debug("Rx A-MPDU request on tid %d result %d\n", tid, ret); |
324 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 322 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
325 | 323 | ||
326 | if (ret) { | 324 | if (ret) { |
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index 7cf07158805c..90b2c0ffd5b0 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c | |||
@@ -185,8 +185,8 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, | |||
185 | spin_unlock_bh(&sta->lock); | 185 | spin_unlock_bh(&sta->lock); |
186 | 186 | ||
187 | #ifdef CONFIG_MAC80211_HT_DEBUG | 187 | #ifdef CONFIG_MAC80211_HT_DEBUG |
188 | printk(KERN_DEBUG "Tx BA session stop requested for %pM tid %u\n", | 188 | pr_debug("Tx BA session stop requested for %pM tid %u\n", |
189 | sta->sta.addr, tid); | 189 | sta->sta.addr, tid); |
190 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 190 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
191 | 191 | ||
192 | del_timer_sync(&tid_tx->addba_resp_timer); | 192 | del_timer_sync(&tid_tx->addba_resp_timer); |
@@ -254,15 +254,14 @@ static void sta_addba_resp_timer_expired(unsigned long data) | |||
254 | test_bit(HT_AGG_STATE_RESPONSE_RECEIVED, &tid_tx->state)) { | 254 | test_bit(HT_AGG_STATE_RESPONSE_RECEIVED, &tid_tx->state)) { |
255 | rcu_read_unlock(); | 255 | rcu_read_unlock(); |
256 | #ifdef CONFIG_MAC80211_HT_DEBUG | 256 | #ifdef CONFIG_MAC80211_HT_DEBUG |
257 | printk(KERN_DEBUG "timer expired on tid %d but we are not " | 257 | pr_debug("timer expired on tid %d but we are not (or no longer) expecting addBA response there\n", |
258 | "(or no longer) expecting addBA response there\n", | 258 | tid); |
259 | tid); | ||
260 | #endif | 259 | #endif |
261 | return; | 260 | return; |
262 | } | 261 | } |
263 | 262 | ||
264 | #ifdef CONFIG_MAC80211_HT_DEBUG | 263 | #ifdef CONFIG_MAC80211_HT_DEBUG |
265 | printk(KERN_DEBUG "addBA response timer expired on tid %d\n", tid); | 264 | pr_debug("addBA response timer expired on tid %d\n", tid); |
266 | #endif | 265 | #endif |
267 | 266 | ||
268 | ieee80211_stop_tx_ba_session(&sta->sta, tid); | 267 | ieee80211_stop_tx_ba_session(&sta->sta, tid); |
@@ -373,8 +372,8 @@ void ieee80211_tx_ba_session_handle_start(struct sta_info *sta, int tid) | |||
373 | &sta->sta, tid, &start_seq_num, 0); | 372 | &sta->sta, tid, &start_seq_num, 0); |
374 | if (ret) { | 373 | if (ret) { |
375 | #ifdef CONFIG_MAC80211_HT_DEBUG | 374 | #ifdef CONFIG_MAC80211_HT_DEBUG |
376 | printk(KERN_DEBUG "BA request denied - HW unavailable for" | 375 | pr_debug("BA request denied - HW unavailable for tid %d\n", |
377 | " tid %d\n", tid); | 376 | tid); |
378 | #endif | 377 | #endif |
379 | spin_lock_bh(&sta->lock); | 378 | spin_lock_bh(&sta->lock); |
380 | ieee80211_agg_splice_packets(sdata, tid_tx, tid); | 379 | ieee80211_agg_splice_packets(sdata, tid_tx, tid); |
@@ -389,7 +388,7 @@ void ieee80211_tx_ba_session_handle_start(struct sta_info *sta, int tid) | |||
389 | /* activate the timer for the recipient's addBA response */ | 388 | /* activate the timer for the recipient's addBA response */ |
390 | mod_timer(&tid_tx->addba_resp_timer, jiffies + ADDBA_RESP_INTERVAL); | 389 | mod_timer(&tid_tx->addba_resp_timer, jiffies + ADDBA_RESP_INTERVAL); |
391 | #ifdef CONFIG_MAC80211_HT_DEBUG | 390 | #ifdef CONFIG_MAC80211_HT_DEBUG |
392 | printk(KERN_DEBUG "activated addBA response timer on tid %d\n", tid); | 391 | pr_debug("activated addBA response timer on tid %d\n", tid); |
393 | #endif | 392 | #endif |
394 | 393 | ||
395 | spin_lock_bh(&sta->lock); | 394 | spin_lock_bh(&sta->lock); |
@@ -438,7 +437,7 @@ static void sta_tx_agg_session_timer_expired(unsigned long data) | |||
438 | rcu_read_unlock(); | 437 | rcu_read_unlock(); |
439 | 438 | ||
440 | #ifdef CONFIG_MAC80211_HT_DEBUG | 439 | #ifdef CONFIG_MAC80211_HT_DEBUG |
441 | printk(KERN_DEBUG "tx session timer expired on tid %d\n", (u16)*ptid); | 440 | pr_debug("tx session timer expired on tid %d\n", (u16)*ptid); |
442 | #endif | 441 | #endif |
443 | 442 | ||
444 | ieee80211_stop_tx_ba_session(&sta->sta, *ptid); | 443 | ieee80211_stop_tx_ba_session(&sta->sta, *ptid); |
@@ -464,8 +463,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
464 | return -EINVAL; | 463 | return -EINVAL; |
465 | 464 | ||
466 | #ifdef CONFIG_MAC80211_HT_DEBUG | 465 | #ifdef CONFIG_MAC80211_HT_DEBUG |
467 | printk(KERN_DEBUG "Open BA session requested for %pM tid %u\n", | 466 | pr_debug("Open BA session requested for %pM tid %u\n", |
468 | pubsta->addr, tid); | 467 | pubsta->addr, tid); |
469 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 468 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
470 | 469 | ||
471 | if (sdata->vif.type != NL80211_IFTYPE_STATION && | 470 | if (sdata->vif.type != NL80211_IFTYPE_STATION && |
@@ -477,8 +476,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
477 | 476 | ||
478 | if (test_sta_flag(sta, WLAN_STA_BLOCK_BA)) { | 477 | if (test_sta_flag(sta, WLAN_STA_BLOCK_BA)) { |
479 | #ifdef CONFIG_MAC80211_HT_DEBUG | 478 | #ifdef CONFIG_MAC80211_HT_DEBUG |
480 | printk(KERN_DEBUG "BA sessions blocked. " | 479 | pr_debug("BA sessions blocked - Denying BA session request\n"); |
481 | "Denying BA session request\n"); | ||
482 | #endif | 480 | #endif |
483 | return -EINVAL; | 481 | return -EINVAL; |
484 | } | 482 | } |
@@ -498,8 +496,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
498 | if (sta->sdata->vif.type == NL80211_IFTYPE_ADHOC && | 496 | if (sta->sdata->vif.type == NL80211_IFTYPE_ADHOC && |
499 | !sta->sta.ht_cap.ht_supported) { | 497 | !sta->sta.ht_cap.ht_supported) { |
500 | #ifdef CONFIG_MAC80211_HT_DEBUG | 498 | #ifdef CONFIG_MAC80211_HT_DEBUG |
501 | printk(KERN_DEBUG "BA request denied - IBSS STA %pM" | 499 | pr_debug("BA request denied - IBSS STA %pM does not advertise HT support\n", |
502 | "does not advertise HT support\n", pubsta->addr); | 500 | pubsta->addr); |
503 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 501 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
504 | return -EINVAL; | 502 | return -EINVAL; |
505 | } | 503 | } |
@@ -521,10 +519,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
521 | time_before(jiffies, sta->ampdu_mlme.last_addba_req_time[tid] + | 519 | time_before(jiffies, sta->ampdu_mlme.last_addba_req_time[tid] + |
522 | HT_AGG_RETRIES_PERIOD)) { | 520 | HT_AGG_RETRIES_PERIOD)) { |
523 | #ifdef CONFIG_MAC80211_HT_DEBUG | 521 | #ifdef CONFIG_MAC80211_HT_DEBUG |
524 | printk(KERN_DEBUG "BA request denied - " | 522 | pr_debug("BA request denied - waiting a grace period after %d failed requests on tid %u\n", |
525 | "waiting a grace period after %d failed requests " | 523 | sta->ampdu_mlme.addba_req_num[tid], tid); |
526 | "on tid %u\n", | ||
527 | sta->ampdu_mlme.addba_req_num[tid], tid); | ||
528 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 524 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
529 | ret = -EBUSY; | 525 | ret = -EBUSY; |
530 | goto err_unlock_sta; | 526 | goto err_unlock_sta; |
@@ -534,8 +530,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
534 | /* check if the TID is not in aggregation flow already */ | 530 | /* check if the TID is not in aggregation flow already */ |
535 | if (tid_tx || sta->ampdu_mlme.tid_start_tx[tid]) { | 531 | if (tid_tx || sta->ampdu_mlme.tid_start_tx[tid]) { |
536 | #ifdef CONFIG_MAC80211_HT_DEBUG | 532 | #ifdef CONFIG_MAC80211_HT_DEBUG |
537 | printk(KERN_DEBUG "BA request denied - session is not " | 533 | pr_debug("BA request denied - session is not idle on tid %u\n", |
538 | "idle on tid %u\n", tid); | 534 | tid); |
539 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 535 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
540 | ret = -EAGAIN; | 536 | ret = -EAGAIN; |
541 | goto err_unlock_sta; | 537 | goto err_unlock_sta; |
@@ -592,7 +588,7 @@ static void ieee80211_agg_tx_operational(struct ieee80211_local *local, | |||
592 | tid_tx = rcu_dereference_protected_tid_tx(sta, tid); | 588 | tid_tx = rcu_dereference_protected_tid_tx(sta, tid); |
593 | 589 | ||
594 | #ifdef CONFIG_MAC80211_HT_DEBUG | 590 | #ifdef CONFIG_MAC80211_HT_DEBUG |
595 | printk(KERN_DEBUG "Aggregation is on for tid %d\n", tid); | 591 | pr_debug("Aggregation is on for tid %d\n", tid); |
596 | #endif | 592 | #endif |
597 | 593 | ||
598 | drv_ampdu_action(local, sta->sdata, | 594 | drv_ampdu_action(local, sta->sdata, |
@@ -628,8 +624,7 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid) | |||
628 | 624 | ||
629 | if (tid >= STA_TID_NUM) { | 625 | if (tid >= STA_TID_NUM) { |
630 | #ifdef CONFIG_MAC80211_HT_DEBUG | 626 | #ifdef CONFIG_MAC80211_HT_DEBUG |
631 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", | 627 | pr_debug("Bad TID value: tid = %d (>= %d)\n", tid, STA_TID_NUM); |
632 | tid, STA_TID_NUM); | ||
633 | #endif | 628 | #endif |
634 | return; | 629 | return; |
635 | } | 630 | } |
@@ -639,7 +634,7 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid) | |||
639 | if (!sta) { | 634 | if (!sta) { |
640 | mutex_unlock(&local->sta_mtx); | 635 | mutex_unlock(&local->sta_mtx); |
641 | #ifdef CONFIG_MAC80211_HT_DEBUG | 636 | #ifdef CONFIG_MAC80211_HT_DEBUG |
642 | printk(KERN_DEBUG "Could not find station: %pM\n", ra); | 637 | pr_debug("Could not find station: %pM\n", ra); |
643 | #endif | 638 | #endif |
644 | return; | 639 | return; |
645 | } | 640 | } |
@@ -649,7 +644,7 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid) | |||
649 | 644 | ||
650 | if (WARN_ON(!tid_tx)) { | 645 | if (WARN_ON(!tid_tx)) { |
651 | #ifdef CONFIG_MAC80211_HT_DEBUG | 646 | #ifdef CONFIG_MAC80211_HT_DEBUG |
652 | printk(KERN_DEBUG "addBA was not requested!\n"); | 647 | pr_debug("addBA was not requested!\n"); |
653 | #endif | 648 | #endif |
654 | goto unlock; | 649 | goto unlock; |
655 | } | 650 | } |
@@ -751,15 +746,13 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid) | |||
751 | 746 | ||
752 | if (tid >= STA_TID_NUM) { | 747 | if (tid >= STA_TID_NUM) { |
753 | #ifdef CONFIG_MAC80211_HT_DEBUG | 748 | #ifdef CONFIG_MAC80211_HT_DEBUG |
754 | printk(KERN_DEBUG "Bad TID value: tid = %d (>= %d)\n", | 749 | pr_debug("Bad TID value: tid = %d (>= %d)\n", tid, STA_TID_NUM); |
755 | tid, STA_TID_NUM); | ||
756 | #endif | 750 | #endif |
757 | return; | 751 | return; |
758 | } | 752 | } |
759 | 753 | ||
760 | #ifdef CONFIG_MAC80211_HT_DEBUG | 754 | #ifdef CONFIG_MAC80211_HT_DEBUG |
761 | printk(KERN_DEBUG "Stopping Tx BA session for %pM tid %d\n", | 755 | pr_debug("Stopping Tx BA session for %pM tid %d\n", ra, tid); |
762 | ra, tid); | ||
763 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 756 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
764 | 757 | ||
765 | mutex_lock(&local->sta_mtx); | 758 | mutex_lock(&local->sta_mtx); |
@@ -767,7 +760,7 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid) | |||
767 | sta = sta_info_get_bss(sdata, ra); | 760 | sta = sta_info_get_bss(sdata, ra); |
768 | if (!sta) { | 761 | if (!sta) { |
769 | #ifdef CONFIG_MAC80211_HT_DEBUG | 762 | #ifdef CONFIG_MAC80211_HT_DEBUG |
770 | printk(KERN_DEBUG "Could not find station: %pM\n", ra); | 763 | pr_debug("Could not find station: %pM\n", ra); |
771 | #endif | 764 | #endif |
772 | goto unlock; | 765 | goto unlock; |
773 | } | 766 | } |
@@ -778,7 +771,7 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid) | |||
778 | 771 | ||
779 | if (!tid_tx || !test_bit(HT_AGG_STATE_STOPPING, &tid_tx->state)) { | 772 | if (!tid_tx || !test_bit(HT_AGG_STATE_STOPPING, &tid_tx->state)) { |
780 | #ifdef CONFIG_MAC80211_HT_DEBUG | 773 | #ifdef CONFIG_MAC80211_HT_DEBUG |
781 | printk(KERN_DEBUG "unexpected callback to A-MPDU stop\n"); | 774 | pr_debug("unexpected callback to A-MPDU stop\n"); |
782 | #endif | 775 | #endif |
783 | goto unlock_sta; | 776 | goto unlock_sta; |
784 | } | 777 | } |
@@ -856,7 +849,7 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local, | |||
856 | 849 | ||
857 | if (mgmt->u.action.u.addba_resp.dialog_token != tid_tx->dialog_token) { | 850 | if (mgmt->u.action.u.addba_resp.dialog_token != tid_tx->dialog_token) { |
858 | #ifdef CONFIG_MAC80211_HT_DEBUG | 851 | #ifdef CONFIG_MAC80211_HT_DEBUG |
859 | printk(KERN_DEBUG "wrong addBA response token, tid %d\n", tid); | 852 | pr_debug("wrong addBA response token, tid %d\n", tid); |
860 | #endif | 853 | #endif |
861 | goto out; | 854 | goto out; |
862 | } | 855 | } |
@@ -864,7 +857,7 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local, | |||
864 | del_timer_sync(&tid_tx->addba_resp_timer); | 857 | del_timer_sync(&tid_tx->addba_resp_timer); |
865 | 858 | ||
866 | #ifdef CONFIG_MAC80211_HT_DEBUG | 859 | #ifdef CONFIG_MAC80211_HT_DEBUG |
867 | printk(KERN_DEBUG "switched off addBA timer for tid %d\n", tid); | 860 | pr_debug("switched off addBA timer for tid %d\n", tid); |
868 | #endif | 861 | #endif |
869 | 862 | ||
870 | /* | 863 | /* |
@@ -875,9 +868,8 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local, | |||
875 | if (test_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state) || | 868 | if (test_bit(HT_AGG_STATE_WANT_STOP, &tid_tx->state) || |
876 | test_bit(HT_AGG_STATE_STOPPING, &tid_tx->state)) { | 869 | test_bit(HT_AGG_STATE_STOPPING, &tid_tx->state)) { |
877 | #ifdef CONFIG_MAC80211_HT_DEBUG | 870 | #ifdef CONFIG_MAC80211_HT_DEBUG |
878 | printk(KERN_DEBUG | 871 | pr_debug("got addBA resp for tid %d but we already gave up\n", |
879 | "got addBA resp for tid %d but we already gave up\n", | 872 | tid); |
880 | tid); | ||
881 | #endif | 873 | #endif |
882 | goto out; | 874 | goto out; |
883 | } | 875 | } |
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7ad542363f0b..f099cf4d12bc 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -2679,7 +2679,7 @@ static int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, | |||
2679 | return -EINVAL; | 2679 | return -EINVAL; |
2680 | 2680 | ||
2681 | #ifdef CONFIG_MAC80211_VERBOSE_TDLS_DEBUG | 2681 | #ifdef CONFIG_MAC80211_VERBOSE_TDLS_DEBUG |
2682 | printk(KERN_DEBUG "TDLS mgmt action %d peer %pM\n", action_code, peer); | 2682 | pr_debug("TDLS mgmt action %d peer %pM\n", action_code, peer); |
2683 | #endif | 2683 | #endif |
2684 | 2684 | ||
2685 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + | 2685 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + |
@@ -2790,7 +2790,7 @@ static int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, | |||
2790 | return -EINVAL; | 2790 | return -EINVAL; |
2791 | 2791 | ||
2792 | #ifdef CONFIG_MAC80211_VERBOSE_TDLS_DEBUG | 2792 | #ifdef CONFIG_MAC80211_VERBOSE_TDLS_DEBUG |
2793 | printk(KERN_DEBUG "TDLS oper %d peer %pM\n", oper, peer); | 2793 | pr_debug("TDLS oper %d peer %pM\n", oper, peer); |
2794 | #endif | 2794 | #endif |
2795 | 2795 | ||
2796 | switch (oper) { | 2796 | switch (oper) { |
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 7ed433c66d68..1a3b36154e73 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -685,6 +685,6 @@ void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata) | |||
685 | 685 | ||
686 | sprintf(buf, "netdev:%s", sdata->name); | 686 | sprintf(buf, "netdev:%s", sdata->name); |
687 | if (!debugfs_rename(dir->d_parent, dir, dir->d_parent, buf)) | 687 | if (!debugfs_rename(dir->d_parent, dir, dir->d_parent, buf)) |
688 | printk(KERN_ERR "mac80211: debugfs: failed to rename debugfs " | 688 | pr_err("mac80211: debugfs: failed to rename debugfs " |
689 | "dir to %s\n", buf); | 689 | "dir to %s\n", buf); |
690 | } | 690 | } |
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 33d9d0c3e3d0..148c27553024 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -282,9 +282,8 @@ static struct sta_info *ieee80211_ibss_finish_sta(struct sta_info *sta, | |||
282 | return sta_info_get(sdata, addr); | 282 | return sta_info_get(sdata, addr); |
283 | if (auth) { | 283 | if (auth) { |
284 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 284 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
285 | printk(KERN_DEBUG "TX Auth SA=%pM DA=%pM BSSID=%pM" | 285 | pr_debug("TX Auth SA=%pM DA=%pM BSSID=%pM (auth_transaction=1)\n", |
286 | "(auth_transaction=1)\n", sdata->vif.addr, | 286 | sdata->vif.addr, sdata->u.ibss.bssid, addr); |
287 | sdata->u.ibss.bssid, addr); | ||
288 | #endif | 287 | #endif |
289 | ieee80211_send_auth(sdata, 1, WLAN_AUTH_OPEN, NULL, 0, | 288 | ieee80211_send_auth(sdata, 1, WLAN_AUTH_OPEN, NULL, 0, |
290 | addr, sdata->u.ibss.bssid, NULL, 0, 0); | 289 | addr, sdata->u.ibss.bssid, NULL, 0, 0); |
@@ -356,9 +355,9 @@ static void ieee80211_rx_mgmt_auth_ibss(struct ieee80211_sub_if_data *sdata, | |||
356 | if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) | 355 | if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) |
357 | return; | 356 | return; |
358 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 357 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
359 | printk(KERN_DEBUG "%s: RX Auth SA=%pM DA=%pM BSSID=%pM." | 358 | pr_debug("%s: RX Auth SA=%pM DA=%pM BSSID=%pM (auth_transaction=%d)\n", |
360 | "(auth_transaction=%d)\n", | 359 | sdata->name, mgmt->sa, mgmt->da, mgmt->bssid, |
361 | sdata->name, mgmt->sa, mgmt->da, mgmt->bssid, auth_transaction); | 360 | auth_transaction); |
362 | #endif | 361 | #endif |
363 | sta_info_destroy_addr(sdata, mgmt->sa); | 362 | sta_info_destroy_addr(sdata, mgmt->sa); |
364 | ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, 0, false); | 363 | ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, 0, false); |
@@ -423,13 +422,10 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
423 | 422 | ||
424 | if (sta->sta.supp_rates[band] != prev_rates) { | 423 | if (sta->sta.supp_rates[band] != prev_rates) { |
425 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 424 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
426 | printk(KERN_DEBUG | 425 | pr_debug("%s: updated supp_rates set for %pM based on beacon/probe_resp (0x%x -> 0x%x)\n", |
427 | "%s: updated supp_rates set " | 426 | sdata->name, sta->sta.addr, |
428 | "for %pM based on beacon" | 427 | prev_rates, |
429 | "/probe_resp (0x%x -> 0x%x)\n", | 428 | sta->sta.supp_rates[band]); |
430 | sdata->name, sta->sta.addr, | ||
431 | prev_rates, | ||
432 | sta->sta.supp_rates[band]); | ||
433 | #endif | 429 | #endif |
434 | rates_updated = true; | 430 | rates_updated = true; |
435 | } | 431 | } |
@@ -546,20 +542,18 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
546 | } | 542 | } |
547 | 543 | ||
548 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 544 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
549 | printk(KERN_DEBUG "RX beacon SA=%pM BSSID=" | 545 | pr_debug("RX beacon SA=%pM BSSID=%pM TSF=0x%llx BCN=0x%llx diff=%lld @%lu\n", |
550 | "%pM TSF=0x%llx BCN=0x%llx diff=%lld @%lu\n", | 546 | mgmt->sa, mgmt->bssid, |
551 | mgmt->sa, mgmt->bssid, | 547 | (unsigned long long)rx_timestamp, |
552 | (unsigned long long)rx_timestamp, | 548 | (unsigned long long)beacon_timestamp, |
553 | (unsigned long long)beacon_timestamp, | 549 | (unsigned long long)(rx_timestamp - beacon_timestamp), |
554 | (unsigned long long)(rx_timestamp - beacon_timestamp), | 550 | jiffies); |
555 | jiffies); | ||
556 | #endif | 551 | #endif |
557 | 552 | ||
558 | if (beacon_timestamp > rx_timestamp) { | 553 | if (beacon_timestamp > rx_timestamp) { |
559 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 554 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
560 | printk(KERN_DEBUG "%s: beacon TSF higher than " | 555 | pr_debug("%s: beacon TSF higher than local TSF - IBSS merge with BSSID %pM\n", |
561 | "local TSF - IBSS merge with BSSID %pM\n", | 556 | sdata->name, mgmt->bssid); |
562 | sdata->name, mgmt->bssid); | ||
563 | #endif | 557 | #endif |
564 | ieee80211_sta_join_ibss(sdata, bss); | 558 | ieee80211_sta_join_ibss(sdata, bss); |
565 | supp_rates = ieee80211_sta_get_rates(local, elems, band, NULL); | 559 | supp_rates = ieee80211_sta_get_rates(local, elems, band, NULL); |
@@ -662,8 +656,8 @@ static void ieee80211_sta_merge_ibss(struct ieee80211_sub_if_data *sdata) | |||
662 | if (ifibss->fixed_channel) | 656 | if (ifibss->fixed_channel) |
663 | return; | 657 | return; |
664 | 658 | ||
665 | printk(KERN_DEBUG "%s: No active IBSS STAs - trying to scan for other " | 659 | pr_debug("%s: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)\n", |
666 | "IBSS networks with same SSID (merge)\n", sdata->name); | 660 | sdata->name); |
667 | 661 | ||
668 | ieee80211_request_internal_scan(sdata, | 662 | ieee80211_request_internal_scan(sdata, |
669 | ifibss->ssid, ifibss->ssid_len, NULL); | 663 | ifibss->ssid, ifibss->ssid_len, NULL); |
@@ -691,8 +685,8 @@ static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata) | |||
691 | bssid[0] |= 0x02; | 685 | bssid[0] |= 0x02; |
692 | } | 686 | } |
693 | 687 | ||
694 | printk(KERN_DEBUG "%s: Creating new IBSS network, BSSID %pM\n", | 688 | pr_debug("%s: Creating new IBSS network, BSSID %pM\n", |
695 | sdata->name, bssid); | 689 | sdata->name, bssid); |
696 | 690 | ||
697 | capability = WLAN_CAPABILITY_IBSS; | 691 | capability = WLAN_CAPABILITY_IBSS; |
698 | 692 | ||
@@ -724,8 +718,8 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) | |||
724 | 718 | ||
725 | active_ibss = ieee80211_sta_active_ibss(sdata); | 719 | active_ibss = ieee80211_sta_active_ibss(sdata); |
726 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 720 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
727 | printk(KERN_DEBUG "%s: sta_find_ibss (active_ibss=%d)\n", | 721 | pr_debug("%s: sta_find_ibss (active_ibss=%d)\n", |
728 | sdata->name, active_ibss); | 722 | sdata->name, active_ibss); |
729 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ | 723 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ |
730 | 724 | ||
731 | if (active_ibss) | 725 | if (active_ibss) |
@@ -750,13 +744,12 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) | |||
750 | 744 | ||
751 | bss = (void *)cbss->priv; | 745 | bss = (void *)cbss->priv; |
752 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 746 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
753 | printk(KERN_DEBUG " sta_find_ibss: selected %pM current " | 747 | pr_debug(" sta_find_ibss: selected %pM current %pM\n", |
754 | "%pM\n", cbss->bssid, ifibss->bssid); | 748 | cbss->bssid, ifibss->bssid); |
755 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ | 749 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ |
756 | 750 | ||
757 | printk(KERN_DEBUG "%s: Selected IBSS BSSID %pM" | 751 | pr_debug("%s: Selected IBSS BSSID %pM based on configured SSID\n", |
758 | " based on configured SSID\n", | 752 | sdata->name, cbss->bssid); |
759 | sdata->name, cbss->bssid); | ||
760 | 753 | ||
761 | ieee80211_sta_join_ibss(sdata, bss); | 754 | ieee80211_sta_join_ibss(sdata, bss); |
762 | ieee80211_rx_bss_put(local, bss); | 755 | ieee80211_rx_bss_put(local, bss); |
@@ -764,14 +757,14 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) | |||
764 | } | 757 | } |
765 | 758 | ||
766 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 759 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
767 | printk(KERN_DEBUG " did not try to join ibss\n"); | 760 | pr_debug(" did not try to join ibss\n"); |
768 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ | 761 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ |
769 | 762 | ||
770 | /* Selected IBSS not found in current scan results - try to scan */ | 763 | /* Selected IBSS not found in current scan results - try to scan */ |
771 | if (time_after(jiffies, ifibss->last_scan_completed + | 764 | if (time_after(jiffies, ifibss->last_scan_completed + |
772 | IEEE80211_SCAN_INTERVAL)) { | 765 | IEEE80211_SCAN_INTERVAL)) { |
773 | printk(KERN_DEBUG "%s: Trigger new scan to find an IBSS to " | 766 | pr_debug("%s: Trigger new scan to find an IBSS to join\n", |
774 | "join\n", sdata->name); | 767 | sdata->name); |
775 | 768 | ||
776 | ieee80211_request_internal_scan(sdata, | 769 | ieee80211_request_internal_scan(sdata, |
777 | ifibss->ssid, ifibss->ssid_len, | 770 | ifibss->ssid, ifibss->ssid_len, |
@@ -785,9 +778,9 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) | |||
785 | ieee80211_sta_create_ibss(sdata); | 778 | ieee80211_sta_create_ibss(sdata); |
786 | return; | 779 | return; |
787 | } | 780 | } |
788 | printk(KERN_DEBUG "%s: IBSS not allowed on" | 781 | pr_debug("%s: IBSS not allowed on %d MHz\n", |
789 | " %d MHz\n", sdata->name, | 782 | sdata->name, |
790 | local->hw.conf.channel->center_freq); | 783 | local->hw.conf.channel->center_freq); |
791 | 784 | ||
792 | /* No IBSS found - decrease scan interval and continue | 785 | /* No IBSS found - decrease scan interval and continue |
793 | * scanning. */ | 786 | * scanning. */ |
@@ -823,10 +816,9 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, | |||
823 | tx_last_beacon = drv_tx_last_beacon(local); | 816 | tx_last_beacon = drv_tx_last_beacon(local); |
824 | 817 | ||
825 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 818 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
826 | printk(KERN_DEBUG "%s: RX ProbeReq SA=%pM DA=%pM BSSID=%pM" | 819 | pr_debug("%s: RX ProbeReq SA=%pM DA=%pM BSSID=%pM (tx_last_beacon=%d)\n", |
827 | " (tx_last_beacon=%d)\n", | 820 | sdata->name, mgmt->sa, mgmt->da, |
828 | sdata->name, mgmt->sa, mgmt->da, | 821 | mgmt->bssid, tx_last_beacon); |
829 | mgmt->bssid, tx_last_beacon); | ||
830 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ | 822 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ |
831 | 823 | ||
832 | if (!tx_last_beacon && is_multicast_ether_addr(mgmt->da)) | 824 | if (!tx_last_beacon && is_multicast_ether_addr(mgmt->da)) |
@@ -841,9 +833,8 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, | |||
841 | if (pos[0] != WLAN_EID_SSID || | 833 | if (pos[0] != WLAN_EID_SSID || |
842 | pos + 2 + pos[1] > end) { | 834 | pos + 2 + pos[1] > end) { |
843 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 835 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
844 | printk(KERN_DEBUG "%s: Invalid SSID IE in ProbeReq " | 836 | pr_debug("%s: Invalid SSID IE in ProbeReq from %pM\n", |
845 | "from %pM\n", | 837 | sdata->name, mgmt->sa); |
846 | sdata->name, mgmt->sa); | ||
847 | #endif | 838 | #endif |
848 | return; | 839 | return; |
849 | } | 840 | } |
@@ -862,8 +853,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, | |||
862 | resp = (struct ieee80211_mgmt *) skb->data; | 853 | resp = (struct ieee80211_mgmt *) skb->data; |
863 | memcpy(resp->da, mgmt->sa, ETH_ALEN); | 854 | memcpy(resp->da, mgmt->sa, ETH_ALEN); |
864 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 855 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
865 | printk(KERN_DEBUG "%s: Sending ProbeResp to %pM\n", | 856 | pr_debug("%s: Sending ProbeResp to %pM\n", sdata->name, resp->da); |
866 | sdata->name, resp->da); | ||
867 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ | 857 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ |
868 | IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; | 858 | IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; |
869 | ieee80211_tx_skb(sdata, skb); | 859 | ieee80211_tx_skb(sdata, skb); |
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index f970e0b3c4b9..bebc45db9c7a 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -58,7 +58,7 @@ static int ieee80211_change_mtu(struct net_device *dev, int new_mtu) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 60 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
61 | printk(KERN_DEBUG "%s: setting MTU %d\n", dev->name, new_mtu); | 61 | pr_debug("%s: setting MTU %d\n", dev->name, new_mtu); |
62 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ | 62 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ |
63 | dev->mtu = new_mtu; | 63 | dev->mtu = new_mtu; |
64 | return 0; | 64 | return 0; |
@@ -1226,7 +1226,7 @@ static void ieee80211_assign_perm_addr(struct ieee80211_local *local, | |||
1226 | 1226 | ||
1227 | if (__ffs64(mask) + hweight64(mask) != fls64(mask)) { | 1227 | if (__ffs64(mask) + hweight64(mask) != fls64(mask)) { |
1228 | /* not a contiguous mask ... not handled now! */ | 1228 | /* not a contiguous mask ... not handled now! */ |
1229 | printk(KERN_DEBUG "not contiguous\n"); | 1229 | pr_debug("not contiguous\n"); |
1230 | break; | 1230 | break; |
1231 | } | 1231 | } |
1232 | 1232 | ||
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 2913113c5833..7cf19509fb68 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -524,8 +524,7 @@ static void ieee80211_mesh_housekeeping(struct ieee80211_sub_if_data *sdata, | |||
524 | bool free_plinks; | 524 | bool free_plinks; |
525 | 525 | ||
526 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 526 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
527 | printk(KERN_DEBUG "%s: running mesh housekeeping\n", | 527 | pr_debug("%s: running mesh housekeeping\n", sdata->name); |
528 | sdata->name); | ||
529 | #endif | 528 | #endif |
530 | 529 | ||
531 | ieee80211_sta_expire(sdata, IEEE80211_MESH_PEER_INACTIVITY_LIMIT); | 530 | ieee80211_sta_expire(sdata, IEEE80211_MESH_PEER_INACTIVITY_LIMIT); |
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index 9b59658e8650..fa7c58035246 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | #ifdef CONFIG_MAC80211_VERBOSE_MHWMP_DEBUG | 16 | #ifdef CONFIG_MAC80211_VERBOSE_MHWMP_DEBUG |
17 | #define mhwmp_dbg(fmt, args...) \ | 17 | #define mhwmp_dbg(fmt, args...) \ |
18 | printk(KERN_DEBUG "Mesh HWMP (%s): " fmt "\n", sdata->name, ##args) | 18 | pr_debug("Mesh HWMP (%s): " fmt "\n", sdata->name, ##args) |
19 | #else | 19 | #else |
20 | #define mhwmp_dbg(fmt, args...) do { (void)(0); } while (0) | 20 | #define mhwmp_dbg(fmt, args...) do { (void)(0); } while (0) |
21 | #endif | 21 | #endif |
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c index b39224d8255c..572f706fd65b 100644 --- a/net/mac80211/mesh_pathtbl.c +++ b/net/mac80211/mesh_pathtbl.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "mesh.h" | 19 | #include "mesh.h" |
20 | 20 | ||
21 | #ifdef CONFIG_MAC80211_VERBOSE_MPATH_DEBUG | 21 | #ifdef CONFIG_MAC80211_VERBOSE_MPATH_DEBUG |
22 | #define mpath_dbg(fmt, args...) printk(KERN_DEBUG fmt, ##args) | 22 | #define mpath_dbg(fmt, args...) pr_debug(fmt, ##args) |
23 | #else | 23 | #else |
24 | #define mpath_dbg(fmt, args...) do { (void)(0); } while (0) | 24 | #define mpath_dbg(fmt, args...) do { (void)(0); } while (0) |
25 | #endif | 25 | #endif |
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 60ef235c9d9b..be4fad128c34 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include "mesh.h" | 14 | #include "mesh.h" |
15 | 15 | ||
16 | #ifdef CONFIG_MAC80211_VERBOSE_MPL_DEBUG | 16 | #ifdef CONFIG_MAC80211_VERBOSE_MPL_DEBUG |
17 | #define mpl_dbg(fmt, args...) printk(KERN_DEBUG fmt, ##args) | 17 | #define mpl_dbg(fmt, args...) pr_debug(fmt, ##args) |
18 | #else | 18 | #else |
19 | #define mpl_dbg(fmt, args...) do { (void)(0); } while (0) | 19 | #define mpl_dbg(fmt, args...) do { (void)(0); } while (0) |
20 | #endif | 20 | #endif |
diff --git a/net/mac80211/mesh_sync.c b/net/mac80211/mesh_sync.c index 38d30e8ce6dc..0ccdad49f987 100644 --- a/net/mac80211/mesh_sync.c +++ b/net/mac80211/mesh_sync.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #ifdef CONFIG_MAC80211_VERBOSE_MESH_SYNC_DEBUG | 15 | #ifdef CONFIG_MAC80211_VERBOSE_MESH_SYNC_DEBUG |
16 | #define msync_dbg(fmt, args...) \ | 16 | #define msync_dbg(fmt, args...) \ |
17 | printk(KERN_DEBUG "Mesh sync (%s): " fmt "\n", sdata->name, ##args) | 17 | pr_debug("Mesh sync (%s): " fmt "\n", sdata->name, ##args) |
18 | #else | 18 | #else |
19 | #define msync_dbg(fmt, args...) do { (void)(0); } while (0) | 19 | #define msync_dbg(fmt, args...) do { (void)(0); } while (0) |
20 | #endif | 20 | #endif |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 4ef22a49870f..419301c69582 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1656,8 +1656,7 @@ static void __ieee80211_connection_loss(struct ieee80211_sub_if_data *sdata) | |||
1656 | 1656 | ||
1657 | memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN); | 1657 | memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN); |
1658 | 1658 | ||
1659 | printk(KERN_DEBUG "%s: Connection to AP %pM lost.\n", | 1659 | pr_debug("%s: Connection to AP %pM lost\n", sdata->name, bssid); |
1660 | sdata->name, bssid); | ||
1661 | 1660 | ||
1662 | ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH, | 1661 | ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH, |
1663 | WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY, | 1662 | WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY, |
@@ -1791,8 +1790,8 @@ ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata, | |||
1791 | return RX_MGMT_NONE; | 1790 | return RX_MGMT_NONE; |
1792 | 1791 | ||
1793 | if (status_code != WLAN_STATUS_SUCCESS) { | 1792 | if (status_code != WLAN_STATUS_SUCCESS) { |
1794 | printk(KERN_DEBUG "%s: %pM denied authentication (status %d)\n", | 1793 | pr_debug("%s: %pM denied authentication (status %d)\n", |
1795 | sdata->name, mgmt->sa, status_code); | 1794 | sdata->name, mgmt->sa, status_code); |
1796 | ieee80211_destroy_auth_data(sdata, false); | 1795 | ieee80211_destroy_auth_data(sdata, false); |
1797 | return RX_MGMT_CFG80211_RX_AUTH; | 1796 | return RX_MGMT_CFG80211_RX_AUTH; |
1798 | } | 1797 | } |
@@ -1815,7 +1814,7 @@ ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata, | |||
1815 | return RX_MGMT_NONE; | 1814 | return RX_MGMT_NONE; |
1816 | } | 1815 | } |
1817 | 1816 | ||
1818 | printk(KERN_DEBUG "%s: authenticated\n", sdata->name); | 1817 | pr_debug("%s: authenticated\n", sdata->name); |
1819 | ifmgd->auth_data->done = true; | 1818 | ifmgd->auth_data->done = true; |
1820 | ifmgd->auth_data->timeout = jiffies + IEEE80211_AUTH_WAIT_ASSOC; | 1819 | ifmgd->auth_data->timeout = jiffies + IEEE80211_AUTH_WAIT_ASSOC; |
1821 | run_again(ifmgd, ifmgd->auth_data->timeout); | 1820 | run_again(ifmgd, ifmgd->auth_data->timeout); |
@@ -1828,8 +1827,7 @@ ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata, | |||
1828 | goto out_err; | 1827 | goto out_err; |
1829 | } | 1828 | } |
1830 | if (sta_info_move_state(sta, IEEE80211_STA_AUTH)) { | 1829 | if (sta_info_move_state(sta, IEEE80211_STA_AUTH)) { |
1831 | printk(KERN_DEBUG "%s: failed moving %pM to auth\n", | 1830 | pr_debug("%s: failed moving %pM to auth\n", sdata->name, bssid); |
1832 | sdata->name, bssid); | ||
1833 | goto out_err; | 1831 | goto out_err; |
1834 | } | 1832 | } |
1835 | mutex_unlock(&sdata->local->sta_mtx); | 1833 | mutex_unlock(&sdata->local->sta_mtx); |
@@ -1863,8 +1861,8 @@ ieee80211_rx_mgmt_deauth(struct ieee80211_sub_if_data *sdata, | |||
1863 | 1861 | ||
1864 | reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); | 1862 | reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); |
1865 | 1863 | ||
1866 | printk(KERN_DEBUG "%s: deauthenticated from %pM (Reason: %u)\n", | 1864 | pr_debug("%s: deauthenticated from %pM (Reason: %u)\n", |
1867 | sdata->name, bssid, reason_code); | 1865 | sdata->name, bssid, reason_code); |
1868 | 1866 | ||
1869 | ieee80211_set_disassoc(sdata, 0, 0, false, NULL); | 1867 | ieee80211_set_disassoc(sdata, 0, 0, false, NULL); |
1870 | 1868 | ||
@@ -1894,8 +1892,8 @@ ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata, | |||
1894 | 1892 | ||
1895 | reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); | 1893 | reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); |
1896 | 1894 | ||
1897 | printk(KERN_DEBUG "%s: disassociated from %pM (Reason: %u)\n", | 1895 | pr_debug("%s: disassociated from %pM (Reason: %u)\n", |
1898 | sdata->name, mgmt->sa, reason_code); | 1896 | sdata->name, mgmt->sa, reason_code); |
1899 | 1897 | ||
1900 | ieee80211_set_disassoc(sdata, 0, 0, false, NULL); | 1898 | ieee80211_set_disassoc(sdata, 0, 0, false, NULL); |
1901 | 1899 | ||
@@ -1987,17 +1985,15 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
1987 | capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); | 1985 | capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info); |
1988 | 1986 | ||
1989 | if ((aid & (BIT(15) | BIT(14))) != (BIT(15) | BIT(14))) | 1987 | if ((aid & (BIT(15) | BIT(14))) != (BIT(15) | BIT(14))) |
1990 | printk(KERN_DEBUG | 1988 | pr_debug("%s: invalid AID value 0x%x; bits 15:14 not set\n", |
1991 | "%s: invalid AID value 0x%x; bits 15:14 not set\n", | 1989 | sdata->name, aid); |
1992 | sdata->name, aid); | ||
1993 | aid &= ~(BIT(15) | BIT(14)); | 1990 | aid &= ~(BIT(15) | BIT(14)); |
1994 | 1991 | ||
1995 | ifmgd->broken_ap = false; | 1992 | ifmgd->broken_ap = false; |
1996 | 1993 | ||
1997 | if (aid == 0 || aid > IEEE80211_MAX_AID) { | 1994 | if (aid == 0 || aid > IEEE80211_MAX_AID) { |
1998 | printk(KERN_DEBUG | 1995 | pr_debug("%s: invalid AID value %d (out of range), turn off PS\n", |
1999 | "%s: invalid AID value %d (out of range), turn off PS\n", | 1996 | sdata->name, aid); |
2000 | sdata->name, aid); | ||
2001 | aid = 0; | 1997 | aid = 0; |
2002 | ifmgd->broken_ap = true; | 1998 | ifmgd->broken_ap = true; |
2003 | } | 1999 | } |
@@ -2006,8 +2002,8 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
2006 | ieee802_11_parse_elems(pos, len - (pos - (u8 *) mgmt), &elems); | 2002 | ieee802_11_parse_elems(pos, len - (pos - (u8 *) mgmt), &elems); |
2007 | 2003 | ||
2008 | if (!elems.supp_rates) { | 2004 | if (!elems.supp_rates) { |
2009 | printk(KERN_DEBUG "%s: no SuppRates element in AssocResp\n", | 2005 | pr_debug("%s: no SuppRates element in AssocResp\n", |
2010 | sdata->name); | 2006 | sdata->name); |
2011 | return false; | 2007 | return false; |
2012 | } | 2008 | } |
2013 | 2009 | ||
@@ -2047,9 +2043,8 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
2047 | if (!err && !(ifmgd->flags & IEEE80211_STA_CONTROL_PORT)) | 2043 | if (!err && !(ifmgd->flags & IEEE80211_STA_CONTROL_PORT)) |
2048 | err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED); | 2044 | err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED); |
2049 | if (err) { | 2045 | if (err) { |
2050 | printk(KERN_DEBUG | 2046 | pr_debug("%s: failed to move station %pM to desired state\n", |
2051 | "%s: failed to move station %pM to desired state\n", | 2047 | sdata->name, sta->sta.addr); |
2052 | sdata->name, sta->sta.addr); | ||
2053 | WARN_ON(__sta_info_destroy(sta)); | 2048 | WARN_ON(__sta_info_destroy(sta)); |
2054 | mutex_unlock(&sdata->local->sta_mtx); | 2049 | mutex_unlock(&sdata->local->sta_mtx); |
2055 | return false; | 2050 | return false; |
@@ -2132,10 +2127,9 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
2132 | status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); | 2127 | status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); |
2133 | aid = le16_to_cpu(mgmt->u.assoc_resp.aid); | 2128 | aid = le16_to_cpu(mgmt->u.assoc_resp.aid); |
2134 | 2129 | ||
2135 | printk(KERN_DEBUG "%s: RX %sssocResp from %pM (capab=0x%x " | 2130 | pr_debug("%s: RX %sssocResp from %pM (capab=0x%x status=%d aid=%d)\n", |
2136 | "status=%d aid=%d)\n", | 2131 | sdata->name, reassoc ? "Rea" : "A", mgmt->sa, |
2137 | sdata->name, reassoc ? "Rea" : "A", mgmt->sa, | 2132 | capab_info, status_code, (u16)(aid & ~(BIT(15) | BIT(14)))); |
2138 | capab_info, status_code, (u16)(aid & ~(BIT(15) | BIT(14)))); | ||
2139 | 2133 | ||
2140 | pos = mgmt->u.assoc_resp.variable; | 2134 | pos = mgmt->u.assoc_resp.variable; |
2141 | ieee802_11_parse_elems(pos, len - (pos - (u8 *) mgmt), &elems); | 2135 | ieee802_11_parse_elems(pos, len - (pos - (u8 *) mgmt), &elems); |
@@ -2146,9 +2140,8 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
2146 | u32 tu, ms; | 2140 | u32 tu, ms; |
2147 | tu = get_unaligned_le32(elems.timeout_int + 1); | 2141 | tu = get_unaligned_le32(elems.timeout_int + 1); |
2148 | ms = tu * 1024 / 1000; | 2142 | ms = tu * 1024 / 1000; |
2149 | printk(KERN_DEBUG "%s: %pM rejected association temporarily; " | 2143 | pr_debug("%s: %pM rejected association temporarily; comeback duration %u TU (%u ms)\n", |
2150 | "comeback duration %u TU (%u ms)\n", | 2144 | sdata->name, mgmt->sa, tu, ms); |
2151 | sdata->name, mgmt->sa, tu, ms); | ||
2152 | assoc_data->timeout = jiffies + msecs_to_jiffies(ms); | 2145 | assoc_data->timeout = jiffies + msecs_to_jiffies(ms); |
2153 | if (ms > IEEE80211_ASSOC_TIMEOUT) | 2146 | if (ms > IEEE80211_ASSOC_TIMEOUT) |
2154 | run_again(ifmgd, assoc_data->timeout); | 2147 | run_again(ifmgd, assoc_data->timeout); |
@@ -2158,11 +2151,11 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
2158 | *bss = assoc_data->bss; | 2151 | *bss = assoc_data->bss; |
2159 | 2152 | ||
2160 | if (status_code != WLAN_STATUS_SUCCESS) { | 2153 | if (status_code != WLAN_STATUS_SUCCESS) { |
2161 | printk(KERN_DEBUG "%s: %pM denied association (code=%d)\n", | 2154 | pr_debug("%s: %pM denied association (code=%d)\n", |
2162 | sdata->name, mgmt->sa, status_code); | 2155 | sdata->name, mgmt->sa, status_code); |
2163 | ieee80211_destroy_assoc_data(sdata, false); | 2156 | ieee80211_destroy_assoc_data(sdata, false); |
2164 | } else { | 2157 | } else { |
2165 | printk(KERN_DEBUG "%s: associated\n", sdata->name); | 2158 | pr_debug("%s: associated\n", sdata->name); |
2166 | 2159 | ||
2167 | if (!ieee80211_assoc_success(sdata, *bss, mgmt, len)) { | 2160 | if (!ieee80211_assoc_success(sdata, *bss, mgmt, len)) { |
2168 | /* oops -- internal error -- send timeout for now */ | 2161 | /* oops -- internal error -- send timeout for now */ |
@@ -2270,7 +2263,7 @@ static void ieee80211_rx_mgmt_probe_resp(struct ieee80211_sub_if_data *sdata, | |||
2270 | if (ifmgd->auth_data && !ifmgd->auth_data->bss->proberesp_ies && | 2263 | if (ifmgd->auth_data && !ifmgd->auth_data->bss->proberesp_ies && |
2271 | ether_addr_equal(mgmt->bssid, ifmgd->auth_data->bss->bssid)) { | 2264 | ether_addr_equal(mgmt->bssid, ifmgd->auth_data->bss->bssid)) { |
2272 | /* got probe response, continue with auth */ | 2265 | /* got probe response, continue with auth */ |
2273 | printk(KERN_DEBUG "%s: direct probe responded\n", sdata->name); | 2266 | pr_debug("%s: direct probe responded\n", sdata->name); |
2274 | ifmgd->auth_data->tries = 0; | 2267 | ifmgd->auth_data->tries = 0; |
2275 | ifmgd->auth_data->timeout = jiffies; | 2268 | ifmgd->auth_data->timeout = jiffies; |
2276 | run_again(ifmgd, ifmgd->auth_data->timeout); | 2269 | run_again(ifmgd, ifmgd->auth_data->timeout); |
@@ -2631,8 +2624,8 @@ static int ieee80211_probe_auth(struct ieee80211_sub_if_data *sdata) | |||
2631 | auth_data->tries++; | 2624 | auth_data->tries++; |
2632 | 2625 | ||
2633 | if (auth_data->tries > IEEE80211_AUTH_MAX_TRIES) { | 2626 | if (auth_data->tries > IEEE80211_AUTH_MAX_TRIES) { |
2634 | printk(KERN_DEBUG "%s: authentication with %pM timed out\n", | 2627 | pr_debug("%s: authentication with %pM timed out\n", |
2635 | sdata->name, auth_data->bss->bssid); | 2628 | sdata->name, auth_data->bss->bssid); |
2636 | 2629 | ||
2637 | /* | 2630 | /* |
2638 | * Most likely AP is not in the range so remove the | 2631 | * Most likely AP is not in the range so remove the |
@@ -2644,9 +2637,9 @@ static int ieee80211_probe_auth(struct ieee80211_sub_if_data *sdata) | |||
2644 | } | 2637 | } |
2645 | 2638 | ||
2646 | if (auth_data->bss->proberesp_ies) { | 2639 | if (auth_data->bss->proberesp_ies) { |
2647 | printk(KERN_DEBUG "%s: send auth to %pM (try %d/%d)\n", | 2640 | pr_debug("%s: send auth to %pM (try %d/%d)\n", |
2648 | sdata->name, auth_data->bss->bssid, auth_data->tries, | 2641 | sdata->name, auth_data->bss->bssid, auth_data->tries, |
2649 | IEEE80211_AUTH_MAX_TRIES); | 2642 | IEEE80211_AUTH_MAX_TRIES); |
2650 | 2643 | ||
2651 | auth_data->expected_transaction = 2; | 2644 | auth_data->expected_transaction = 2; |
2652 | ieee80211_send_auth(sdata, 1, auth_data->algorithm, | 2645 | ieee80211_send_auth(sdata, 1, auth_data->algorithm, |
@@ -2656,9 +2649,9 @@ static int ieee80211_probe_auth(struct ieee80211_sub_if_data *sdata) | |||
2656 | } else { | 2649 | } else { |
2657 | const u8 *ssidie; | 2650 | const u8 *ssidie; |
2658 | 2651 | ||
2659 | printk(KERN_DEBUG "%s: direct probe to %pM (try %d/%i)\n", | 2652 | pr_debug("%s: direct probe to %pM (try %d/%i)\n", |
2660 | sdata->name, auth_data->bss->bssid, auth_data->tries, | 2653 | sdata->name, auth_data->bss->bssid, auth_data->tries, |
2661 | IEEE80211_AUTH_MAX_TRIES); | 2654 | IEEE80211_AUTH_MAX_TRIES); |
2662 | 2655 | ||
2663 | ssidie = ieee80211_bss_get_ie(auth_data->bss, WLAN_EID_SSID); | 2656 | ssidie = ieee80211_bss_get_ie(auth_data->bss, WLAN_EID_SSID); |
2664 | if (!ssidie) | 2657 | if (!ssidie) |
@@ -2686,8 +2679,8 @@ static int ieee80211_do_assoc(struct ieee80211_sub_if_data *sdata) | |||
2686 | 2679 | ||
2687 | assoc_data->tries++; | 2680 | assoc_data->tries++; |
2688 | if (assoc_data->tries > IEEE80211_ASSOC_MAX_TRIES) { | 2681 | if (assoc_data->tries > IEEE80211_ASSOC_MAX_TRIES) { |
2689 | printk(KERN_DEBUG "%s: association with %pM timed out\n", | 2682 | pr_debug("%s: association with %pM timed out\n", |
2690 | sdata->name, assoc_data->bss->bssid); | 2683 | sdata->name, assoc_data->bss->bssid); |
2691 | 2684 | ||
2692 | /* | 2685 | /* |
2693 | * Most likely AP is not in the range so remove the | 2686 | * Most likely AP is not in the range so remove the |
@@ -2698,9 +2691,9 @@ static int ieee80211_do_assoc(struct ieee80211_sub_if_data *sdata) | |||
2698 | return -ETIMEDOUT; | 2691 | return -ETIMEDOUT; |
2699 | } | 2692 | } |
2700 | 2693 | ||
2701 | printk(KERN_DEBUG "%s: associate with %pM (try %d/%d)\n", | 2694 | pr_debug("%s: associate with %pM (try %d/%d)\n", |
2702 | sdata->name, assoc_data->bss->bssid, assoc_data->tries, | 2695 | sdata->name, assoc_data->bss->bssid, assoc_data->tries, |
2703 | IEEE80211_ASSOC_MAX_TRIES); | 2696 | IEEE80211_ASSOC_MAX_TRIES); |
2704 | ieee80211_send_assoc(sdata); | 2697 | ieee80211_send_assoc(sdata); |
2705 | 2698 | ||
2706 | assoc_data->timeout = jiffies + IEEE80211_ASSOC_TIMEOUT; | 2699 | assoc_data->timeout = jiffies + IEEE80211_ASSOC_TIMEOUT; |
@@ -3069,13 +3062,10 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, | |||
3069 | * since we look at probe response/beacon data here | 3062 | * since we look at probe response/beacon data here |
3070 | * it should be OK. | 3063 | * it should be OK. |
3071 | */ | 3064 | */ |
3072 | printk(KERN_DEBUG | 3065 | pr_debug("%s: Wrong control channel: center-freq: %d ht-cfreq: %d ht->primary_chan: %d band: %d - Disabling HT\n", |
3073 | "%s: Wrong control channel: center-freq: %d" | 3066 | sdata->name, cbss->channel->center_freq, |
3074 | " ht-cfreq: %d ht->primary_chan: %d" | 3067 | ht_cfreq, ht_oper->primary_chan, |
3075 | " band: %d. Disabling HT.\n", | 3068 | cbss->channel->band); |
3076 | sdata->name, cbss->channel->center_freq, | ||
3077 | ht_cfreq, ht_oper->primary_chan, | ||
3078 | cbss->channel->band); | ||
3079 | ht_oper = NULL; | 3069 | ht_oper = NULL; |
3080 | } | 3070 | } |
3081 | } | 3071 | } |
@@ -3099,9 +3089,8 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, | |||
3099 | if (!ieee80211_set_channel_type(local, sdata, channel_type)) { | 3089 | if (!ieee80211_set_channel_type(local, sdata, channel_type)) { |
3100 | /* can only fail due to HT40+/- mismatch */ | 3090 | /* can only fail due to HT40+/- mismatch */ |
3101 | channel_type = NL80211_CHAN_HT20; | 3091 | channel_type = NL80211_CHAN_HT20; |
3102 | printk(KERN_DEBUG | 3092 | pr_debug("%s: disabling 40 MHz due to multi-vif mismatch\n", |
3103 | "%s: disabling 40 MHz due to multi-vif mismatch\n", | 3093 | sdata->name); |
3104 | sdata->name); | ||
3105 | ifmgd->flags |= IEEE80211_STA_DISABLE_40MHZ; | 3094 | ifmgd->flags |= IEEE80211_STA_DISABLE_40MHZ; |
3106 | WARN_ON(!ieee80211_set_channel_type(local, sdata, | 3095 | WARN_ON(!ieee80211_set_channel_type(local, sdata, |
3107 | channel_type)); | 3096 | channel_type)); |
@@ -3130,9 +3119,8 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, | |||
3130 | * we can connect -- with a warning. | 3119 | * we can connect -- with a warning. |
3131 | */ | 3120 | */ |
3132 | if (!basic_rates && min_rate_index >= 0) { | 3121 | if (!basic_rates && min_rate_index >= 0) { |
3133 | printk(KERN_DEBUG | 3122 | pr_debug("%s: No basic rates, using min rate instead\n", |
3134 | "%s: No basic rates, using min rate instead.\n", | 3123 | sdata->name); |
3135 | sdata->name); | ||
3136 | basic_rates = BIT(min_rate_index); | 3124 | basic_rates = BIT(min_rate_index); |
3137 | } | 3125 | } |
3138 | 3126 | ||
@@ -3158,9 +3146,8 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, | |||
3158 | err = sta_info_insert(sta); | 3146 | err = sta_info_insert(sta); |
3159 | sta = NULL; | 3147 | sta = NULL; |
3160 | if (err) { | 3148 | if (err) { |
3161 | printk(KERN_DEBUG | 3149 | pr_debug("%s: failed to insert STA entry for the AP (error %d)\n", |
3162 | "%s: failed to insert STA entry for the AP (error %d)\n", | 3150 | sdata->name, err); |
3163 | sdata->name, err); | ||
3164 | return err; | 3151 | return err; |
3165 | } | 3152 | } |
3166 | } else | 3153 | } else |
@@ -3238,8 +3225,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata, | |||
3238 | if (ifmgd->associated) | 3225 | if (ifmgd->associated) |
3239 | ieee80211_set_disassoc(sdata, 0, 0, false, NULL); | 3226 | ieee80211_set_disassoc(sdata, 0, 0, false, NULL); |
3240 | 3227 | ||
3241 | printk(KERN_DEBUG "%s: authenticate with %pM\n", | 3228 | pr_debug("%s: authenticate with %pM\n", sdata->name, req->bss->bssid); |
3242 | sdata->name, req->bss->bssid); | ||
3243 | 3229 | ||
3244 | err = ieee80211_prep_connection(sdata, req->bss, false); | 3230 | err = ieee80211_prep_connection(sdata, req->bss, false); |
3245 | if (err) | 3231 | if (err) |
@@ -3409,8 +3395,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3409 | * Wait up to one beacon interval ... | 3395 | * Wait up to one beacon interval ... |
3410 | * should this be more if we miss one? | 3396 | * should this be more if we miss one? |
3411 | */ | 3397 | */ |
3412 | printk(KERN_DEBUG "%s: waiting for beacon from %pM\n", | 3398 | pr_debug("%s: waiting for beacon from %pM\n", |
3413 | sdata->name, ifmgd->bssid); | 3399 | sdata->name, ifmgd->bssid); |
3414 | assoc_data->timeout = TU_TO_EXP_TIME(req->bss->beacon_interval); | 3400 | assoc_data->timeout = TU_TO_EXP_TIME(req->bss->beacon_interval); |
3415 | } else { | 3401 | } else { |
3416 | assoc_data->have_beacon = true; | 3402 | assoc_data->have_beacon = true; |
@@ -3429,8 +3415,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3429 | corrupt_type = "beacon"; | 3415 | corrupt_type = "beacon"; |
3430 | } else if (bss->corrupt_data & IEEE80211_BSS_CORRUPT_PROBE_RESP) | 3416 | } else if (bss->corrupt_data & IEEE80211_BSS_CORRUPT_PROBE_RESP) |
3431 | corrupt_type = "probe response"; | 3417 | corrupt_type = "probe response"; |
3432 | printk(KERN_DEBUG "%s: associating with AP with corrupt %s\n", | 3418 | pr_debug("%s: associating with AP with corrupt %s\n", |
3433 | sdata->name, corrupt_type); | 3419 | sdata->name, corrupt_type); |
3434 | } | 3420 | } |
3435 | 3421 | ||
3436 | err = 0; | 3422 | err = 0; |
@@ -3459,9 +3445,8 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata, | |||
3459 | return 0; | 3445 | return 0; |
3460 | } | 3446 | } |
3461 | 3447 | ||
3462 | printk(KERN_DEBUG | 3448 | pr_debug("%s: deauthenticating from %pM by local choice (reason=%d)\n", |
3463 | "%s: deauthenticating from %pM by local choice (reason=%d)\n", | 3449 | sdata->name, req->bssid, req->reason_code); |
3464 | sdata->name, req->bssid, req->reason_code); | ||
3465 | 3450 | ||
3466 | if (ifmgd->associated && | 3451 | if (ifmgd->associated && |
3467 | ether_addr_equal(ifmgd->associated->bssid, req->bssid)) | 3452 | ether_addr_equal(ifmgd->associated->bssid, req->bssid)) |
@@ -3503,8 +3488,8 @@ int ieee80211_mgd_disassoc(struct ieee80211_sub_if_data *sdata, | |||
3503 | return -ENOLINK; | 3488 | return -ENOLINK; |
3504 | } | 3489 | } |
3505 | 3490 | ||
3506 | printk(KERN_DEBUG "%s: disassociating from %pM by local choice (reason=%d)\n", | 3491 | pr_debug("%s: disassociating from %pM by local choice (reason=%d)\n", |
3507 | sdata->name, req->bss->bssid, req->reason_code); | 3492 | sdata->name, req->bss->bssid, req->reason_code); |
3508 | 3493 | ||
3509 | memcpy(bssid, req->bss->bssid, ETH_ALEN); | 3494 | memcpy(bssid, req->bss->bssid, ETH_ALEN); |
3510 | ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DISASSOC, | 3495 | ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DISASSOC, |
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 7bcecf73aafb..6fd2cb0838c4 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1137,22 +1137,22 @@ static void ap_sta_ps_start(struct sta_info *sta) | |||
1137 | if (!(local->hw.flags & IEEE80211_HW_AP_LINK_PS)) | 1137 | if (!(local->hw.flags & IEEE80211_HW_AP_LINK_PS)) |
1138 | drv_sta_notify(local, sdata, STA_NOTIFY_SLEEP, &sta->sta); | 1138 | drv_sta_notify(local, sdata, STA_NOTIFY_SLEEP, &sta->sta); |
1139 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 1139 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
1140 | printk(KERN_DEBUG "%s: STA %pM aid %d enters power save mode\n", | 1140 | pr_debug("%s: STA %pM aid %d enters power save mode\n", |
1141 | sdata->name, sta->sta.addr, sta->sta.aid); | 1141 | sdata->name, sta->sta.addr, sta->sta.aid); |
1142 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 1142 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | static void ap_sta_ps_end(struct sta_info *sta) | 1145 | static void ap_sta_ps_end(struct sta_info *sta) |
1146 | { | 1146 | { |
1147 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 1147 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
1148 | printk(KERN_DEBUG "%s: STA %pM aid %d exits power save mode\n", | 1148 | pr_debug("%s: STA %pM aid %d exits power save mode\n", |
1149 | sta->sdata->name, sta->sta.addr, sta->sta.aid); | 1149 | sta->sdata->name, sta->sta.addr, sta->sta.aid); |
1150 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 1150 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
1151 | 1151 | ||
1152 | if (test_sta_flag(sta, WLAN_STA_PS_DRIVER)) { | 1152 | if (test_sta_flag(sta, WLAN_STA_PS_DRIVER)) { |
1153 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 1153 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
1154 | printk(KERN_DEBUG "%s: STA %pM aid %d driver-ps-blocked\n", | 1154 | pr_debug("%s: STA %pM aid %d driver-ps-blocked\n", |
1155 | sta->sdata->name, sta->sta.addr, sta->sta.aid); | 1155 | sta->sdata->name, sta->sta.addr, sta->sta.aid); |
1156 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 1156 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
1157 | return; | 1157 | return; |
1158 | } | 1158 | } |
@@ -1387,12 +1387,10 @@ ieee80211_reassemble_add(struct ieee80211_sub_if_data *sdata, | |||
1387 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 1387 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
1388 | struct ieee80211_hdr *hdr = | 1388 | struct ieee80211_hdr *hdr = |
1389 | (struct ieee80211_hdr *) entry->skb_list.next->data; | 1389 | (struct ieee80211_hdr *) entry->skb_list.next->data; |
1390 | printk(KERN_DEBUG "%s: RX reassembly removed oldest " | 1390 | pr_debug("%s: RX reassembly removed oldest fragment entry (idx=%d age=%lu seq=%d last_frag=%d addr1=%pM addr2=%pM\n", |
1391 | "fragment entry (idx=%d age=%lu seq=%d last_frag=%d " | 1391 | sdata->name, idx, |
1392 | "addr1=%pM addr2=%pM\n", | 1392 | jiffies - entry->first_frag_time, entry->seq, |
1393 | sdata->name, idx, | 1393 | entry->last_frag, hdr->addr1, hdr->addr2); |
1394 | jiffies - entry->first_frag_time, entry->seq, | ||
1395 | entry->last_frag, hdr->addr1, hdr->addr2); | ||
1396 | #endif | 1394 | #endif |
1397 | __skb_queue_purge(&entry->skb_list); | 1395 | __skb_queue_purge(&entry->skb_list); |
1398 | } | 1396 | } |
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index f5b1638fbf80..4be509807607 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -333,9 +333,8 @@ static int sta_info_insert_drv_state(struct ieee80211_local *local, | |||
333 | } | 333 | } |
334 | 334 | ||
335 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { | 335 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { |
336 | printk(KERN_DEBUG | 336 | pr_debug("%s: failed to move IBSS STA %pM to state %d (%d) - keeping it anyway\n", |
337 | "%s: failed to move IBSS STA %pM to state %d (%d) - keeping it anyway.\n", | 337 | sdata->name, sta->sta.addr, state + 1, err); |
338 | sdata->name, sta->sta.addr, state + 1, err); | ||
339 | err = 0; | 338 | err = 0; |
340 | } | 339 | } |
341 | 340 | ||
@@ -619,8 +618,7 @@ static bool sta_info_cleanup_expire_buffered_ac(struct ieee80211_local *local, | |||
619 | 618 | ||
620 | local->total_ps_buffered--; | 619 | local->total_ps_buffered--; |
621 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 620 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
622 | printk(KERN_DEBUG "Buffered frame expired (STA %pM)\n", | 621 | pr_debug("Buffered frame expired (STA %pM)\n", sta->sta.addr); |
623 | sta->sta.addr); | ||
624 | #endif | 622 | #endif |
625 | dev_kfree_skb(skb); | 623 | dev_kfree_skb(skb); |
626 | } | 624 | } |
@@ -890,8 +888,8 @@ void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, | |||
890 | 888 | ||
891 | if (time_after(jiffies, sta->last_rx + exp_time)) { | 889 | if (time_after(jiffies, sta->last_rx + exp_time)) { |
892 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 890 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
893 | printk(KERN_DEBUG "%s: expiring inactive STA %pM\n", | 891 | pr_debug("%s: expiring inactive STA %pM\n", |
894 | sdata->name, sta->sta.addr); | 892 | sdata->name, sta->sta.addr); |
895 | #endif | 893 | #endif |
896 | WARN_ON(__sta_info_destroy(sta)); | 894 | WARN_ON(__sta_info_destroy(sta)); |
897 | } | 895 | } |
@@ -991,9 +989,8 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta) | |||
991 | sta_info_recalc_tim(sta); | 989 | sta_info_recalc_tim(sta); |
992 | 990 | ||
993 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 991 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
994 | printk(KERN_DEBUG "%s: STA %pM aid %d sending %d filtered/%d PS frames " | 992 | pr_debug("%s: STA %pM aid %d sending %d filtered/%d PS frames since STA not sleeping anymore\n", |
995 | "since STA not sleeping anymore\n", sdata->name, | 993 | sdata->name, sta->sta.addr, sta->sta.aid, filtered, buffered); |
996 | sta->sta.addr, sta->sta.aid, filtered, buffered); | ||
997 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 994 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
998 | } | 995 | } |
999 | 996 | ||
@@ -1385,8 +1382,8 @@ int sta_info_move_state(struct sta_info *sta, | |||
1385 | } | 1382 | } |
1386 | 1383 | ||
1387 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 1384 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
1388 | printk(KERN_DEBUG "%s: moving STA %pM to state %d\n", | 1385 | pr_debug("%s: moving STA %pM to state %d\n", |
1389 | sta->sdata->name, sta->sta.addr, new_state); | 1386 | sta->sdata->name, sta->sta.addr, new_state); |
1390 | #endif | 1387 | #endif |
1391 | 1388 | ||
1392 | /* | 1389 | /* |
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 28cfa981cfb1..63a769015068 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c | |||
@@ -589,7 +589,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
589 | /* send frame to monitor interfaces now */ | 589 | /* send frame to monitor interfaces now */ |
590 | rtap_len = ieee80211_tx_radiotap_len(info); | 590 | rtap_len = ieee80211_tx_radiotap_len(info); |
591 | if (WARN_ON_ONCE(skb_headroom(skb) < rtap_len)) { | 591 | if (WARN_ON_ONCE(skb_headroom(skb) < rtap_len)) { |
592 | printk(KERN_ERR "ieee80211_tx_status: headroom too small\n"); | 592 | pr_err("ieee80211_tx_status: headroom too small\n"); |
593 | dev_kfree_skb(skb); | 593 | dev_kfree_skb(skb); |
594 | return; | 594 | return; |
595 | } | 595 | } |
diff --git a/net/mac80211/tkip.c b/net/mac80211/tkip.c index 51077a956a83..68be47ca208f 100644 --- a/net/mac80211/tkip.c +++ b/net/mac80211/tkip.c | |||
@@ -263,12 +263,11 @@ int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm, | |||
263 | #ifdef CONFIG_MAC80211_TKIP_DEBUG | 263 | #ifdef CONFIG_MAC80211_TKIP_DEBUG |
264 | { | 264 | { |
265 | int i; | 265 | int i; |
266 | printk(KERN_DEBUG "TKIP decrypt: data(len=%zd)", payload_len); | 266 | pr_debug("TKIP decrypt: data(len=%zd)", payload_len); |
267 | for (i = 0; i < payload_len; i++) | 267 | for (i = 0; i < payload_len; i++) |
268 | printk(" %02x", payload[i]); | 268 | printk(" %02x", payload[i]); |
269 | printk("\n"); | 269 | printk("\n"); |
270 | printk(KERN_DEBUG "TKIP decrypt: iv16=%04x iv32=%08x\n", | 270 | pr_debug("TKIP decrypt: iv16=%04x iv32=%08x\n", iv16, iv32); |
271 | iv16, iv32); | ||
272 | } | 271 | } |
273 | #endif | 272 | #endif |
274 | 273 | ||
@@ -283,11 +282,10 @@ int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm, | |||
283 | (iv32 == key->u.tkip.rx[queue].iv32 && | 282 | (iv32 == key->u.tkip.rx[queue].iv32 && |
284 | iv16 <= key->u.tkip.rx[queue].iv16))) { | 283 | iv16 <= key->u.tkip.rx[queue].iv16))) { |
285 | #ifdef CONFIG_MAC80211_TKIP_DEBUG | 284 | #ifdef CONFIG_MAC80211_TKIP_DEBUG |
286 | printk(KERN_DEBUG "TKIP replay detected for RX frame from " | 285 | pr_debug("TKIP replay detected for RX frame from %pM (RX IV (%04x,%02x) <= prev. IV (%04x,%02x)\n", |
287 | "%pM (RX IV (%04x,%02x) <= prev. IV (%04x,%02x)\n", | 286 | ta, iv32, iv16, |
288 | ta, | 287 | key->u.tkip.rx[queue].iv32, |
289 | iv32, iv16, key->u.tkip.rx[queue].iv32, | 288 | key->u.tkip.rx[queue].iv16); |
290 | key->u.tkip.rx[queue].iv16); | ||
291 | #endif | 289 | #endif |
292 | return TKIP_DECRYPT_REPLAY; | 290 | return TKIP_DECRYPT_REPLAY; |
293 | } | 291 | } |
@@ -306,13 +304,12 @@ int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm, | |||
306 | { | 304 | { |
307 | int i; | 305 | int i; |
308 | u8 key_offset = NL80211_TKIP_DATA_OFFSET_ENCR_KEY; | 306 | u8 key_offset = NL80211_TKIP_DATA_OFFSET_ENCR_KEY; |
309 | printk(KERN_DEBUG "TKIP decrypt: Phase1 TA=%pM" | 307 | pr_debug("TKIP decrypt: Phase1 TA=%pM TK=", ta); |
310 | " TK=", ta); | ||
311 | for (i = 0; i < 16; i++) | 308 | for (i = 0; i < 16; i++) |
312 | printk("%02x ", | 309 | printk("%02x ", |
313 | key->conf.key[key_offset + i]); | 310 | key->conf.key[key_offset + i]); |
314 | printk("\n"); | 311 | printk("\n"); |
315 | printk(KERN_DEBUG "TKIP decrypt: P1K="); | 312 | pr_debug("TKIP decrypt: P1K="); |
316 | for (i = 0; i < 5; i++) | 313 | for (i = 0; i < 5; i++) |
317 | printk("%04x ", key->u.tkip.rx[queue].p1k[i]); | 314 | printk("%04x ", key->u.tkip.rx[queue].p1k[i]); |
318 | printk("\n"); | 315 | printk("\n"); |
@@ -336,7 +333,7 @@ int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm, | |||
336 | #ifdef CONFIG_MAC80211_TKIP_DEBUG | 333 | #ifdef CONFIG_MAC80211_TKIP_DEBUG |
337 | { | 334 | { |
338 | int i; | 335 | int i; |
339 | printk(KERN_DEBUG "TKIP decrypt: Phase2 rc4key="); | 336 | pr_debug("TKIP decrypt: Phase2 rc4key="); |
340 | for (i = 0; i < 16; i++) | 337 | for (i = 0; i < 16; i++) |
341 | printk("%02x ", rc4key[i]); | 338 | printk("%02x ", rc4key[i]); |
342 | printk("\n"); | 339 | printk("\n"); |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 847215bb2a6f..0c3476530339 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -297,9 +297,8 @@ ieee80211_tx_h_check_assoc(struct ieee80211_tx_data *tx) | |||
297 | if (unlikely(!assoc && | 297 | if (unlikely(!assoc && |
298 | ieee80211_is_data(hdr->frame_control))) { | 298 | ieee80211_is_data(hdr->frame_control))) { |
299 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 299 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
300 | printk(KERN_DEBUG "%s: dropped data frame to not " | 300 | pr_debug("%s: dropped data frame to not associated station %pM\n", |
301 | "associated station %pM\n", | 301 | tx->sdata->name, hdr->addr1); |
302 | tx->sdata->name, hdr->addr1); | ||
303 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ | 302 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ |
304 | I802_DEBUG_INC(tx->local->tx_handlers_drop_not_assoc); | 303 | I802_DEBUG_INC(tx->local->tx_handlers_drop_not_assoc); |
305 | return TX_DROP; | 304 | return TX_DROP; |
@@ -467,8 +466,8 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx) | |||
467 | } | 466 | } |
468 | 467 | ||
469 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 468 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
470 | printk(KERN_DEBUG "STA %pM aid %d: PS buffer for AC %d\n", | 469 | pr_debug("STA %pM aid %d: PS buffer for AC %d\n", |
471 | sta->sta.addr, sta->sta.aid, ac); | 470 | sta->sta.addr, sta->sta.aid, ac); |
472 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 471 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
473 | if (tx->local->total_ps_buffered >= TOTAL_MAX_TX_BUFFER) | 472 | if (tx->local->total_ps_buffered >= TOTAL_MAX_TX_BUFFER) |
474 | purge_old_ps_buffers(tx->local); | 473 | purge_old_ps_buffers(tx->local); |
@@ -502,9 +501,8 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx) | |||
502 | } | 501 | } |
503 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 502 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
504 | else if (unlikely(test_sta_flag(sta, WLAN_STA_PS_STA))) { | 503 | else if (unlikely(test_sta_flag(sta, WLAN_STA_PS_STA))) { |
505 | printk(KERN_DEBUG | 504 | pr_debug("%s: STA %pM in PS mode, but polling/in SP -> send frame\n", |
506 | "%s: STA %pM in PS mode, but polling/in SP -> send frame\n", | 505 | tx->sdata->name, sta->sta.addr); |
507 | tx->sdata->name, sta->sta.addr); | ||
508 | } | 506 | } |
509 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 507 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
510 | 508 | ||