aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-09-18 17:29:20 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:32 -0400
commitdd1cd4c620c174ebbdf78dc01b924115a06de5d3 (patch)
treea04517b9ee2ede228ec4a8ab96099460060c4245 /net/mac80211/ieee80211.c
parent9c7d7728baf79c63ae58df95fb39ea13db487599 (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/ieee80211.c')
-rw-r--r--net/mac80211/ieee80211.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 5e924588e9a2..4a213a20373a 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -814,7 +814,7 @@ static void ieee80211_tasklet_handler(unsigned long data)
814 break; 814 break;
815 default: /* should never get here! */ 815 default: /* should never get here! */
816 printk(KERN_ERR "%s: Unknown message type (%d)\n", 816 printk(KERN_ERR "%s: Unknown message type (%d)\n",
817 local->mdev->name, skb->pkt_type); 817 wiphy_name(local->hw.wiphy), skb->pkt_type);
818 dev_kfree_skb(skb); 818 dev_kfree_skb(skb);
819 break; 819 break;
820 } 820 }
@@ -904,7 +904,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb,
904 if (!status) { 904 if (!status) {
905 printk(KERN_ERR 905 printk(KERN_ERR
906 "%s: ieee80211_tx_status called with NULL status\n", 906 "%s: ieee80211_tx_status called with NULL status\n",
907 local->mdev->name); 907 wiphy_name(local->hw.wiphy));
908 dev_kfree_skb(skb); 908 dev_kfree_skb(skb);
909 return; 909 return;
910 } 910 }
@@ -961,7 +961,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb,
961 printk(KERN_DEBUG "%s: dropped TX " 961 printk(KERN_DEBUG "%s: dropped TX "
962 "filtered frame queue_len=%d " 962 "filtered frame queue_len=%d "
963 "PS=%d @%lu\n", 963 "PS=%d @%lu\n",
964 local->mdev->name, 964 wiphy_name(local->hw.wiphy),
965 skb_queue_len( 965 skb_queue_len(
966 &sta->tx_filtered), 966 &sta->tx_filtered),
967 !!(sta->flags & WLAN_STA_PS), 967 !!(sta->flags & WLAN_STA_PS),
@@ -1282,7 +1282,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
1282 result = ieee80211_init_rate_ctrl_alg(local, NULL); 1282 result = ieee80211_init_rate_ctrl_alg(local, NULL);
1283 if (result < 0) { 1283 if (result < 0) {
1284 printk(KERN_DEBUG "%s: Failed to initialize rate control " 1284 printk(KERN_DEBUG "%s: Failed to initialize rate control "
1285 "algorithm\n", local->mdev->name); 1285 "algorithm\n", wiphy_name(local->hw.wiphy));
1286 goto fail_rate; 1286 goto fail_rate;
1287 } 1287 }
1288 1288
@@ -1290,7 +1290,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
1290 1290
1291 if (result < 0) { 1291 if (result < 0) {
1292 printk(KERN_DEBUG "%s: Failed to initialize wep\n", 1292 printk(KERN_DEBUG "%s: Failed to initialize wep\n",
1293 local->mdev->name); 1293 wiphy_name(local->hw.wiphy));
1294 goto fail_wep; 1294 goto fail_wep;
1295 } 1295 }
1296 1296
@@ -1301,7 +1301,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
1301 IEEE80211_IF_TYPE_STA); 1301 IEEE80211_IF_TYPE_STA);
1302 if (result) 1302 if (result)
1303 printk(KERN_WARNING "%s: Failed to add default virtual iface\n", 1303 printk(KERN_WARNING "%s: Failed to add default virtual iface\n",
1304 local->mdev->name); 1304 wiphy_name(local->hw.wiphy));
1305 1305
1306 local->reg_state = IEEE80211_DEV_REGISTERED; 1306 local->reg_state = IEEE80211_DEV_REGISTERED;
1307 rtnl_unlock(); 1307 rtnl_unlock();
@@ -1401,7 +1401,7 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
1401 if (skb_queue_len(&local->skb_queue) 1401 if (skb_queue_len(&local->skb_queue)
1402 || skb_queue_len(&local->skb_queue_unreliable)) 1402 || skb_queue_len(&local->skb_queue_unreliable))
1403 printk(KERN_WARNING "%s: skb_queue not empty\n", 1403 printk(KERN_WARNING "%s: skb_queue not empty\n",
1404 local->mdev->name); 1404 wiphy_name(local->hw.wiphy));
1405 skb_queue_purge(&local->skb_queue); 1405 skb_queue_purge(&local->skb_queue);
1406 skb_queue_purge(&local->skb_queue_unreliable); 1406 skb_queue_purge(&local->skb_queue_unreliable);
1407 1407