diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-09-18 17:29:20 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:32 -0400 |
commit | dd1cd4c620c174ebbdf78dc01b924115a06de5d3 (patch) | |
tree | a04517b9ee2ede228ec4a8ab96099460060c4245 /net/mac80211/tx.c | |
parent | 9c7d7728baf79c63ae58df95fb39ea13db487599 (diff) |
[MAC80211]: print out wiphy name instead of master device
This makes mac80211 print out the wiphy name instead of the
master device name where appropriate.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e33f7641e6b4..38394c40f6ad 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -324,7 +324,7 @@ static void purge_old_ps_buffers(struct ieee80211_local *local) | |||
324 | 324 | ||
325 | local->total_ps_buffered = total; | 325 | local->total_ps_buffered = total; |
326 | printk(KERN_DEBUG "%s: PS buffers full - purged %d frames\n", | 326 | printk(KERN_DEBUG "%s: PS buffers full - purged %d frames\n", |
327 | local->mdev->name, purged); | 327 | wiphy_name(local->hw.wiphy), purged); |
328 | } | 328 | } |
329 | 329 | ||
330 | static inline ieee80211_txrx_result | 330 | static inline ieee80211_txrx_result |
@@ -1049,7 +1049,8 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb, | |||
1049 | return IEEE80211_TX_AGAIN; | 1049 | return IEEE80211_TX_AGAIN; |
1050 | } | 1050 | } |
1051 | if (skb) { | 1051 | if (skb) { |
1052 | ieee80211_dump_frame(local->mdev->name, "TX to low-level driver", skb); | 1052 | ieee80211_dump_frame(wiphy_name(local->hw.wiphy), |
1053 | "TX to low-level driver", skb); | ||
1053 | ret = local->ops->tx(local_to_hw(local), skb, control); | 1054 | ret = local->ops->tx(local_to_hw(local), skb, control); |
1054 | if (ret) | 1055 | if (ret) |
1055 | return IEEE80211_TX_AGAIN; | 1056 | return IEEE80211_TX_AGAIN; |
@@ -1077,7 +1078,7 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb, | |||
1077 | ~IEEE80211_TXCTL_RATE_CTRL_PROBE; | 1078 | ~IEEE80211_TXCTL_RATE_CTRL_PROBE; |
1078 | } | 1079 | } |
1079 | 1080 | ||
1080 | ieee80211_dump_frame(local->mdev->name, | 1081 | ieee80211_dump_frame(wiphy_name(local->hw.wiphy), |
1081 | "TX to low-level driver", | 1082 | "TX to low-level driver", |
1082 | tx->u.tx.extra_frag[i]); | 1083 | tx->u.tx.extra_frag[i]); |
1083 | ret = local->ops->tx(local_to_hw(local), | 1084 | ret = local->ops->tx(local_to_hw(local), |
@@ -1799,7 +1800,7 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, int if_id, | |||
1799 | if (!rate) { | 1800 | if (!rate) { |
1800 | if (net_ratelimit()) { | 1801 | if (net_ratelimit()) { |
1801 | printk(KERN_DEBUG "%s: ieee80211_beacon_get: no rate " | 1802 | printk(KERN_DEBUG "%s: ieee80211_beacon_get: no rate " |
1802 | "found\n", local->mdev->name); | 1803 | "found\n", wiphy_name(local->hw.wiphy)); |
1803 | } | 1804 | } |
1804 | dev_kfree_skb(skb); | 1805 | dev_kfree_skb(skb); |
1805 | return NULL; | 1806 | return NULL; |