Bug 12591 - WLAN Client Error while system startup
Summary: WLAN Client Error while system startup
Status: NEW
Alias: None
Product: IPFire
Classification: Unclassified
Component: wpa_supplicant (show other bugs)
Version: 2
Hardware: all All
: - Unknown - Crash
Assignee: Assigned to nobody - feel free to grab it and work on it
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-18 11:24 UTC by itoss
Modified: 2021-12-09 18:04 UTC (History)
2 users (show)

See Also:


Attachments
screenshot of boot screen (21.79 KB, image/png)
2021-03-18 11:24 UTC, itoss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description itoss 2021-03-18 11:24:59 UTC
Created attachment 864 [details]
screenshot of boot screen

WLAN cleint does not work any more. while booting system there is an error in the wpa suplicant system :

failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
Comment 1 Michael Tremer 2021-03-18 11:28:15 UTC
Could you please provide some more detail? What kind of wireless device are you using?

Could you please post the output of "bash -x /etc/init.d/wlanclient start". This will be quite long.
Comment 2 itoss 2021-03-19 10:54:14 UTC
 "bash -x /etc/init.d/wlanclient start". :  https://pastebin.com/0RLggSJR


Device : USB Edimax Wireless Stick

lsusb
Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter


regards
Comment 3 Michael Tremer 2021-03-19 14:35:31 UTC
Could you please run this and post the output?

> wpa_supplicant -ddd -ired0 -c/etc/wpa_supplicant.conf

Please use the attachment function of Bugzilla for archiving purposes.
Comment 4 itoss 2021-03-22 10:50:36 UTC
[root@ipfire ~]# wpa_supplicant -ddd -ired0 -c/etc/wpa_supplicant.conf
wpa_supplicant v2.10-devel
random: getrandom() support available
Successfully initialized wpa_supplicant
Initializing interface 'red0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=11):
     XX XX XX XX XX XX XX XX XX XX XX                  XXXSSIDXXX     
scan_ssid=1 (0x1)
auth_alg: 0x1
key_mgmt: 0x102
PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
proto: 0x2
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='XXXSSIDXXX'
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=red0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -19 (No such device)
red0: Failed to initialize driver interface
Failed to add interface red0
red0: Cancelling scan request
red0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)



"nl80211: Driver does not support authentication/association or connect commands"  
=> Any changes in any driver packages ? It`s a litte bit strange because in all previous versions the WLAN stick works fine. 

regards
Comment 5 itoss 2021-03-22 10:55:40 UTC
Core 153 is the latest version that runs without any problems
Comment 6 Michael Tremer 2021-03-22 11:25:47 UTC
(In reply to itoss from comment #4)
> "nl80211: Driver does not support authentication/association or connect
> commands"  
> => Any changes in any driver packages ? It`s a litte bit strange because in
> all previous versions the WLAN stick works fine. 

It looks like the r8188eu driver isn't up to date to use the kernel's NL80211 interface. This is needed to use SAE (aka WPA3).

We have disabled the legacy layer in the last Core Update:

> https://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=55209df391e11bf97ec1cda2dbf90aa365c75761

I do not see how we can re-enable this without breaking WPA3.

Would you be up for trying the development kernel?
Comment 7 itoss 2021-03-24 11:13:40 UTC
OK :/ - which USB WLAN card do you recomment ? 

This one works with update 145 (latest in the IP Fire WLAN list ) : 

MS1559 USB WiFi
Comment 8 Michael Tremer 2021-03-24 11:54:13 UTC
(In reply to itoss from comment #7)
> OK :/ - which USB WLAN card do you recomment ? 

They are all bad, so I wouldn't really recommend any.

However, I would recommend trying the new kernel. If that doesn't work we might need to create a blacklist for modules that do not support the most recent API.
Comment 9 itoss 2021-03-24 12:28:20 UTC
is the new kernel in the latest ipfire installfile located here ? : https://www.ipfire.org/download/ipfire-2.25-core154

regards
Comment 10 Michael Tremer 2021-04-01 10:16:31 UTC
No, you can find it here:

> https://people.ipfire.org/~arne_f/highly-experimental/kernel-5.10/
Comment 11 itoss 2021-12-05 23:41:32 UTC
can you recommend me an USB Wlan card/stick which is running with the actual IP Fire Software ?
Comment 12 Michael Tremer 2021-12-06 16:06:06 UTC
> https://wiki.ipfire.org/hardware/networking

Here is a list with a selection of what is supported by IPFire.
Comment 13 itoss 2021-12-08 15:25:29 UTC
In this list the latest IP Fire core version for USB WLAN is 145. Actually available Version is 161. 

RTL8192CU Device is listed for using later than version 100 cores - but does this include the changes later than core 153 ?

This device does not work : https://www.amazon.de/gp/product/B0088TKTY2/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1

Can You tell me the core 161 specs or any tipps for running an usb WLAN Stick ( Kernel supported ? firmwareinstallation available in ipfire e.g. ? )

regards
Comment 14 Michael Tremer 2021-12-09 18:04:31 UTC
(In reply to itoss from comment #13)
> In this list the latest IP Fire core version for USB WLAN is 145. Actually
> available Version is 161. 

If something worked once it should continue working.

> RTL8192CU Device is listed for using later than version 100 cores - but does
> this include the changes later than core 153 ?

We have a driver for this. The vendor is quite irrelevant. What you care about is the chipset and occasionally the hardware revision.

> This device does not work :
> https://www.amazon.de/gp/product/B0088TKTY2/
> ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1

It has quite bad reviews even with Windows.

> Can You tell me the core 161 specs or any tipps for running an usb WLAN
> Stick ( Kernel supported ? firmwareinstallation available in ipfire e.g. ? )

Does it have to be USB?