Nixpkgs: Network Manager vs wpa_supplicant

Created on 3 Nov 2015  ·  19Comments  ·  Source: NixOS/nixpkgs

(I cross posted this from the mailing list, as this allows me to actually submit the the debugging output length and edit the information, but if cross posting is disallowed I understand.)

On my new laptop, I've been attempting to install NixOS using the live CD.

My latest problem concerns the WiFi.

Simply put, I tried a bunch of different guides, and tried using wpa_supplicant to connect to a WPA2 encrypted Wifi network.

It didn't work. Then I tried using nm_cli to do the same thing, and it worked instantly!

So here's what succeeded in the end (I can access internet):

nmcli dev wifi connect "TheFishburn" password "#startupaus"

However this did not work:

wpa_supplicant -i wlp6s0 -c <(wpa_passphrase "TheFishburn" "#startupaus")

What would be the reason for Network Manager to work, and yet wpa_supplicant to not work? The Network Manager uses wpa_supplicant in the backend, so it must be performing some magic that I cannot divine.

For more information, here's my system information:

lspci -k:

06:00:0 Network controller: Intel Corporation Wireless 7265 (rev 59)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265
Kernel driver in use: iwlwifi

At bootup I checked the systemctl:

systemctl status wpa_supplicant.service:

● wpa_supplicant.service - WPA supplicant
   Loaded: loaded (/nix/store/kd9pgi9mx3r7cdvwi68xqn4csjkvm59h-wpa_supplicant-2.4/etc/systemd/system/wpa_supplicant.service)
  Drop-In: /nix/store/h4mhqzcbqfj6az0wxgkqh9dpw1hxw2w1-system-units/wpa_supplicant.service.d
           └─overrides.conf
   Active: activating (start) since Tue 2015-11-03 08:20:05 UTC; 9min ago
 Main PID: 916 (wpa_supplicant)
   CGroup: /system.slice/wpa_supplicant.service
           └─916 /nix/store/kd9pgi9mx3r7cdvwi68xqn4csjkvm59h-wpa_supplicant-2.4/sbin//wpa_supplicant -u

Nov 03 08:20:05 nixos wpa_supplicant[916]: Successfully initialized wpa_supplicant
Nov 03 08:20:05 nixos wpa_supplicant[916]: Could not read interface p2p-dev-wlp6s0 flags: No such device

Here is what wpa_supplicant shows when I run the command, the first is non-debugging output, the second is where I have the -d flag on. It seems to run forever, so I just cancel after a while (I also noticed that wpa_cli says that it cannot connect to wpa_supplicant).

Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlp6s0 flags: No such device
nl80211: Could not set interface 'p2p-dev-wlp6s0' UP
nl80211: deinit ifname=p2p-dev-wlp6s0 disabled_11b_rates=0
p2p-dev-wlp6s0: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface
wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn' freq=5745 MHz)
wlp6s0: Trying to associate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn' freq=5745 MHz)
wlp6s0: Associated with 2c:e6:cc:1e:e2:9c
wlp6s0: CTRL-EVENT-DISCONNECTED bssid=2c:e6:cc:1e:e2:9c reason=3 locally_generated=1
wlp6s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn" auth_failures=1 duration=10 reason=WRONG_KEY
wlp6s0: CTRL-EVENT-SSID-REENABLED id=0 ssid="TheFishburn"
wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn' freq=5745 MHz)
wlp6s0: Trying to associate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn' freq=5745 MHz)
wlp6s0: Associated with 2c:e6:cc:1e:e2:9c
wlp6s0: CTRL-EVENT-DISCONNECTED bssid=2c:e6:cc:1e:e2:9c reason=3 locally_generated=1
wlp6s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn" auth_failures=2 duration=23 reason=WRONG_KEY
wlp6s0: Failed to initiate sched scan
wlp6s0: CTRL-EVENT-SSID-REENABLED id=0 ssid="TheFishburn"
wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn' freq=5745 MHz)
wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn" auth_failures=3 duration=46 reason=CONN_FAILED
nl80211: deinit ifname=wlp6s0 disabled_11b_rates=0
wlp6s0: CTRL-EVENT-TERMINATING

Debugging output:

