I would recommend to look for other alternatives than ndiswrapper, most wlan chipsets have native driver support these days and ndiswrapper development has been dead upstream since late 2007/ early 2008 with only minor cosmetics and occassional changes to keep compatibility with newer kernels getting committed.

As the function netdev_priv() is in the kernel since (about) 2.6.6 I don't need this define-hack for older kernels.

Ciao, Martin

P.S.: I use ndiswrapper with some old DWL-G650+ PCMCIA cards (no native acx111 driver support with WPA).

_________________omnia vincit pecunia

wiarus_old

Post subject:Posted: 31.10.2011, 07:14

Joined: 2010-09-14
Posts: 20
Location: Poland
Status: Offline

This is mine problem too.
Wlan0 works perfectly with ndiswrapper and wicd (ceni shows wlan0 too) with kernel 3.0-4-slh-2.
But when I do d-u (twice) and kernel 3.0-4 and 3.1-0-slh-2 was loaded wlan0 didn't work no more.

so the three lines above^^ in ntoskernel.h come to effect and hide the real function in the kernel.

Ciao, Martin

_________________omnia vincit pecunia

wiarus_old

Post subject:Posted: 01.11.2011, 16:54

Joined: 2010-09-14
Posts: 20
Location: Poland
Status: Offline

Thanks a lot horo!
It works!

So, I tried to change tar.gz with mc but it was imposible to write ntoskernel.h back, so I made changes in /usr/src/modules/ndiswrapper/ntoskernel.h and renamed tar.gz just in case (I know it probably not right way but shorter), then