hotplug_path no longer exported
Hi,
hotplug_path is no longer exported, is this on purpose ? It breaks linux-wlan-ng. If it is on purpose, I suppose linux-wlan-ng should use kobject_hotplug() ? If not, here's a patch.
kobject_uevent.c renamed from kobject_uevent.c.orig +1 -0
@@ -312,6 +312,7 @@return ; }EXPORT_SYMBOL (kobject_hotplug); +EXPORT_SYMBOL (hotplug_path);/** * add_hotplug_env_var - helper for creating hotplug environment variables
Quoted 3 lines · Colin Leroy
Hi,
hotplug_pathis no longer exported, is this on purpose ?
Yes.
Quoted 2 lines
It breaks linux-wlan-ng. If it is on purpose, I suppose linux-wlan-ng should use
kobject_hotplug()?
Yes it should. Why was it not useing that function in the first place?
Quoted 1 line
If not, here's a patch.
No, please use kobject_hotplug(). Actually, what are they doing that they need to call kobject_hotplug() in the first place?
thanks,
greg k-h
On 17 Nov 2004 at 13h11, Greg KH wrote:
Hi,
Quoted 9 lines
Quoted 1 line
hotplug_pathis no longer exported, is this on purpose ?Yes.
Quoted 2 lines
It breaks linux-wlan-ng. If it is on purpose, I suppose linux-wlan-ng should use
kobject_hotplug()?Yes it should. Why was it not useing that function in the first place?
Dunno. This driver has a reputation of being the worse wlan driver for prism2 chipsets out there, but it's the only one supporting USB devices.
Quoted 2 lines
No, please use
kobject_hotplug(). Actually, what are they doing that they need to callkobject_hotplug()in the first place?
To propagate events to scripts, I think:
void p80211_suspend(wlandevice_t *wlandev)
{
p80211_run_sbin_hotplug(wlandev, WLAN_HOTPLUG_SUSPEND);
}
int register_wlandev(wlandevice_t *wlandev)
{
netdevice_t *dev = wlandev->netdev;
... if (register_netdev(dev)) {
return -EIO;
}
...
p80211_run_sbin_hotplug(wlandev, WLAN_HOTPLUG_REGISTER);
}With p80211_run_sbin_hotplug doing stuff to call /sbin/hotplug... The one that will write a correct patch to linux-wlan-ng will have to figure out the different events they use: "register" (instead of "add"), "startup", "shutdown", "resume", "suspend"...
Signature · 2 lines
Colin http://www.colino.net/
Quoted 3 lines · Colin Leroy
Dunno. This driver has a reputation of being the worse wlan driver for prism2 chipsets out there, but it's the only one supporting USB devices.
Hm, I've heard that rumor before too. If only someone would get me such a usb device, maybe that problem could be fixed :)
Quoted 4 lines
With
p80211_run_sbin_hotplugdoing stuff to call/sbin/hotplug... The one that will write a correct patch to linux-wlan-ng will have to figure out the different events they use: "register" (instead of "add"), "startup", "shutdown", "resume", "suspend"...
Ick, ick, ick. It's about time we force them to play nice with the rest of the kernel and userspace :)
Anyway, the proper fix is to use kobject_hotplug(). They will have to change their code. Just one of the many joys of trying to keep a driver outside of the main kernel tree...
thanks,
greg k-h
On 17 Nov 2004 at 14h11, Greg KH wrote:
Hi,
Quoted 5 lines
Quoted 2 lines
Dunno. This driver has a reputation of being the worse wlan driver for prism2 chipsets out there, but it's the only one supporting USB devices.
Hm, I've heard that rumor before too. If only someone would get me such a usb device, maybe that problem could be fixed :)
What's your address ? :)
Quoted 3 lines
Anyway, the proper fix is to use
kobject_hotplug(). They will have to change their code. Just one of the many joys of trying to keep a driver outside of the main kernel tree...
I also just noticed they do their hotplug stuff in p80211.c, which knows nothing of USB. What a hack :-/
Signature · 1 line
Colin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greg KH wrote:
| On Wed, Nov 17, 2004 at 11:12:53PM +0100, Colin Leroy wrote: | |>Dunno. This driver has a reputation of being the worse wlan driver for |>prism2 chipsets out there, but it's the only one supporting USB devices. | | | Hm, I've heard that rumor before too. If only someone would get me such | a usb device, maybe that problem could be fixed :)
Actually, orinoco_usb in current Orinoco CVS has support for some of these devices and I'm using one right now. The driver works pretty well but I'm not sure whether orinoco_usb supports many prism2_usb devices the same way orinoco_cs supports many prism2_cs devices.
So, if I sent you my wireless device it wouldn't be much help :)
- --
Joshua Kwan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQIVAwUBQZx0PaOILr94RG8mAQJHixAAyM6MhoS7z6IAT4tbU1i/VjBEI9WwJ7HC LCLnGSKqghy0HUZ/W/sbDqYX3or+LFweunCmKDPC9b62/uOwxSjMzi+6LT7Zy0eU InPF4NJaMRWgdgOBCjE8/ZrpZooREcCAyeNDJjLjFzSEcG//7A6yqJumqb3A3XX+ O1+cM5SDsIZsnCjup/R0GTMaGXBAALickM3oIiTYLk3ByOQTkrb0dbvxUlos1K9F oAZbUP07uaFZdEr60g768whpGoiN+QEOpPsE9uiON06UlPouPfAyRq5X72XOwEhJ Ey/D7y1OkiFECCN0Y+n+bgr+LZjpORbVocs9H4tKAqs8KS7ypx0EdB2UuGL8mLWB wsAu402RpUaA6X2MNm6ZrX96T1KumABMrVTh506UEVUccSxvTXq3KvZ04TrSppdL 7uvx4RtV26fR3wUqM7zaGAqmlUCrmK1SilGEDhsIR5uUyyL7nzEifsN0qnuDDngS Mo5pedurJpsKQhDvdfuemqWecGqQ/RYwGrK8U321bXeishjuaFR2Riq7/LseANzh hFiHdI3lOJeNirPBUIgP89blIWgjTRwZ2segKSWV49+ls/qlmSURRuEgrYMcJKQR oasMqV0Ba5h4pdICRp25/iFzflvzRg7rvZae1k6lqNeyxgVqJPPpwFDAPWguhSGF hHd2DEkvJdk=
=aGiw
-----END PGP SIGNATURE-----
On 18 Nov 2004 at 02h11, Joshua Kwan wrote:
Hi,
Quoted 4 lines
Actually,
orinoco_usbin current Orinoco CVS has support for some of these devices and I'm using one right now. The driver works pretty well but I'm not sure whetherorinoco_usbsupports manyprism2_usbdevices the same wayorinoco_cssupports manyprism2_csdevices.
No, doesn't work with prism2 usb devices. Half the functions are dummy functions returning -EOPNOTSUPP.
I wish I was employed to do linux development so I could spend the necessary time to do such things...
Signature · 1 line
Colin