wpa_supplicant v2.4
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlp6s0' conf '/dev/fd/63' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/dev/fd/63' -> '/dev/fd/63'
Reading configuration file '/dev/fd/63'
Priority group 0
   id=0 ssid='TheFishburn'
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-14-72:1
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: use P2P_DEVICE support
nl80211: interface wlp6s0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x2675d20
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0104
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 01 04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=040a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=040b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=040c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=040d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=090a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=090b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=090c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=090d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0409506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=7f506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0801
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 08 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=06
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0a07
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0a11
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0a1a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=1101
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 11 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=1102
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 11 02
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2675d20 match=0505
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 05 05
nl80211: Failed to register Action frame processing - ignore for now
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
nl80211: driver param='(null)'
Add interface wlp6s0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 40 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 160 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: Added 802.11b mode based on 802.11g information
wlp6s0: Own MAC address: 34:02:86:68:d5:17
wpa_driver_nl80211_set_key: ifindex=3 (wlp6s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp6s0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp6s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp6s0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp6s0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp6s0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlp6s0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlp6s0: WPS: UUID based on MAC address: 137545d5-dcf1-5e53-b7ff-7e857e4fadfb
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlp6s0: Added interface wlp6s0
wlp6s0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlp6s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
nl80211: Create interface iftype 10 (P2P_DEVICE)
nl80211: New P2P Device interface p2p-dev-wlp6s0 (0x3) created
Initializing interface 'p2p-dev-wlp6s0' conf '/dev/fd/63' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/dev/fd/63' -> '/dev/fd/63'
Reading configuration file '/dev/fd/63'
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
Could not read interface p2p-dev-wlp6s0 flags: No such device
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-14-72:1
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: use P2P_DEVICE support
nl80211: interface p2p-dev-wlp6s0 in phy phy0
nl80211: Set mode ifindex 0 iftype 10 (P2P_DEVICE)
nl80211: Failed to set interface 0 to mode 10: -22 (Invalid argument)
nl80211: Subscribe to mgmt frames with non-AP handle 0x2693c50
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0409506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=7f506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x2693c50 match=0505
nl80211: Start P2P Device p2p-dev-wlp6s0 (0x3): Device or resource busy
nl80211: Could not set interface 'p2p-dev-wlp6s0' UP
nl80211: deinit ifname=p2p-dev-wlp6s0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Stop P2P Device p2p-dev-wlp6s0 (0x3): Network is down
nl80211: Unsubscribe mgmt frames handle 0x888888888ae1b4d9 (deinit)
nl80211: Delete P2P Device p2p-dev-wlp6s0 (0x3): Success
p2p-dev-wlp6s0: Failed to initialize driver interface
Failed to add interface p2p-dev-wlp6s0
p2p-dev-wlp6s0: Cancelling scan request
p2p-dev-wlp6s0: Cancelling authentication timeout
P2P: Failed to add P2P Device interface
P2P: Failed to enable P2P Device interface
random: Got 20/20 bytes from /dev/random
wlp6s0: Starting delayed sched scan
wlp6s0: Use normal scan instead of sched_scan for initial scans (normal_scans=0)
wlp6s0: Setting scan request: 0.000000 sec
wlp6s0: State: DISCONNECTED -> SCANNING
wlp6s0: Starting AP scan for wildcard SSID
wlp6s0: Add radio work 'scan'@0x2694260
wlp6s0: First radio work item in the queue - schedule start immediately
wlp6s0: Starting radio work 'scan'@0x2694260 after 0.000002 second wait
wlp6s0: nl80211: scan request
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp6s0
wlp6s0: nl80211: Scan trigger
wlp6s0: Event SCAN_STARTED (47) received
wlp6s0: Own scan request started a scan in 0.000033 seconds
nl80211: Drv Event 78 (NL80211_CMD_SCHED_SCAN_STOPPED) received for wlp6s0
wlp6s0: nl80211: Sched scan stopped
wlp6s0: Event SCHED_SCAN_STOPPED (36) received
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=3 ifname=wlp6s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp6s0
wlp6s0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720 5745 5765 5785 5805 5825
wlp6s0: Event SCAN_RESULTS (3) received
wlp6s0: Scan completed in 4.615942 seconds
nl80211: Received scan results (64 BSSes)
wlp6s0: BSS: Start scan result update 1
wlp6s0: BSS: Add new id 0 BSSID 00:25:9c:13:58:0c SSID 'wattdev5'
wlp6s0: BSS: Add new id 1 BSSID 2c:e6:cc:1e:e2:9c SSID 'TheFishburn'
wlp6s0: BSS: Add new id 2 BSSID 2c:e6:cc:5e:e2:9c SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 3 BSSID 2c:e6:cc:9e:e2:97 SSID ''
wlp6s0: BSS: Add new id 4 BSSID c0:8a:de:1f:f3:3c SSID 'TheFishburn'
wlp6s0: BSS: Add new id 5 BSSID c0:8a:de:5f:f3:3c SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 6 BSSID c0:8a:de:9f:f3:37 SSID ''
wlp6s0: BSS: Add new id 7 BSSID 14:cc:20:65:a3:42 SSID 'wattdemo'
wlp6s0: BSS: Add new id 8 BSSID 14:cc:20:60:92:88 SSID 'OPTUSDN0DDA9A'
wlp6s0: BSS: Add new id 9 BSSID 60:a4:4c:f3:44:3c SSID 'quicksand_5'
wlp6s0: BSS: Add new id 10 BSSID 2c:e6:cc:5e:e2:98 SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 11 BSSID 2c:e6:cc:1e:e2:98 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 12 BSSID c0:8a:de:1f:f3:38 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 13 BSSID c0:8a:de:5f:f3:38 SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 14 BSSID 00:25:9c:13:58:0b SSID 'wattdev'
wlp6s0: BSS: Add new id 15 BSSID 30:b5:c2:c0:be:e6 SSID 'wattcost'
wlp6s0: BSS: Add new id 16 BSSID 54:3d:37:6a:8b:93 SSID 'island-2A8B90'
wlp6s0: BSS: Add new id 17 BSSID 60:a4:4c:f3:44:39 SSID 'qguest'
wlp6s0: BSS: Add new id 18 BSSID 60:a4:4c:f3:44:38 SSID 'quicksand_2.4'
wlp6s0: BSS: Add new id 19 BSSID 54:3d:37:2a:8b:98 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 20 BSSID 54:3d:37:6a:8b:98 SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 21 BSSID 54:3d:37:2a:8b:9c SSID 'TheFishburn'
wlp6s0: BSS: Add new id 22 BSSID 54:3d:37:6a:8b:9c SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 23 BSSID 54:3d:37:aa:8b:9c SSID 'Stitch'
wlp6s0: BSS: Add new id 24 BSSID c0:8a:de:1f:ba:18 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 25 BSSID c0:8a:de:5f:ba:18 SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 26 BSSID 30:91:8f:79:a2:a7 SSID 'Satellite'
wlp6s0: BSS: Add new id 27 BSSID 00:60:64:e8:45:61 SSID 'NetComm 4229'
wlp6s0: BSS: Add new id 28 BSSID c0:8a:de:5f:b8:d8 SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 29 BSSID 2c:5d:93:53:68:e8 SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 30 BSSID c0:8a:de:1f:b8:d8 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 31 BSSID 2c:5d:93:13:68:e8 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 32 BSSID ac:9e:17:6a:a6:98 SSID 'Powerhouse2015'
wlp6s0: BSS: Add new id 33 BSSID c4:3d:c7:be:74:b1 SSID 'JELENI'
wlp6s0: BSS: Add new id 34 BSSID 28:c6:8e:05:52:00 SSID 'SYDOFFICE'
wlp6s0: BSS: Add new id 35 BSSID ac:f1:df:16:a4:64 SSID 'HideYoKidsHideYoWifi'
wlp6s0: BSS: Add new id 36 BSSID c4:01:7c:14:1b:68 SSID 'FB-Mobile2.4GHz'
wlp6s0: BSS: Add new id 37 BSSID c4:01:7c:54:1b:68 SSID 'dungeon'
wlp6s0: BSS: Add new id 38 BSSID c4:3d:c7:be:74:b2 SSID 'JELENI2'
wlp6s0: BSS: Add new id 39 BSSID c0:8a:de:1f:ba:1c SSID 'TheFishburn'
wlp6s0: BSS: Add new id 40 BSSID c0:8a:de:1f:b8:dc SSID 'TheFishburn'
wlp6s0: BSS: Add new id 41 BSSID c0:8a:de:5f:b8:dc SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 42 BSSID c0:8a:de:9f:b8:d7 SSID ''
wlp6s0: BSS: Add new id 43 BSSID 2c:5d:93:13:68:ec SSID 'TheFishburn'
wlp6s0: BSS: Add new id 44 BSSID 2c:5d:93:53:68:ec SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 45 BSSID c0:8a:de:9f:ba:17 SSID ''
wlp6s0: BSS: Add new id 46 BSSID c0:8a:de:5f:ba:1c SSID 'Events@Fishburners'
wlp6s0: BSS: Add new id 47 BSSID c4:01:7c:54:1b:6c SSID 'dungeon'
wlp6s0: BSS: Add new id 48 BSSID 54:3d:37:ac:25:f7 SSID ''
wlp6s0: BSS: Add new id 49 BSSID c4:01:7c:14:1b:6c SSID 'TheFishburn'
wlp6s0: BSS: Add new id 50 BSSID ac:f1:df:16:a4:65 SSID 'D-Link DSL-2870B 5GHz'
wlp6s0: BSS: Add new id 51 BSSID 4e:5e:0c:72:03:b7 SSID 'GrubbyGuest'
wlp6s0: BSS: Add new id 52 BSSID 4c:5e:0c:72:03:b7 SSID 'Grubby'
wlp6s0: BSS: Add new id 53 BSSID 88:ce:fa:9c:a0:c0 SSID 'Kaydo'
wlp6s0: BSS: Add new id 54 BSSID 40:18:b1:f6:ba:14 SSID 'AG-WIFI'
wlp6s0: BSS: Add new id 55 BSSID 88:e3:ab:55:5b:3b SSID 'EVIL-MINIONS'
wlp6s0: BSS: Add new id 56 BSSID 28:c6:8e:5f:ff:32 SSID 'NETGEAR69'
wlp6s0: BSS: Add new id 57 BSSID 44:94:fc:11:60:66 SSID 'Remember Creative'
wlp6s0: BSS: Add new id 58 BSSID bc:f6:85:c2:a2:6e SSID 'DodoJR'
wlp6s0: BSS: Add new id 59 BSSID 40:18:b1:91:47:14 SSID 'AG-WIFI'
wlp6s0: BSS: Add new id 60 BSSID 6c:c2:17:57:9a:75 SSID 'HP-Print-75-Officejet Pro 8610'
wlp6s0: BSS: Add new id 61 BSSID 9c:1c:12:86:a4:a0 SSID 'UTS-WPA'
wlp6s0: BSS: Add new id 62 BSSID 38:20:56:a1:05:10 SSID 'MAA-Private'
wlp6s0: BSS: Add new id 63 BSSID 28:37:37:27:f7:07 SSID 'BustedWiFiOpen'
BSS: last_scan_res_used=64/64
wlp6s0: New scan results available (own=1 ext=0)
WPS: AP 14:cc:20:65:a3:42 type 0 added
WPS: AP 14:cc:20:60:92:88 type 0 added
WPS: AP 30:b5:c2:c0:be:e6 type 0 added
WPS: AP 60:a4:4c:f3:44:38 type 0 added
WPS: AP 00:60:64:e8:45:61 type 0 added
WPS: AP c4:3d:c7:be:74:b1 type 0 added
WPS: AP ac:f1:df:16:a4:64 type 0 added
WPS: AP c4:3d:c7:be:74:b2 type 0 added
WPS: AP ac:f1:df:16:a4:65 type 0 added
WPS: AP 88:ce:fa:9c:a0:c0 type 0 added
WPS: AP 28:c6:8e:5f:ff:32 type 0 added
WPS: AP 44:94:fc:11:60:66 type 0 added
WPS: AP bc:f6:85:c2:a2:6e type 0 added
WPS: AP[0] 14:cc:20:65:a3:42 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 14:cc:20:60:92:88 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[2] 30:b5:c2:c0:be:e6 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[3] 60:a4:4c:f3:44:38 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[4] 00:60:64:e8:45:61 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[5] c4:3d:c7:be:74:b1 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[6] ac:f1:df:16:a4:64 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[7] c4:3d:c7:be:74:b2 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[8] ac:f1:df:16:a4:65 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[9] 88:ce:fa:9c:a0:c0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[10] 28:c6:8e:5f:ff:32 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[11] 44:94:fc:11:60:66 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[12] bc:f6:85:c2:a2:6e type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlp6s0: Radio work 'scan'@0x2694260 done in 4.617009 seconds
wlp6s0: Selecting BSS from priority group 0
wlp6s0: 0: 00:25:9c:13:58:0c ssid='wattdev5' wpa_ie_len=22 rsn_ie_len=20 caps=0x31 level=-63
wlp6s0:    skip - SSID mismatch
wlp6s0: 1: 2c:e6:cc:1e:e2:9c ssid='TheFishburn' wpa_ie_len=0 rsn_ie_len=20 caps=0x511 level=-49
wlp6s0:    selected based on RSN IE
wlp6s0:    selected BSS 2c:e6:cc:1e:e2:9c ssid='TheFishburn'
wlp6s0: Considering connect request: reassociate: 0  selected: 2c:e6:cc:1e:e2:9c  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00  wpa_state: SCANNING  ssid=0x2675eb0  current_ssid=(nil)
wlp6s0: Request association with 2c:e6:cc:1e:e2:9c
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=13): 00 0b 54 68 65 46 69 73 68 62 75 72 6e
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=3): 03 01 95
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=6): 05 04 00 01 00 04
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=14): 07 0c 41 55 20 24 04 17 34 04 1e 95 04 24
WPA: WMM Parameter Element - hexdump(len=24): 00 50 f2 02 01 01 8b 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=24): 3d 16 95 05 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RSN IE in EAPOL-Key - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlp6s0: Add radio work 'sme-connect'@0x2694260
wlp6s0: First radio work item in the queue - schedule start immediately
wlp6s0: Starting radio work 'sme-connect'@0x2694260 after 0.000004 second wait
wlp6s0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=(nil) try_opportunistic=0
RSN: Search for BSSID 2c:e6:cc:1e:e2:9c
RSN: No PMKSA cache entry found
wlp6s0: RSN: using IEEE 802.11i/D9.0
wlp6s0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
wlp6s0: WPA: Selected mgmt group cipher 32
wlp6s0: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlp6s0: WPA: using GTK CCMP
wlp6s0: WPA: using PTK CCMP
wlp6s0: WPA: using KEY_MGMT WPA-PSK
wlp6s0: WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
RRM: Determining whether RRM can be used - device support: 0x0
RRM: No RRM in network
wlp6s0: Cancelling scan request
wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn' freq=5745 MHz)
wlp6s0: State: SCANNING -> AUTHENTICATING
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
wlp6s0: Determining shared radio frequencies (max len 1)
wlp6s0: Shared frequencies (len=0): completed iteration
nl80211: Authenticate (ifindex=3)
  * bssid=2c:e6:cc:1e:e2:9c
  * freq=5745
  * SSID - hexdump_ascii(len=11):
     54 68 65 46 69 73 68 62 75 72 6e                  TheFishburn     
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 0
nl80211: Authentication request send successfully
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp6s0
nl80211: New station 2c:e6:cc:1e:e2:9c
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp6s0
wlp6s0: nl80211: Scan trigger
wlp6s0: Event SCAN_STARTED (47) received
wlp6s0: External program started a scan
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp6s0
wlp6s0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720 5745 5765 5785 5805 5825
wlp6s0: Event SCAN_RESULTS (3) received
wlp6s0: Scan completed in 4.919561 seconds
nl80211: Received scan results (64 BSSes)
wlp6s0: BSS: Start scan result update 2
wlp6s0: BSS: Add new id 64 BSSID 40:18:b1:f6:ba:16 SSID 'ZOVA'
BSS: last_scan_res_used=64/64
wlp6s0: New scan results available (own=0 ext=1)
wlp6s0: Do not use results from externally requested scan operation for network selection
RTM_NEWLINK: ifi_index=3 ifname=wlp6s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
wlp6s0: SME: Authentication timeout
wpa_driver_nl80211_deauthenticate(addr=2c:e6:cc:1e:e2:9c reason_code=3)
wlp6s0: Radio work 'sme-connect'@0x2694260 done in 5.008148 seconds
Added BSSID 2c:e6:cc:1e:e2:9c into blacklist
wlp6s0: Another BSS in this ESS has been seen; try it next
BSSID 2c:e6:cc:1e:e2:9c blacklist count incremented to 2
wlp6s0: Blacklist count 1 --> request scan in 100 ms
wlp6s0: Setting scan request: 0.100000 sec
wlp6s0: State: AUTHENTICATING -> DISCONNECTED
nl80211: Set wlp6s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp6s0
nl80211: Delete station 2c:e6:cc:1e:e2:9c
nl80211: Drv Event 39 (NL80211_CMD_DEAUTHENTICATE) received for wlp6s0
nl80211: Deauthenticate event
nl80211: Ignore deauth event triggered due to own deauth request
wlp6s0: State: DISCONNECTED -> SCANNING
wlp6s0: Starting AP scan for wildcard SSID
wlp6s0: Optimize scan based on previously generated frequency list
wlp6s0: Add radio work 'scan'@0x2694260
wlp6s0: First radio work item in the queue - schedule start immediately
wlp6s0: Starting radio work 'scan'@0x2694260 after 0.000004 second wait
wlp6s0: nl80211: scan request
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp6s0
wlp6s0: nl80211: Scan trigger
wlp6s0: Event SCAN_STARTED (47) received
wlp6s0: Own scan request started a scan in 0.000011 seconds
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp6s0
wlp6s0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 5300 5260 5240 5200
wlp6s0: Event SCAN_RESULTS (3) received
wlp6s0: Scan completed in 0.600452 seconds
nl80211: Received scan results (65 BSSes)
wlp6s0: BSS: Start scan result update 3
wlp6s0: BSS: Add new id 65 BSSID 54:3d:37:aa:8b:97 SSID ''
BSS: last_scan_res_used=65/128
wlp6s0: New scan results available (own=1 ext=0)
WPS: AP[0] 14:cc:20:65:a3:42 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 14:cc:20:60:92:88 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[2] 30:b5:c2:c0:be:e6 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[3] 60:a4:4c:f3:44:38 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[4] 00:60:64:e8:45:61 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[5] c4:3d:c7:be:74:b1 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[6] ac:f1:df:16:a4:64 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[7] c4:3d:c7:be:74:b2 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[8] ac:f1:df:16:a4:65 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[9] 88:ce:fa:9c:a0:c0 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[10] 28:c6:8e:5f:ff:32 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[11] 44:94:fc:11:60:66 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[12] bc:f6:85:c2:a2:6e type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlp6s0: Radio work 'scan'@0x2694260 done in 0.601065 seconds
wlp6s0: Selecting BSS from priority group 0
wlp6s0: 0: 00:25:9c:13:58:0c ssid='wattdev5' wpa_ie_len=22 rsn_ie_len=20 caps=0x31 level=-62
wlp6s0:    skip - SSID mismatch
wlp6s0: 1: 2c:e6:cc:9e:e2:97 ssid='' wpa_ie_len=0 rsn_ie_len=20 caps=0x511 level=-47
wlp6s0:    skip - SSID not known
wlp6s0: 2: 2c:e6:cc:1e:e2:9c ssid='TheFishburn' wpa_ie_len=0 rsn_ie_len=20 caps=0x511 level=-48
wlp6s0:    skip - blacklisted (count=2 limit=0)
wlp6s0: 3: 2c:e6:cc:5e:e2:9c ssid='Events@Fishburners' wpa_ie_len=0 rsn_ie_len=20 caps=0x511 level=-48
wlp6s0:    skip - SSID mismatch
wlp6s0: 4: c0:8a:de:1f:f3:3c ssid='TheFishburn' wpa_ie_len=0 rsn_ie_len=20 caps=0x411 level=-56
wlp6s0:    selected based on RSN IE
wlp6s0:    selected BSS c0:8a:de:1f:f3:3c ssid='TheFishburn'
wlp6s0: Considering connect request: reassociate: 0  selected: c0:8a:de:1f:f3:3c  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00  wpa_state: SCANNING  ssid=0x2675eb0  current_ssid=0x2675eb0
wlp6s0: Request association with c0:8a:de:1f:f3:3c
wlp6s0: Re-association to the same ESS
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=13): 00 0b 54 68 65 46 69 73 68 62 75 72 6e
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=3): 03 01 3c
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=14): 07 0c 41 55 20 24 04 17 34 04 1e 95 04 24
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=24): 3d 16 3c 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: WMM Parameter Element - hexdump(len=24): 00 50 f2 02 01 01 82 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
WPA: RSN IE in EAPOL-Key - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlp6s0: Add radio work 'sme-connect'@0x2694260
wlp6s0: First radio work item in the queue - schedule start immediately
RSN: Ignored PMKID candidate without preauth flag
RSN: Ignored PMKID candidate without preauth flag
RSN: Ignored PMKID candidate without preauth flag
RSN: Ignored PMKID candidate without preauth flag
RSN: Ignored PMKID candidate without preauth flag
RSN: Ignored PMKID candidate without preauth flag
RSN: Ignored PMKID candidate without preauth flag
wlp6s0: Starting radio work 'sme-connect'@0x2694260 after 0.000014 second wait
wlp6s0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=0x2675eb0 try_opportunistic=0
RSN: Search for BSSID c0:8a:de:1f:f3:3c
RSN: No PMKSA cache entry found
wlp6s0: RSN: using IEEE 802.11i/D9.0
wlp6s0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
wlp6s0: WPA: Selected mgmt group cipher 32
wlp6s0: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlp6s0: WPA: using GTK CCMP
wlp6s0: WPA: using PTK CCMP
wlp6s0: WPA: using KEY_MGMT WPA-PSK
wlp6s0: WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
RRM: Determining whether RRM can be used - device support: 0x0
RRM: No RRM in network
wlp6s0: Cancelling scan request
wlp6s0: SME: Trying to authenticate with c0:8a:de:1f:f3:3c (SSID='TheFishburn' freq=5300 MHz)
wlp6s0: State: SCANNING -> AUTHENTICATING
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
wlp6s0: Determining shared radio frequencies (max len 1)
wlp6s0: Shared frequencies (len=0): completed iteration
nl80211: Authenticate (ifindex=3)
  * bssid=c0:8a:de:1f:f3:3c
  * freq=5300
  * SSID - hexdump_ascii(len=11):
     54 68 65 46 69 73 68 62 75 72 6e                  TheFishburn     
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 0
nl80211: Authentication request send successfully
RTM_NEWLINK: ifi_index=3 ifname=wlp6s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp6s0
nl80211: New station c0:8a:de:1f:f3:3c
nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlp6s0
nl80211: Authenticate event
wlp6s0: Event AUTH (11) received
wlp6s0: SME: Authentication response: peer=c0:8a:de:1f:f3:3c auth_type=0 auth_transaction=2 status_code=0
wlp6s0: set_disable_max_amsdu: -1
wlp6s0: set_ampdu_factor: -1
wlp6s0: set_ampdu_density: -1
wlp6s0: set_disable_ht40: 0
wlp6s0: set_disable_sgi: 0
wlp6s0: set_disable_ldpc: 0
wlp6s0: Trying to associate with c0:8a:de:1f:f3:3c (SSID='TheFishburn' freq=5300 MHz)
wlp6s0: State: AUTHENTICATING -> ASSOCIATING
nl80211: Set wlp6s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
WPA: set own WPA/RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
nl80211: Associate (ifindex=3)
  * bssid=c0:8a:de:1f:f3:3c
  * freq=5300
  * SSID - hexdump_ascii(len=11):
     54 68 65 46 69 73 68 62 75 72 6e                  TheFishburn     
  * IEs - hexdump(len=32): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 7f 08 00 00 00 00 01 00 00 40
  * WPA Versions 0x2
  * pairwise=0xfac04
  * group=0xfac04
  * akm=0xfac02
  * htcaps - hexdump(len=26): 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  * htcaps_mask - hexdump(len=26): 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  * vhtcaps - hexdump(len=12): 00 00 00 00 00 00 00 00 00 00 00 00
  * vhtcaps_mask - hexdump(len=12): 00 00 00 00 00 00 00 00 00 00 00 00
