Discussion:
Intel wifi driver
Martijn Verschoor
2016-09-30 12:09:04 UTC
Permalink
Hi everyone,

I’m trying to setup the wifi driver in Turmvilla like scenario’s but with little success. The driver spits out a fair amount of warnings and errors which obfuscates my view of what could be the main issue; thus I would like to reach out for help.

A log of the turmvilla scenario (https://github.com/nfeske/genode/tree/turmvilla-16.05) running on a Lenovo x201 is attached. I get very similar results on x250’s.

Can anyone point out to me what might be the problem?

Met vriendelijke groet / kind regards,

Martijn Verschoor

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office) | +31 616 014 087 (mobile)
Christian Helmuth
2016-09-30 15:45:12 UTC
Permalink
Hello Martijn,

I have no clue what's going wrong on your x201 but expect that Norman
uses Turmvilla with slightly modified version of the mentioned brnach.
What puzzles me in you log are the following lines.
[init -> wifi_drv] no net device registered!
[init -> wifi_drv] nl80211: Driver does not support authentication/association or connect commands
[init -> wifi_drv] nl80211: Remove monitor interface: refcount=0
[init -> wifi_drv] netlink: Operstate: ifindex=1 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
[init -> wifi_drv] no net device registered!
[init -> wifi_drv] nl80211: Set mode ifindex 1 iftype 2 (STATION)
[init -> wifi_drv] nl80211: Failed to set interface 1 to mode 2: -19 (Operation not supported by device)
[init -> wifi_drv] wlan0: Failed to initialize driver interface
[init -> wifi_drv] Failed to add interface wlan0
[init -> wifi_drv] wlan0: Cancelling scan request
[init -> wifi_drv] wlan0: Cancelling authentication timeout
Could it be your wlan_configuration is somewhat corrupted or uses
invalid syntax? I never saw our driver complaining about the STATION
thing before.

Greets
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Martijn Verschoor
2016-10-03 07:46:45 UTC
Permalink
Hi Christian,

Thanks for the hint. I tried the following for “wlan_configuration":

- <selected_accesspoint ssid=“GOOIMEER_6”> (the GOOIMEER_6 access-point has no protection).
- numerous permutations with protection, psk, etc..
- empty

Also I tried to add a network section in “wpa_supplicant.conf” similar to the one found in “dde_linux/README”.

Regardless of what I configure, I keep getting the same behaviour.

What puzzles me is that the “wlan_accesspoints” and “wlan_state” reports are never generated…

Met vriendelijke groet / kind regards,

Martijn Verschoor

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office) | +31 616 014 087 (mobile)
Josef Söntgen
2016-10-03 08:35:43 UTC
Permalink
Hello Martijn,
I’m trying to setup the wifi driver in Turmvilla like scenario’s but
with little success. The driver spits out a fair amount of warnings
and errors which obfuscates my view of what could be the main issue;
thus I would like to reach out for help.
A log of the turmvilla scenario
(https://github.com/nfeske/genode/tree/turmvilla-16.05) running on a
Lenovo x201 is attached. I get very similar results on x250’s.
Can anyone point out to me what might be the problem?
The important piece of information in your LOG output is this line:

[init -> wifi_drv] dev_error: Invalid 11n configuration

When your 6200 ABG card is initialized it indicates that it supports the
11n mode but judging by looking into Linux driver it is not supposed to
be configured this way. I vaguely remember that Norman has the same
problem with his 6200 ABG card. The “quick-fix” is to forcefully disable
11n support (see the attached patch).


Regards,
Josef
--
Josef Söntgen
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
Martijn Verschoor
2016-10-03 13:21:19 UTC
Permalink
Hi Josef,

Thanks for your help. Your patch brings me a bit further to get wifi up on the x201, but I’m not there yet. Now the scan fails, see the attached log. I didn’t debug this yet since I have now managed to get wifi up on our x250 with another patch [1].

I’m quite pleased with wifi on the x250 since this was our primary goal. Nevertheless it would be interesting to fix it for the x201 as well.

Thanks again, and I’ll give some feedback about the x201 issue when I have more time to debug it.
Post by Josef Söntgen
[init -> wifi_drv] dev_error: Invalid 11n configuration
When your 6200 ABG card is initialized it indicates that it supports the
11n mode but judging by looking into Linux driver it is not supposed to
be configured this way. I vaguely remember that Norman has the same
problem with his 6200 ABG card. The “quick-fix” is to forcefully disable
11n support (see the attached patch).
Regards,
Josef
Met vriendelijke groet / kind regards,

Martijn Verschoor

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office) | +31 616 014 087 (mobile)


[1] https://github.com/genodelabs/genode/commit/f81d4cfbbb3f26d2631d93c04920fbbe3f686695
Loading...