* [PATCH] mac80211: don't use master netdev name
@ 2009-06-09 14:18 Johannes Berg
2009-06-09 14:47 ` Pavel Roskin
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2009-06-09 14:18 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
Always use the wiphy name instead.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/cfg.c | 4 ++--
net/mac80211/mlme.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
--- wireless-testing.orig/net/mac80211/mlme.c 2009-06-09 16:17:44.000000000 +0200
+++ wireless-testing/net/mac80211/mlme.c 2009-06-09 16:17:47.000000000 +0200
@@ -793,13 +793,13 @@ static void ieee80211_sta_wmm_params(str
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
printk(KERN_DEBUG "%s: WMM queue=%d aci=%d acm=%d aifs=%d "
"cWmin=%d cWmax=%d txop=%d\n",
- local->mdev->name, queue, aci, acm, params.aifs, params.cw_min,
- params.cw_max, params.txop);
+ wiphy_name(local->hw.wiphy), queue, aci, acm,
+ params.aifs, params.cw_min, params.cw_max, params.txop);
#endif
if (drv_conf_tx(local, queue, ¶ms) && local->ops->conf_tx)
printk(KERN_DEBUG "%s: failed to set TX queue "
- "parameters for queue %d\n", local->mdev->name,
- queue);
+ "parameters for queue %d\n",
+ wiphy_name(local->hw.wiphy), queue);
}
}
--- wireless-testing.orig/net/mac80211/cfg.c 2009-06-09 16:17:44.000000000 +0200
+++ wireless-testing/net/mac80211/cfg.c 2009-06-09 16:17:47.000000000 +0200
@@ -1122,8 +1122,8 @@ static int ieee80211_set_txq_params(stru
p.txop = params->txop;
if (drv_conf_tx(local, params->queue, &p)) {
printk(KERN_DEBUG "%s: failed to set TX queue "
- "parameters for queue %d\n", local->mdev->name,
- params->queue);
+ "parameters for queue %d\n",
+ wiphy_name(local->hw.wiphy), params->queue);
return -EINVAL;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: don't use master netdev name
2009-06-09 14:18 [PATCH] mac80211: don't use master netdev name Johannes Berg
@ 2009-06-09 14:47 ` Pavel Roskin
2009-06-09 14:49 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Pavel Roskin @ 2009-06-09 14:47 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Tue, 2009-06-09 at 16:18 +0200, Johannes Berg wrote:
> Always use the wiphy name instead.
No objections against the patch.
Maybe we could use wiphy names for the network devices? That is,
wmaster0 would become phy0 and so on. Using two names for the same
thing is confusing. What's better is that we won't have wmaster0
corresponding to phy1 after the driver is reloaded. We'll have "phy1"
in both namespaces.
I wish we could hide those master devices using some "hidden network
device" attribute, but it's not happening.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: don't use master netdev name
2009-06-09 14:47 ` Pavel Roskin
@ 2009-06-09 14:49 ` Johannes Berg
2009-06-09 14:53 ` Pavel Roskin
2009-06-09 15:40 ` Marcel Holtmann
0 siblings, 2 replies; 5+ messages in thread
From: Johannes Berg @ 2009-06-09 14:49 UTC (permalink / raw)
To: Pavel Roskin; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
On Tue, 2009-06-09 at 10:47 -0400, Pavel Roskin wrote:
> On Tue, 2009-06-09 at 16:18 +0200, Johannes Berg wrote:
> > Always use the wiphy name instead.
>
> No objections against the patch.
>
> Maybe we could use wiphy names for the network devices? That is,
> wmaster0 would become phy0 and so on. Using two names for the same
> thing is confusing. What's better is that we won't have wmaster0
> corresponding to phy1 after the driver is reloaded. We'll have "phy1"
> in both namespaces.
>
> I wish we could hide those master devices using some "hidden network
> device" attribute, but it's not happening.
Actually, the reason I'm posting this patch is that I'm killing the
mdev.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: don't use master netdev name
2009-06-09 14:49 ` Johannes Berg
@ 2009-06-09 14:53 ` Pavel Roskin
2009-06-09 15:40 ` Marcel Holtmann
1 sibling, 0 replies; 5+ messages in thread
From: Pavel Roskin @ 2009-06-09 14:53 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Tue, 2009-06-09 at 16:49 +0200, Johannes Berg wrote:
> > I wish we could hide those master devices using some "hidden network
> > device" attribute, but it's not happening.
>
> Actually, the reason I'm posting this patch is that I'm killing the
> mdev.
:-)
Excellent!
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mac80211: don't use master netdev name
2009-06-09 14:49 ` Johannes Berg
2009-06-09 14:53 ` Pavel Roskin
@ 2009-06-09 15:40 ` Marcel Holtmann
1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2009-06-09 15:40 UTC (permalink / raw)
To: Johannes Berg; +Cc: Pavel Roskin, linux-wireless
Hi Johannes,
> > > Always use the wiphy name instead.
> >
> > No objections against the patch.
> >
> > Maybe we could use wiphy names for the network devices? That is,
> > wmaster0 would become phy0 and so on. Using two names for the same
> > thing is confusing. What's better is that we won't have wmaster0
> > corresponding to phy1 after the driver is reloaded. We'll have "phy1"
> > in both namespaces.
> >
> > I wish we could hide those master devices using some "hidden network
> > device" attribute, but it's not happening.
>
> Actually, the reason I'm posting this patch is that I'm killing the
> mdev.
/me making a happy dance ;)
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-06-09 15:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 14:18 [PATCH] mac80211: don't use master netdev name Johannes Berg
2009-06-09 14:47 ` Pavel Roskin
2009-06-09 14:49 ` Johannes Berg
2009-06-09 14:53 ` Pavel Roskin
2009-06-09 15:40 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).