diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_main.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 756ab56c1f40..4c36eb2fafd1 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -530,10 +530,6 @@ int hostap_set_auth_algs(local_info_t *local) | |||
530 | void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) | 530 | void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) |
531 | { | 531 | { |
532 | u16 status, fc; | 532 | u16 status, fc; |
533 | DECLARE_MAC_BUF(mac); | ||
534 | DECLARE_MAC_BUF(mac2); | ||
535 | DECLARE_MAC_BUF(mac3); | ||
536 | DECLARE_MAC_BUF(mac4); | ||
537 | 533 | ||
538 | status = __le16_to_cpu(rx->status); | 534 | status = __le16_to_cpu(rx->status); |
539 | 535 | ||
@@ -552,12 +548,11 @@ void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) | |||
552 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", | 548 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", |
553 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); | 549 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); |
554 | 550 | ||
555 | printk(KERN_DEBUG " A1=%s A2=%s A3=%s A4=%s\n", | 551 | printk(KERN_DEBUG " A1=%pM A2=%pM A3=%pM A4=%pM\n", |
556 | print_mac(mac, rx->addr1), print_mac(mac2, rx->addr2), | 552 | rx->addr1, rx->addr2, rx->addr3, rx->addr4); |
557 | print_mac(mac3, rx->addr3), print_mac(mac4, rx->addr4)); | ||
558 | 553 | ||
559 | printk(KERN_DEBUG " dst=%s src=%s len=%d\n", | 554 | printk(KERN_DEBUG " dst=%pM src=%pM len=%d\n", |
560 | print_mac(mac, rx->dst_addr), print_mac(mac2, rx->src_addr), | 555 | rx->dst_addr, rx->src_addr, |
561 | __be16_to_cpu(rx->len)); | 556 | __be16_to_cpu(rx->len)); |
562 | } | 557 | } |
563 | 558 | ||
@@ -565,10 +560,6 @@ void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) | |||
565 | void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) | 560 | void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) |
566 | { | 561 | { |
567 | u16 fc; | 562 | u16 fc; |
568 | DECLARE_MAC_BUF(mac); | ||
569 | DECLARE_MAC_BUF(mac2); | ||
570 | DECLARE_MAC_BUF(mac3); | ||
571 | DECLARE_MAC_BUF(mac4); | ||
572 | 563 | ||
573 | printk(KERN_DEBUG "%s: TX status=0x%04x retry_count=%d tx_rate=%d " | 564 | printk(KERN_DEBUG "%s: TX status=0x%04x retry_count=%d tx_rate=%d " |
574 | "tx_control=0x%04x; jiffies=%ld\n", | 565 | "tx_control=0x%04x; jiffies=%ld\n", |
@@ -584,12 +575,11 @@ void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) | |||
584 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", | 575 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", |
585 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); | 576 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); |
586 | 577 | ||
587 | printk(KERN_DEBUG " A1=%s A2=%s A3=%s A4=%s\n", | 578 | printk(KERN_DEBUG " A1=%pM A2=%pM A3=%pM A4=%pM\n", |
588 | print_mac(mac, tx->addr1), print_mac(mac2, tx->addr2), | 579 | tx->addr1, tx->addr2, tx->addr3, tx->addr4); |
589 | print_mac(mac3, tx->addr3), print_mac(mac4, tx->addr4)); | ||
590 | 580 | ||
591 | printk(KERN_DEBUG " dst=%s src=%s len=%d\n", | 581 | printk(KERN_DEBUG " dst=%pM src=%pM len=%d\n", |
592 | print_mac(mac, tx->dst_addr), print_mac(mac2, tx->src_addr), | 582 | tx->dst_addr, tx->src_addr, |
593 | __be16_to_cpu(tx->len)); | 583 | __be16_to_cpu(tx->len)); |
594 | } | 584 | } |
595 | 585 | ||