nl80211: Association request send successfully
l2_packet_receive: src=c0:8a:de:1f:f3:3c len=99
wlp6s0: RX EAPOL from c0:8a:de:1f:f3:3c
wlp6s0: Not associated - Delay processing of received EAPOL frame (state=ASSOCIATING bssid=00:00:00:00:00:00)
nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlp6s0
nl80211: Associate event
wlp6s0: Event ASSOC (0) received
wlp6s0: Association info event
resp_ies - hexdump(len=158): 01 08 8c 12 98 24 b0 48 60 6c dd 18 00 50 f2 02 01 01 82 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 1e 00 90 4c 33 ef 01 03 ff ff ff 00 00 00 00 00 00 00 00 00 20 00 00 00 00 04 06 46 e7 0d 00 2d 1a ef 01 03 ff ff ff 00 00 00 00 00 00 00 00 00 20 00 00 00 00 04 06 46 e7 0d 00 dd 1a 00 90 4c 34 3c 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 3c 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 08 00 13 92 01 00 01 05 00
WPA: WMM Parameter Element - hexdump(len=24): 00 50 f2 02 01 01 82 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
WPA: Unrecognized EAPOL-Key Key Data IE - hexdump(len=24): 3d 16 3c 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wlp6s0: freq=5300 MHz
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
wlp6s0: State: ASSOCIATING -> ASSOCIATED
nl80211: Set wlp6s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlp6s0: Associated to a new BSS: BSSID=c0:8a:de:1f:f3:3c
wlp6s0: Associated with c0:8a:de:1f:f3:3c
wlp6s0: WPA: Association event - clear replay counter
wlp6s0: WPA: Clear old PTK
TDLS: Remove peers on association
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
wlp6s0: Setting authentication timeout: 10 sec 0 usec
wlp6s0: Cancelling scan request
wlp6s0: Process pending EAPOL frame that was received just before association notification
wlp6s0: RX EAPOL from c0:8a:de:1f:f3:3c
wlp6s0: Setting authentication timeout: 10 sec 0 usec
wlp6s0: IEEE 802.1X RX: version=2 type=3 length=95
wlp6s0:   EAPOL-Key type=2
wlp6s0:   key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
wlp6s0:   key_length=16 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): 4b a2 4f e5 ee ed c3 18 a9 c3 12 bd 42 7c df bd 92 79 c7 61 6d 5b 88 d4 5f 2d 25 47 df 71 68 bb
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wlp6s0: State: ASSOCIATED -> 4WAY_HANDSHAKE
wlp6s0: WPA: RX message 1 of 4-Way Handshake from c0:8a:de:1f:f3:3c (ver=2)
RSN: msg 1/4 key data - hexdump(len=0):
WPA: Renewed SNonce - hexdump(len=32): 8f d9 59 1f 7e 97 c5 a3 7d f2 48 10 22 f3 b8 b0 85 eb 46 86 23 e7 ca 7d b2 20 08 1b 01 3d 06 d1
WPA: PTK derivation - A1=34:02:86:68:d5:17 A2=c0:8a:de:1f:f3:3c
WPA: Nonce1 - hexdump(len=32): 8f d9 59 1f 7e 97 c5 a3 7d f2 48 10 22 f3 b8 b0 85 eb 46 86 23 e7 ca 7d b2 20 08 1b 01 3d 06 d1
WPA: Nonce2 - hexdump(len=32): 4b a2 4f e5 ee ed c3 18 a9 c3 12 bd 42 7c df bd 92 79 c7 61 6d 5b 88 d4 5f 2d 25 47 df 71 68 bb
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: KEK - hexdump(len=16): [REMOVED]
WPA: TK - hexdump(len=16): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
wlp6s0: WPA: Sending EAPOL-Key 2/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 9e 96 c9 56 8e db 42 87 a3 a2 f3 35 28 ce 26 dc
WMM AC: AC mandatory: AC_BE=0 AC_BK=0 AC_VI=0 AC_VO=0
WMM AC: U-APSD queues=0x0
WMM AC: Valid WMM association, WMM AC is enabled
RTM_NEWLINK: ifi_index=3 ifname=wlp6s0 operstate=5 linkmode=1 ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlp6s0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlp6s0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
nl80211: Drv Event 46 (NL80211_CMD_CONNECT) received for wlp6s0
nl80211: Ignore connect event (cmd=46) when using userspace SME
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp6s0
nl80211: Delete station c0:8a:de:1f:f3:3c
nl80211: Drv Event 39 (NL80211_CMD_DEAUTHENTICATE) received for wlp6s0
nl80211: Deauthenticate event
wlp6s0: Event DEAUTH (12) received
wlp6s0: Deauthentication notification
wlp6s0:  * reason 3 (locally generated)
wlp6s0:  * address c0:8a:de:1f:f3:3c
Deauthentication frame IE(s) - hexdump(len=0): [NULL]
wlp6s0: CTRL-EVENT-DISCONNECTED bssid=c0:8a:de:1f:f3:3c reason=3 locally_generated=1
wlp6s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn" auth_failures=1 duration=10 reason=WRONG_KEY
#... lots and lots of lines here
documentation

