0

Trying to setup wired wpa_supplicant connection but seems it tries to use wireless drivers: "Failed to initialize driver 'nl80211" Is it that i can't find the correct network driver or what could make it choose the wrong one?

Is an embedded system with custom linux build running 5.10.62 kernal and built with buildroot. Has worked before with 4.13 kernal.

full output from when trying to run:

$ sudo wpa_supplicant -ddK -D wired -i eth1 -c /etc/wpa_supplicant.conf

wpa_supplicant v2.10
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'wired' 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'
ctrl_interface_group='root'
eapol_version=2
ap_scan=0
Line: 5 - start of a new network block
key_mgmt: 0x8
eap methods - hexdump(len=16): 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=6):
     74 6f 62 69 61 73                                 tobias
phase1 - hexdump_ascii(len=0):
ca_cert - hexdump_ascii(len=17):
     2f 68 6f 6d 65 2f 74 6c 61 62 2f 63 61 2e 63 72   /home/tlab/ca.cr
     74                                                t
client_cert - hexdump_ascii(len=21):
     2f 68 6f 6d 65 2f 74 6c 61 62 2f 63 6c 69 65 6e   /home/tlab/clien
     74 2e 63 72 74                                    t.crt
private_key - hexdump_ascii(len=21):
     2f 68 6f 6d 65 2f 74 6c 61 62 2f 63 6c 69 65 6e   /home/tlab/clien
     74 2e 6b 65 79                                    t.key
private_key_passwd - hexdump_ascii(len=8):
     77 68 61 74 65 76 65 72                           whatever
eapol_flags=0 (0x0)
Priority group 0
   id=0 ssid=''
driver_wired_init_common: Added multicast membership with packet socket
Add interface eth1 to a new radio N/A
eth1: Own MAC address: 94:1d:1c:01:01:95
eth1: RSN: flushing PMKID list in the driver
eth1: Setting scan request: 0.100000 sec
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
eth1: WPS: UUID based on MAC address: b02840c0-5dc3-559d-9779-706a03fb7584
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ctrl_interface_group=0 (from group name 'root')
eth1: Added interface eth1
eth1: State: DISCONNECTED -> DISCONNECTED
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'
eth1: Removing interface eth1
eth1: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=DISCONNECTED
TDLS: Tear down peers
eth1: State: DISCONNECTED -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
QM: Clear all active DSCP policies
eth1: CTRL-EVENT-DSCP-POLICY clear_all
eth1: WPA: Clear old PMK and PTK
eth1: Cancelling scan request
eth1: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
Off-channel: Action frame sequence done notification: pending_action_tx=(nil) drv_offchan_tx=0 action_tx_wait_time=0 off_channel_freq=0 roc_waiting_drv_freq=0
QM: Clear all active DSCP policies
eth1: CTRL-EVENT-DSCP-POLICY clear_all
Remove interface eth1 from radio
Remove radio
eth1: CTRL-EVENT-TERMINATING

1 Answer 1

0

Solved it - I had accidentally removed too much from the Linux build config, I re-added the packages listed below and then it worked:

+CONFIG_WIRELESS=y
+CONFIG_WEXT_CORE=y
+CONFIG_WEXT_PROC=y
+CONFIG_CFG80211=y
+CONFIG_NL80211_TESTMODE=y

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .