* mac80211 ethtool support
@ 2007-12-11 8:17 Zhu Yi
2007-12-11 12:50 ` Michael Buesch
0 siblings, 1 reply; 11+ messages in thread
From: Zhu Yi @ 2007-12-11 8:17 UTC (permalink / raw)
To: linux-wireless
Hi,
I want to add ethtool .get_eeprom and .get_eeprom_len support for
iwlwifi. But it seems mac80211 hides the netdev structure from the
driver. What's the suggested way for doing so (i.e dump EEPROM) for
mac80211 devices?
Thanks,
-yi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-11 8:17 mac80211 ethtool support Zhu Yi
@ 2007-12-11 12:50 ` Michael Buesch
2007-12-12 1:13 ` Zhu Yi
0 siblings, 1 reply; 11+ messages in thread
From: Michael Buesch @ 2007-12-11 12:50 UTC (permalink / raw)
To: Zhu Yi; +Cc: linux-wireless
On Tuesday 11 December 2007 09:17:28 Zhu Yi wrote:
> I want to add ethtool .get_eeprom and .get_eeprom_len support for
> iwlwifi. But it seems mac80211 hides the netdev structure from the
> driver. What's the suggested way for doing so (i.e dump EEPROM) for
> mac80211 devices?
In ssb we simply create a sysfs file for this.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-11 12:50 ` Michael Buesch
@ 2007-12-12 1:13 ` Zhu Yi
2007-12-12 10:48 ` Michael Buesch
0 siblings, 1 reply; 11+ messages in thread
From: Zhu Yi @ 2007-12-12 1:13 UTC (permalink / raw)
To: Michael Buesch; +Cc: linux-wireless
On Tue, 2007-12-11 at 13:50 +0100, Michael Buesch wrote:
> On Tuesday 11 December 2007 09:17:28 Zhu Yi wrote:
> > I want to add ethtool .get_eeprom and .get_eeprom_len support for
> > iwlwifi. But it seems mac80211 hides the netdev structure from the
> > driver. What's the suggested way for doing so (i.e dump EEPROM) for
> > mac80211 devices?
>
> In ssb we simply create a sysfs file for this.
Yeah, we can do this also. But the users want a standard way, especially
when there is already such kernel interface and user space tools ready
there. Any chance mac80211 supports ethtool or something similar?
Thanks,
-yi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-12 1:13 ` Zhu Yi
@ 2007-12-12 10:48 ` Michael Buesch
2007-12-12 17:45 ` Johannes Berg
0 siblings, 1 reply; 11+ messages in thread
From: Michael Buesch @ 2007-12-12 10:48 UTC (permalink / raw)
To: Zhu Yi; +Cc: linux-wireless
On Wednesday 12 December 2007 02:13:08 Zhu Yi wrote:
>
> On Tue, 2007-12-11 at 13:50 +0100, Michael Buesch wrote:
> > On Tuesday 11 December 2007 09:17:28 Zhu Yi wrote:
> > > I want to add ethtool .get_eeprom and .get_eeprom_len support for
> > > iwlwifi. But it seems mac80211 hides the netdev structure from the
> > > driver. What's the suggested way for doing so (i.e dump EEPROM) for
> > > mac80211 devices?
> >
> > In ssb we simply create a sysfs file for this.
>
> Yeah, we can do this also. But the users want a standard way, especially
> when there is already such kernel interface and user space tools ready
> there. Any chance mac80211 supports ethtool or something similar?
You could write a patch.
Add a callback to mac80211 that mac80211 uses to register the eeprom
ethtool interface.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-12 10:48 ` Michael Buesch
@ 2007-12-12 17:45 ` Johannes Berg
2007-12-12 23:23 ` Tomas Winkler
0 siblings, 1 reply; 11+ messages in thread
From: Johannes Berg @ 2007-12-12 17:45 UTC (permalink / raw)
To: Michael Buesch; +Cc: Zhu Yi, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
> > Yeah, we can do this also. But the users want a standard way, especially
> > when there is already such kernel interface and user space tools ready
> > there. Any chance mac80211 supports ethtool or something similar?
>
> You could write a patch.
> Add a callback to mac80211 that mac80211 uses to register the eeprom
> ethtool interface.
NACK. Which virtual interface should get this? wmaster sounds like the
"obvious" candidate but we want to get rid of it ASAP. And the others
ones are pretty wrong because you can, technically, have a wiphy without
any virtual interfaces on it.
Maybe it should live in cfg80211's sysfs...
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-12 17:45 ` Johannes Berg
@ 2007-12-12 23:23 ` Tomas Winkler
2007-12-13 0:27 ` John W. Linville
2007-12-13 0:31 ` Pavel Roskin
0 siblings, 2 replies; 11+ messages in thread
From: Tomas Winkler @ 2007-12-12 23:23 UTC (permalink / raw)
To: Johannes Berg; +Cc: Michael Buesch, Zhu Yi, linux-wireless
On Dec 12, 2007 7:45 PM, Johannes Berg <johannes@sipsolutions.net> wrote:
>
> > > Yeah, we can do this also. But the users want a standard way, especially
> > > when there is already such kernel interface and user space tools ready
> > > there. Any chance mac80211 supports ethtool or something similar?
> >
> > You could write a patch.
> > Add a callback to mac80211 that mac80211 uses to register the eeprom
> > ethtool interface.
>
> NACK. Which virtual interface should get this? wmaster sounds like the
> "obvious" candidate but we want to get rid of it ASAP. And the others
> ones are pretty wrong because you can, technically, have a wiphy without
> any virtual interfaces on it.
>
Just a thought. What if all virtual interfaces will quasi implements
it. It doesn't matter if all the interfaces answers the same. Since
these are get only operations the mutual exclusion shouldn't be so
hard. All interfaces will support equally the handlers. But I'm not
sure about other ethool handlers.
If wmaster goes will be all virtual interfaces equal citizens ?
> Maybe it should live in cfg80211's sysfs...
This is also a viable option
>
> johannes
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-12 23:23 ` Tomas Winkler
@ 2007-12-13 0:27 ` John W. Linville
2007-12-13 11:38 ` Johannes Berg
2007-12-13 0:31 ` Pavel Roskin
1 sibling, 1 reply; 11+ messages in thread
From: John W. Linville @ 2007-12-13 0:27 UTC (permalink / raw)
To: Tomas Winkler; +Cc: Johannes Berg, Michael Buesch, Zhu Yi, linux-wireless
On Thu, Dec 13, 2007 at 01:23:55AM +0200, Tomas Winkler wrote:
> On Dec 12, 2007 7:45 PM, Johannes Berg <johannes@sipsolutions.net> wrote:
> > NACK. Which virtual interface should get this? wmaster sounds like the
> > "obvious" candidate but we want to get rid of it ASAP. And the others
> > ones are pretty wrong because you can, technically, have a wiphy without
> > any virtual interfaces on it.
> >
> Just a thought. What if all virtual interfaces will quasi implements
> it. It doesn't matter if all the interfaces answers the same. Since
> these are get only operations the mutual exclusion shouldn't be so
> hard. All interfaces will support equally the handlers. But I'm not
> sure about other ethool handlers.
> If wmaster goes will be all virtual interfaces equal citizens ?
Has anyone taken the trouble to analyze the various ethtool operations
to see which ones even make sense for wireless devices? That might
make a better starting point for discussing how to implement whatever
remains.
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-13 0:27 ` John W. Linville
@ 2007-12-13 11:38 ` Johannes Berg
2007-12-13 13:43 ` Tomas Winkler
0 siblings, 1 reply; 11+ messages in thread
From: Johannes Berg @ 2007-12-13 11:38 UTC (permalink / raw)
To: John W. Linville; +Cc: Tomas Winkler, Michael Buesch, Zhu Yi, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
> Has anyone taken the trouble to analyze the various ethtool operations
> to see which ones even make sense for wireless devices? That might
> make a better starting point for discussing how to implement whatever
> remains.
Most, except very few hardware-specific like the EEPROM under discussion
and a few driver-specific (get driver version etc) don't make any sense,
like WOL, GSO, pause, UFO, ...
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-13 11:38 ` Johannes Berg
@ 2007-12-13 13:43 ` Tomas Winkler
2007-12-13 17:34 ` Johannes Berg
0 siblings, 1 reply; 11+ messages in thread
From: Tomas Winkler @ 2007-12-13 13:43 UTC (permalink / raw)
To: Johannes Berg; +Cc: John W. Linville, Michael Buesch, Zhu Yi, linux-wireless
On Dec 13, 2007 1:38 PM, Johannes Berg <johannes@sipsolutions.net> wrote:
>
> > Has anyone taken the trouble to analyze the various ethtool operations
> > to see which ones even make sense for wireless devices? That might
> > make a better starting point for discussing how to implement whatever
> > remains.
>
> Most, except very few hardware-specific like the EEPROM under discussion
> and a few driver-specific (get driver version etc) don't make any sense,
> like WOL, GSO, pause, UFO, ...
I've checked that too and I agree it looks like we need ethool brother
for wireless some wifitool. But it looks like
cfg80211 can provide this functionality
BTW iwl HW supports WOL :)
> johannes
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: mac80211 ethtool support
2007-12-12 23:23 ` Tomas Winkler
2007-12-13 0:27 ` John W. Linville
@ 2007-12-13 0:31 ` Pavel Roskin
1 sibling, 0 replies; 11+ messages in thread
From: Pavel Roskin @ 2007-12-13 0:31 UTC (permalink / raw)
To: Tomas Winkler; +Cc: Johannes Berg, Michael Buesch, Zhu Yi, linux-wireless
On Thu, 2007-12-13 at 01:23 +0200, Tomas Winkler wrote:
> > NACK. Which virtual interface should get this? wmaster sounds like the
> > "obvious" candidate but we want to get rid of it ASAP. And the others
> > ones are pretty wrong because you can, technically, have a wiphy without
> > any virtual interfaces on it.
> >
> Just a thought. What if all virtual interfaces will quasi implements
> it. It doesn't matter if all the interfaces answers the same.
I think The True Linux Way (c) would be to have EEPROM support for
devices (those that live in /sys/device) without tying it to network
interfaces or cfg80211.
See __ATTR in include/linux/device.h, although I'm not sure if
attributes are suitable for EEPROM as is.
Maybe EEPROM should even be a separate class of devices connected to
other devices.
Of course, the topic would be better suited for LKML.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-12-13 17:34 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 8:17 mac80211 ethtool support Zhu Yi
2007-12-11 12:50 ` Michael Buesch
2007-12-12 1:13 ` Zhu Yi
2007-12-12 10:48 ` Michael Buesch
2007-12-12 17:45 ` Johannes Berg
2007-12-12 23:23 ` Tomas Winkler
2007-12-13 0:27 ` John W. Linville
2007-12-13 11:38 ` Johannes Berg
2007-12-13 13:43 ` Tomas Winkler
2007-12-13 17:34 ` Johannes Berg
2007-12-13 0:31 ` Pavel Roskin
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).