Most helpful comment

I noticed the docs are on the old wiki down the page https://nixos.org/wiki/Wpa_supplicant.

Since there is an issue for migration of that, I’ll close here.

All 19 comments

your supposed to append the output of wpa_passphrase to /etc/wpa_supplicant.conf and then let systemd start wpa_supplicant on that file

i'm not sure what will happen if you try to run 2 instances at once, and the network units in systemd may fight you if you try to bring the network up with the wpa_supplicant service off

i had no issues at all when i just stole the wpa_supplicant.conf from an old system and flipped it on in configuration.nix

Moreover, when I'm unsure about what to put into wpa_supplicant.conf, I use wpa_gui instead of manually editing the file.

just a series of blocks generated by wpa_passphrase, like these

network = {
  ssid = "networkname"
  psk = gianthexstring
}

@cleverca22 That's what I did also. I put it inside /etc/wpa_supplicant.conf and then started the wpa_supplicant pointing to that service. Also tried stopping the wpa_supplicant.service and restarting it.

I just tried booting recent ubuntu live cd 15.10 to see if there's any difference, almost the same problem. But in its case, it keeps trying to read the interface p2p-dev-wlp6s0 instead of just wlp6s0, no idea why it somehow changes the interface name randomly, then it just fails to do anything because p2p-dev-wlp6s0 doesn't exist. But of course the GUI and Network Manager's nmcli works.

