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/ieee80211_rate.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/ieee80211_rate.c')
-rw-r--r-- | net/mac80211/ieee80211_rate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c index a1ded7449784..91a9fe2cbad9 100644 --- a/net/mac80211/ieee80211_rate.c +++ b/net/mac80211/ieee80211_rate.c | |||
@@ -152,7 +152,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local, | |||
152 | ref = rate_control_alloc(name, local); | 152 | ref = rate_control_alloc(name, local); |
153 | if (!ref) { | 153 | if (!ref) { |
154 | printk(KERN_WARNING "%s: Failed to select rate control " | 154 | printk(KERN_WARNING "%s: Failed to select rate control " |
155 | "algorithm\n", local->mdev->name); | 155 | "algorithm\n", wiphy_name(local->hw.wiphy)); |
156 | return -ENOENT; | 156 | return -ENOENT; |
157 | } | 157 | } |
158 | 158 | ||
@@ -164,7 +164,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local, | |||
164 | } | 164 | } |
165 | 165 | ||
166 | printk(KERN_DEBUG "%s: Selected rate control " | 166 | printk(KERN_DEBUG "%s: Selected rate control " |
167 | "algorithm '%s'\n", local->mdev->name, | 167 | "algorithm '%s'\n", wiphy_name(local->hw.wiphy), |
168 | ref->ops->name); | 168 | ref->ops->name); |
169 | 169 | ||
170 | 170 | ||