You are not logged in.

#1 2019-11-01 23:00:20

Cbhihe
Member
Registered: 2017-04-09
Posts: 78

[SOLVED] wpa_supplicant failed to initialize wifi driver interface

.... in the early stage of an Arch Linux install as dual boot on a machine with pre-installed Windows 10.
I work from a USB drive with `archiso` kernel 4.12.  (using 4.12 because I can't make an up-to-date usb boot drive right now.)
I am following the Installation guide. (disabled UEFI secure boot and fast-startup on Windows)

I worked exclusively from the root shell and have not chrooted yet to the newly installed environment.
Whenever I try to use `wpa_supplicant` to obtain authentication, it fails. I have seen this in many posts inside and outside the Arch forum and after a whole very long day of probing, I don't understand what's wrong.

I built the wpa_supplicant.conf file with `wpa_cli` following the Arch wiki and adding `ctrl_interface_group=wheel` and `ap_scan=1` after trying to authenticate without them.
Scanning available wifi networks was no problem.

 # cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
ap_scan=1
network={
	ssid="XXXXXXXXXXX_5G"
	psk="YYYYYYYYYYY"
}
 # wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Could not set interface 'p2p-dev-wlp2s0' UP
nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
p2p-dev-wlp2s0: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface

I've also tried to modify the above command by specifying the driver:

 # wpa_supplicant -B -i wlp2s0 -D nl80211 -c /etc/wpa_supplicant/wpa_supplicant.conf

with exact same results.

The following ended up with a timeout.

# dhcpcd wlp2s0
wlp2s0: waiting for carrier
timed out
dhcpcd exited

What I did then was to check:

 # lspci -kvnn | sed -n '/Network/,/^$/ p'
02:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev 83)
Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8170]
Flags: bus master, fast devsel, latency 0, IRQ 48
Memory at f0400000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [40] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 30-3a-64-ff-ff-ee-8b-80
Capabilities: [14c] Latency Tolerance Reporting
Capabilities: [154] Vendor Specific Information: ID=cafe Rev=1 Len=014 <?>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
#
# dmesg | grep iwlwifi 
[   12.243022] iwlwifi 0000:02:00.0: enabling device (0000 -> 0002)
[   13.251352] iwlwifi 0000:02:00.0: loaded firmware version 17.459231.0 op_mode iwlmvm
[   13.464236] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 3160, REV=0x164
[   13.466564] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[   13.467084] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
[   13.623615] iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0
[ 6710.127204] iwlwifi 0000:02:00.0: L1 Enabled - LTR Enabled
....
#
# iwconfig
wlp2s0    IEEE 802.11  ESSID:off/any  
              Mode:Managed  Frequency:5.18 GHz  Access Point: Not-Associated   
              Tx-Power=20 dBm   
              Retry short limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:on
enp0s25  no wireless extensions.
lo           no wireless extensions.
#
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:6b:23:2d:a0:81 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 30:3a:64:ee:8b:80 brd ff:ff:ff:ff:ff:ff
#
# systemctl --type=service
   UNIT                                                LOAD   ACTIVE SUB     DESCRIPTION                                                       
  dbus.service                                        loaded active running D-Bus System Message Bus                                          
● dhcpcd@enp0s25.service                              loaded failed failed  dhcpcd on enp0s25                                                 
● dhcpcd@wlp2s0.service                               loaded failed failed  dhcpcd on wlp2s0                                                  
  getty@tty1.service                                  loaded active running Getty on tty1                                                     
  haveged.service                                     loaded active running Entropy Harvesting Daemon                                         
  kmod-static-nodes.service                           loaded active exited  Create list of required static device nodes for the current kernel
  ldconfig.service                                    loaded active exited  Rebuild Dynamic Linker Cache                                      
  pacman-init.service                                 loaded active exited  Initializes Pacman keyring                                        
  systemd-backlight@backlight:intel_backlight.service loaded active exited  Load/Save Screen Backlight Brightness of backlight:intel_backlight
  systemd-journal-catalog-update.service              loaded active exited  Rebuild Journal Catalog                                           
  systemd-journal-flush.service                       loaded active exited  Flush Journal to Persistent Storage                               
  systemd-journald.service                            loaded active running Journal Service                                                   
  systemd-logind.service                              loaded active running Login Service                                                     
  systemd-random-seed.service                         loaded active exited  Load/Save Random Seed                                             
  systemd-remount-fs.service                          loaded active exited  Remount Root and Kernel File Systems                              
  systemd-sysctl.service                              loaded active exited  Apply Kernel Variables                                            
  systemd-sysusers.service                            loaded active exited  Create System Users                                               
  systemd-timesyncd.service                           loaded active running Network Time Synchronization                                      
  systemd-tmpfiles-setup-dev.service                  loaded active exited  Create Static Device Nodes in /dev                                
  systemd-tmpfiles-setup.service                      loaded active exited  Create Volatile Files and Directories                             
  systemd-udev-trigger.service                        loaded active exited  udev Coldplug all Devices                                         
  systemd-udevd.service                               loaded active running udev Kernel Device Manager                                        
  systemd-update-done.service                         loaded active exited  Update is Completed                                               
  systemd-update-utmp.service                         loaded active exited  Update UTMP about System Boot/Shutdown                            
  systemd-user-sessions.service                       loaded active exited  Permit User Sessions                                              
  user@0.service                                      loaded active running User Manager for UID 0                                            
  wpa_supplicant.service                              loaded active running WPA supplicant                                                    

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