Ok so I'ved made some progress.

On Ubuntu 15.10 live CD boot. I can do this:

# sudo -i
# wpa_cli -i wlp6s0
> scan
> scan_results
> add_network
> set_network 0 ssid "MYSSID"
> set_network 0 psk "passphrase"
> enable_network 0

And it actually works. It associated with the AP, waiting for IP address assignment.

While on NixOS live CD boot using BIOS on everything:

# start display-manager
# wpa_cli -i wlp6s0
> ....

I cannot do anything because it says it cannot connect to wpa_supplicant.

This is probably because, there's no sockets available in /run or /var/run with regards to wpa_supplicant. In fact systemctl status wpa_supplicant.service shows that it is not running. That it's stuck on activating (start), and has not finished. It has a grey dot too, while in Ubuntu, running the same thing shows a green dot.

Is this by design? Basically the wpa_supplicant.service does not actually run or cannot finish "starting" and setup the sockets that allow wpa_cli to connect and interact with it.

Is this by design?

I don't think so. It sounds like a bug.

Perhaps the following may be of help?

  • Does your password contain any "odd" characters which could be bash expanded?

The exclamation mark tripped me up and I wasn't being authenticated. Ensure that the password is singularly quoted.

I followed the same path as you and had no problem with:

wpa_passphrase SSIDname 'crypticpassword' >> /etc/wpa_supplicant.conf

