mac80211 ethtool support
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
Quoted 4 lines · 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.
Signature · 1 line
Greetings Michael.
Quoted 7 lines · Michael Buesch
Quoted 4 lines · 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
Quoted 8 lines · On Wednesday 12 December 2007 02:13:08 Zhu Yi wrote:
Quoted 6 lines · Michael Buesch
Quoted 4 lines · 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?
Quoted 5 lines
Quoted 1 line
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.
Signature · 1 line
Greetings Michael.
Quoted 8 lines
Quoted 4 lines
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
Quoted 5 lines · Johannes Berg
Quoted 5 lines
Quoted 4 lines
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?
Quoted 9 lines
Quoted 3 lines
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 ?
Quoted 1 line
Maybe it should live in cfg80211's sysfs...
This is also a viable option
Quoted 3 lines
johannes
Quoted 7 lines · Tomas Winkler
Quoted 5 lines
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.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 7 lines · Tomas Winkler
Quoted 5 lines · Johannes Berg
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.
Quoted 6 lines
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
Signature · 2 lines
John W. Linville [email protected]
Quoted 5 lines
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
Quoted 9 lines · Johannes Berg
Quoted 5 lines
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 :)
Quoted 2 lines
johannes
Quoted 2 lines
BTW iwl HW supports WOL :)
How the..?! You can't keep an association up for long enough without mac80211, can you?
johannes