Bug 631283

Summary: ndiswrapper seems not to work with nl80211 ('nl80211' generic netlink not found)
Product: [openSUSE] openSUSE 11.3 Reporter: Manfred Schwarb <manfred99>
Component: NetworkAssignee: Vladimir Botka <vbotka>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mt
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard: maint:released:11.3:35314
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Manfred Schwarb 2010-08-14 16:05:30 UTC
User-Agent:       Opera/9.80 (X11; Linux x86_64; U; de) Presto/2.6.30 Version/10.60

I tried to make my Netgear WG511v2 adapter to make work, it worked 
flawlessly using ndiswrapper with openSuse11.2. With openSuse11.3, I get:

    wlan0     device: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)
    wlan0     starting wpa_supplicant
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver interface
Starting DHCP4+DHCP6 client on wlan0. . . . . . . .  
    wlan0     DHCP4 continues in background
    wlan0     DHCP6 continues in background

So I changed /etc/sysconfig/network/scripts/ifup-wireless:720 into

          ndiswrapper)
                WPA_DRIVER=nl80211,wext
                ;;
            *.sys)
                WPA_DRIVER=nl80211

As I don't know if there are adapter that work with ndiswrapper and nl80211,
or if there are ndiswrapper variants with working nl80211,
I went for the safe variant to try both nl80211 and wext.

It works OK, on "ifup wlan0" I get now:
    wlan0     device: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)
    wlan0     starting wpa_supplicant
nl80211: 'nl80211' generic netlink not found
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Starting DHCP4+DHCP6 client on wlan0. . . . . . . .  
    wlan0     IP address: 192.168.0.198/24
    wlan0     DHCP6 continues in background

And I have a working network connection.


Reproducible: Always
Comment 1 Marius Tomaschewski 2010-08-16 07:09:55 UTC
Thanks!

We are about to fix the mapping in bug 625403 and will add your change,

BTW: There is a libertas/libertas_tf driver -- did you tried if this
native driver works for you instead of the ndiswrapper?

libertas_cs.ko  libertas.ko  libertas_sdio.ko  libertas_spi.ko
libertas_tf.ko  libertas_tf_usb.ko
Comment 2 Manfred Schwarb 2010-08-16 21:21:34 UTC
I just did a modprobe of libertas and libertas_tf (after rmmod ndiswrapper),
does not work, the pc-card behaves as a brick, no lights, 
nothing in /var/log/messages or dmesg.

ndiswrapper reports competing drivers with the option "-l", I think,
but there is nothing:
# ndiswrapper -l
wg511v2 : driver installed
        device (11AB:1FAA) present


BTW: I found http://lwn.net/Articles/275719/, but it seems not to
be in the kernel (perhaps a case for Greg's staging project?).

BTW2: I tried https://bugzillafiles.novell.org/attachment.cgi?id=383070,
works for me.
Comment 3 Vladimir Botka 2010-08-16 22:08:21 UTC
(In reply to comment #2)
> BTW: I found http://lwn.net/Articles/275719/, but it seems not to
> be in the kernel (perhaps a case for Greg's staging project?).

Once the driver is accepted by the wireless-testing and tested it will come to the plain vanilla and this way also to our kernel.

> BTW2: I tried https://bugzillafiles.novell.org/attachment.cgi?id=383070,
> works for me.

If the wext fallback is working I'd like to close this issue as FIXED, but if there are any other problems, reopen.
Comment 4 Marius Tomaschewski 2010-08-18 13:03:38 UTC
Fixed in home:mtomaschewski:branches:openSUSE:11.3:Update:Test/sysconfig
and submitted it to openSUSE:11.3:Update:Test in request 45757.
Comment 5 Marius Tomaschewski 2010-08-18 13:06:30 UTC
Ahm. The automatic mapping to wext is fixed I mean...

BTW:
You can change to use BOOTPROTO=dhcp4 in /etc/sysconfig/network/ifup-wlan0
when you don't have a DHCPv6 server in your network... It will avoid the
start of dhcp6 client ("wlan0     DHCP6 continues in background")...
Comment 6 Swamp Workflow Management 2010-09-07 12:52:45 UTC
Update released for: sysconfig, sysconfig-debuginfo, sysconfig-debugsource
Products:
openSUSE 11.3 (debug, i586, x86_64)