and

systemctl start wpa_supplicant.service
  • Have you starteddhcpcd?
systemctl start dhcpcd.service
  • What is the correct interface?
ip link show

p2p-dev-wlp6s0orwlp6s0

If the former then perhaps-iswitch should be:

wpa_supplicant -i p2p-dev-wlp6s0 -c <(wpa_passphrase "TheFishburn" "#startupaus")
  • Anyrfkillissues?
rfkill list

Should highlight any Soft/Hard blocks

rfkill unblock all

to resolve.

  • Self Promotion

I documented my wpa_supplicant WIFI issues here, here and rfkill here

Is this by design?

Actually it's possible that wpa_supplicant (standalone) is disabled on the graphical liveCD intentionally in exchange for NM instead (by default). I don't have a clue how those two go well together.

@ianweatherhogg No characters that can expand shell just #. And that's already put in double quotes. I checked the successful wpa_cli association in Ubuntu and compared it's PSK and it's the same.

Are you sure you followed the same path? You need to get the 15.09 LiveCD and boot from the CD/USB, and try using wpa_cli immediately without any other changes. My OP shows what systemctl status wpa_supplicant.service returns, and it appears that it's stuck on starting.

Since it successfully connected in Ubuntu using wpa_cli, no rfkill issues, and no interface issues. I don't understand what p2p-dev-wlp6s0 (it seems to get detected) is all about, but I'm not using that, I always select wlp6s0.

