compatibility patch (dev_get and hotplug_path) for linux kernel 2.6.10
(to be used for linux-wlan-ng-0.2.1pre23)


11-Jan-05:
linux-wlan-ng-0.2.1pre24 is released. It should obsolete this patch.
(see ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/)
But be careful - according to the mailing lists it might introduce bugs pre23 did not have...
13-Jan-05:
linux-wlan-ng-0.2.1pre25 is out and seems to work well !
No need to patch the kernel anymore. (recommended)


Between linux kernel 2.6.9 and 2.6.10-rc handling of hotplug events has changed internally.
Along with that it came that the old "hotplug_path" symbol is no longer exported.
(see http://marc.theaimsgroup.com/?l=linux-kernel&m=110072898513119&w=2)
The deprecated dev_get function, still used by some products, has also been officially removed.

That was done to force 3rd party developers to convert their software to the new functions and to get rid of
the so-long-deprecated pieces and symbols. There is nothing wrong with that, but for me it just broke
compatibility to linux-wlan-ng (current version at time of writing : linux-wlan-ng-0.2.1pre23). My pcmcia
wlan card (based on the great prism2 chipset) did not work anymore :-(
As there have been no updates to the linux-wlan-ng package over the last weeks and I really wanted to use
the 2.6.10-rc kernel (mostly because of the annoying oom-killer-bug in >2.6.7 and <2.6.10-rc3), I took the
time to patch back the lost things neccessary for linux-wlan-ng.
As the patch works for me, I decided to release it to the public.

But beware, it is really considered a workaround only .... a quite *ugly* workaround....
It re-enables decprecated elements. You might want to wait for the next linux-wlan-ng release instead ;-)

if you got error messages like:
p80211: Unknown symbol hotplug_path
p80211: Unknown symbol dev_get
you might want to try my simple patch.

Get it here: 2.6.10_old_hotplug.diff.gz
(patch against 2.6.10-rc3)

Just patch your kernel and give it a try. It should bring vanilla linux-wlan-ng-0.2.1pre23 back to life.
(and please remember that it is provided "as is", without any warranty of any kind)


Another way to get linux-wlan-ng working is to manually patch it, please see this thread:
http://lists.linux-wlan.com/pipermail/linux-wlan-user/2004-November/012942.html
These changes will be included in the next release, maybe called pre24.
Thanks to Frederic for bringing this to my attention.
09-Jan-05:
If you would like to get a single patch for linux-wlan-ng (e.g. you are using precompiled kernels),
here is where you can get it for linux-wlan-ng-0.2.1pre23:
http://lists.linux-wlan.com/pipermail/linux-wlan-user/2005-January/013034.html
(use the URL at the bottom)




13-January 2005

- Maximilian


feedback or questions ? feel free to contact me at burbon04 <at> gmx.de