diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_80211_tx.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_tx.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_tx.c b/drivers/net/wireless/hostap/hostap_80211_tx.c index 921c984416f..075247188e6 100644 --- a/drivers/net/wireless/hostap/hostap_80211_tx.c +++ b/drivers/net/wireless/hostap/hostap_80211_tx.c | |||
@@ -17,7 +17,6 @@ void hostap_dump_tx_80211(const char *name, struct sk_buff *skb) | |||
17 | { | 17 | { |
18 | struct ieee80211_hdr_4addr *hdr; | 18 | struct ieee80211_hdr_4addr *hdr; |
19 | u16 fc; | 19 | u16 fc; |
20 | DECLARE_MAC_BUF(mac); | ||
21 | 20 | ||
22 | hdr = (struct ieee80211_hdr_4addr *) skb->data; | 21 | hdr = (struct ieee80211_hdr_4addr *) skb->data; |
23 | 22 | ||
@@ -41,11 +40,11 @@ void hostap_dump_tx_80211(const char *name, struct sk_buff *skb) | |||
41 | printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), | 40 | printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), |
42 | le16_to_cpu(hdr->seq_ctl)); | 41 | le16_to_cpu(hdr->seq_ctl)); |
43 | 42 | ||
44 | printk(KERN_DEBUG " A1=%s", print_mac(mac, hdr->addr1)); | 43 | printk(KERN_DEBUG " A1=%pM", hdr->addr1); |
45 | printk(" A2=%s", print_mac(mac, hdr->addr2)); | 44 | printk(" A2=%pM", hdr->addr2); |
46 | printk(" A3=%s", print_mac(mac, hdr->addr3)); | 45 | printk(" A3=%pM", hdr->addr3); |
47 | if (skb->len >= 30) | 46 | if (skb->len >= 30) |
48 | printk(" A4=%s", print_mac(mac, hdr->addr4)); | 47 | printk(" A4=%pM", hdr->addr4); |
49 | printk("\n"); | 48 | printk("\n"); |
50 | } | 49 | } |
51 | 50 | ||
@@ -328,10 +327,8 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, | |||
328 | hdr = (struct ieee80211_hdr_4addr *) skb->data; | 327 | hdr = (struct ieee80211_hdr_4addr *) skb->data; |
329 | if (net_ratelimit()) { | 328 | if (net_ratelimit()) { |
330 | printk(KERN_DEBUG "%s: TKIP countermeasures: dropped " | 329 | printk(KERN_DEBUG "%s: TKIP countermeasures: dropped " |
331 | "TX packet to " MAC_FMT "\n", | 330 | "TX packet to %pM\n", |
332 | local->dev->name, | 331 | local->dev->name, hdr->addr1); |
333 | hdr->addr1[0], hdr->addr1[1], hdr->addr1[2], | ||
334 | hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]); | ||
335 | } | 332 | } |
336 | kfree_skb(skb); | 333 | kfree_skb(skb); |
337 | return NULL; | 334 | return NULL; |