27 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Again I tried authenticating with `wpa_supplicant.service` being active or stopped.

I suspect thia could bw a driver/firmware prbm.  Any help welcome.

Last edited by Cbhihe (2019-11-02 12:14:57)


I like strawberries, therefore I'm not a bot.
If you think good IT is expensive, then you probably cannot afford _bad_ IT.

Offline

#2 2019-11-02 08:57:42

Cbhihe
Member
Registered: 2017-04-09
Posts: 78

Re: [SOLVED] wpa_supplicant failed to initialize wifi driver interface

and also, although I already saw that `iwlwifi-3160-17.ucode` was loaded:

 # ls /lib/firmare/iwlwifi-3160*
iwlwifi-3160-10.ucode
iwlwifi-3160-12.ucode
iwlwifi-3160-13.ucode
iwlwifi-3160-16.ucode
iwlwifi-3160-17.ucode
iwlwifi-3160-7.ucode
iwlwifi-3160-8.ucode
iwlwifi-3160-9.ucode

... of course I checked loaded modules:

 # lsmod | grep -e iw 
Module                  Size     Used by
iwlmvm                294912  0
mac80211              688128  1 iwlmvm
iwlwifi               208896  1 iwlmvm
cfg80211              520192  3 iwlmvm,iwlwifi,mac80211
led_class              16384  3 iwlmvm,input_leds,toshiba_acpi 

the which seems to fit:

 # ls -AF /usr/lib/modules/$(uname -r)/kernel/drivers/net/wireless/intel/iwlwifi
dvm/  iwlwifi.ko.gz  mvm/ 

Last edited by Cbhihe (2019-11-02 09:55:40)


I like strawberries, therefore I'm not a bot.
If you think good IT is expensive, then you probably cannot afford _bad_ IT.

Offline

#3 2019-11-02 12:13:24

Cbhihe
Member
Registered: 2017-04-09
Posts: 78

Re: [SOLVED] wpa_supplicant failed to initialize wifi driver interface

.. rebooted and tried again for the nth time. This time I did not use `wpa_cli`.  Instead I punched in  `wpa_supplicant.conf` by hand:

 # cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
ap_scan=1
network={
	ssid="XXXXXXXXXXX_5G"
	psk="YYYYYYYYYYY"
}

followed by:

 # wpa_supplicant -B -i wlp2s0 -D nl80211 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
 #
 # dhcpcd wlp2s0
DUID 00:01:00:01:25:50:36:7b:30:3a:64:ee:8b:80
wlp2s0: IAID 64:ee:8b:80
wlp2s0: solliciting an IPv6 router
wlp2s0: Router advertisement from f280::daa7:56ff:fe58:7061
wlp2s0: invalid prefix in RA
wlp2s0: requesting DHCPv6 information
wlp2s0: solliciting a DHCP lease
wlp2s0: offered 192.168.1.137 from 192.168.1.10
wlp2s0: ....
wlp2s0: adding default route via 192.168.1.10
forked to background, child pid 1143
 #
 # ping - c 2 8.8.8.8
  [... successful/expected output]

SOLVED ! I have no idea why none of my n-1 prior attempts worked. roll roll

Last edited by Cbhihe (2019-11-02 12:16:53)


I like strawberries, therefore I'm not a bot.
If you think good IT is expensive, then you probably cannot afford _bad_ IT.

Offline

Board footer

Powered by FluxBB