Please note that I'm not talking about a fully installed NixOS instance and having everything installed and manipulable. I'm just talking about the user-experience of LiveCD usage. And it meets this wifi problem at boot, which is not good when people are following guides on the internet talking about wpa_supplicant.

My opinion is that if wpa_supplicant is something that's supposed to be running upon boot in an unmodified LiveCD instance, then if the user types in wpa_cli it should automatically connect to the daemon with no problems. Preferably auto-selecting the correct interface. (Mine in Ubuntu selected p2p-dev-wlp6s0 even when such an interface did not exist).

On graphical CD you might need to disable networkmanager service to allow your wpa_service to function properly.

Can't that be encoded in the units somehow? Make them conflicting or whatever... I don't know what's possible.

@domenkozar that seems like it.

On bootup, systemctl status shows both wpa_supplicant.service and network-manager.service. Check each respective status, the network-manager is active (running), whereas wpa_supplicant is activating (start).

This is probably evidence that the 2 are conflicting. I reckon that NixOS livecd should default on only one of them. Preferably Network Manager as it's more user friendly. Can we disable wpa_supplicant on bootup?

By disabling, we can't actually remove the wpa_supplicant itself as I discovered that network manager relies on wpa_supplicant. That is, when you start the wifi network using network manager, the wpa_supplicant log changes. It's just weird for there to be a "wpa_supplicant" service running. And the docs would have to make it clear that only nmcli works on boot.

I can stop systemctl stop network-manager. But I cannot restart systemctl restart wpa_supplicant. It just blocks and never finishes.

This is the only way I discovered to make wpa_supplicant work on boot.

systemctl stop network-manager
systemctl stop wpa_supplicant

mkdir /etc/wpa_supplicant

cat >/etc/wpa_supplicant/wpa_supplicant.conf <<EOF
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
    ssid=...
    psk=...
}
EOF

wpa_supplicant -i wlp6s0 -c /etc/wpa_supplicant/wpa_supplicant.conf

wpa_cli -i wlp6s0

And it works.

Something in the nixos configuration for the livecd versions need to be tweaked so that wpa_supplicant can be started successfully, because at the moment it doesn't work.

(triage) I think this can be closed cc @domenkozar @vcunat

Probably. I can't see what else should be done about the issue.

This information should be put into the docs at least.

I noticed the docs are on the old wiki down the page https://nixos.org/wiki/Wpa_supplicant.

Since there is an issue for migration of that, I’ll close here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-martin picture chris-martin  ·  3Comments

rzetterberg picture rzetterberg  ·  3Comments

sid-kap picture sid-kap  ·  3Comments

spacekitteh picture spacekitteh  ·  3Comments

yawnt picture yawnt  ·  3Comments