You are not logged in.

#1 2016-10-24 02:37:26

varphi
Member
Registered: 2016-10-24
Posts: 15

[SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Hi,

I'm trying to connect to my wifi manually using wpa_supplicant.

I tried connecting via iw with no encryption first and that worked fine.
Then I set my modem to WPA/WPA2-Personal.
Here is my simple /etc/wpa_supplicant.conf

network={
    ssid="Mai Wai-Fai"
    psk="********"
}

This is the command I'm running and the output

# wpa_supplicant -Dnl80211,wext -c/etc/wpa_supplicant.conf -iwlp3s0
Successfully initialized wpa_supplicant
wlp3s0: SME: Trying to authenticate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Trying to associate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Associated with 74:85:2a:05:4f:91
wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp3s0: WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=74:85:2a:05:4f:91)
wlp3s0: CTRL-EVENT-DISCONNECTED bssid=74:85:2a:05:4f:91 reason=1 locally_generated=1
wlp3s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp3s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Mai Wai-Fai" auth_failures=1 duration=10 reason=WRONG_KEY

It then tries again and fails, giving the exact same output until I terminate it.
If by key they mean psk, it's not wrong, it's a simple 8 character passphrase and I have checked if it's wrong or not so many times, I can assure you, it is not.

Here is the output when I pass the -d switch (I don't know where exactly the first iteration ends, I just let it write to a file for a couple of seconds)

wpa_supplicant v2.6
Successfully initialized wpa_supplicant
Initializing interface 'wlp3s0' conf '/etc/wpa_supplicant.conf' driver 'nl80211,wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='Mai Wai-Fai'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlp3s0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x1765150
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=0409506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=7f506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1765150 match=0500
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlp3s0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlp3s0: Own MAC address: 24:77:03:19:71:8c
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlp3s0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlp3s0: 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
wlp3s0: WPS: UUID based on MAC address: 3ce68e3b-c792-59b5-b279-9942c6f88e66
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
wlp3s0: Added interface wlp3s0
wlp3s0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
wlp3s0: State: DISCONNECTED -> SCANNING
wlp3s0: Starting AP scan for wildcard SSID
wlp3s0: Add radio work 'scan'@0x1782f20
wlp3s0: First radio work item in the queue - schedule start immediately
wlp3s0: Starting radio work 'scan'@0x1782f20 after 0.000023 second wait
wlp3s0: nl80211: scan request
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp3s0
wlp3s0: nl80211: Scan trigger
wlp3s0: Event SCAN_STARTED (47) received
wlp3s0: Own scan request started a scan in 0.000107 seconds
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp3s0
wlp3s0: 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 5745 5765 5785 5805 5825
wlp3s0: Event SCAN_RESULTS (3) received
wlp3s0: Scan completed in 3.153743 seconds
nl80211: Received scan results (23 BSSes)
wlp3s0: BSS: Start scan result update 1
wlp3s0: BSS: Add new id 0 BSSID 76:85:2a:05:4f:93 SSID 'UniFi' freq 2412
wlp3s0: BSS: Add new id 1 BSSID 74:85:2a:05:4f:91 SSID 'Mai Wai-Fai' freq 2412
wlp3s0: BSS: Add new id 2 BSSID da:97:ba:ec:01:b6 SSID 'UniFi' freq 2437
wlp3s0: BSS: Add new id 3 BSSID d8:97:ba:ec:01:b4 SSID 'Bojan' freq 2437
wlp3s0: BSS: Add new id 4 BSSID 2c:95:7f:1f:73:8a SSID 'Arhi Bunker' freq 2412
wlp3s0: BSS: Add new id 5 BSSID e8:39:df:52:ff:00 SSID 'OrtoMC' freq 2412
wlp3s0: BSS: Add new id 6 BSSID 60:02:92:04:fc:27 SSID 'bafc7e' freq 2437
wlp3s0: BSS: Add new id 7 BSSID 20:25:64:32:b8:9b SSID 'majahome' freq 2412
wlp3s0: BSS: Add new id 8 BSSID 22:25:64:32:b8:9d SSID 'UniFi' freq 2412
wlp3s0: BSS: Add new id 9 BSSID 14:b9:68:8c:5e:14 SSID 'HUAWEI-NWFJCJ' freq 2417
wlp3s0: BSS: Add new id 10 BSSID d8:97:ba:e1:0b:1c SSID '5936df' freq 2462
wlp3s0: BSS: Add new id 11 BSSID da:97:ba:e1:0b:1e SSID 'UniFi' freq 2462
wlp3s0: BSS: Add new id 12 BSSID 74:85:2a:39:87:88 SSID '149dba' freq 2462
wlp3s0: BSS: Add new id 13 BSSID 02:71:c2:2e:a7:d7 SSID 'UniFi' freq 2462
wlp3s0: BSS: Add new id 14 BSSID dc:fe:07:1a:94:c5 SSID '26b80c' freq 2462
wlp3s0: BSS: Add new id 15 BSSID 0c:54:a5:a7:41:63 SSID 'Prc' freq 2412
wlp3s0: BSS: Add new id 16 BSSID c2:7c:d1:e1:72:9c SSID 'UniFi' freq 2462
wlp3s0: BSS: Add new id 17 BSSID 00:71:c2:2e:a7:d5 SSID 'lilith' freq 2462
wlp3s0: BSS: Add new id 18 BSSID e8:39:df:29:81:40 SSID 'HG520c021' freq 2437
wlp3s0: BSS: Add new id 19 BSSID 22:25:64:3f:c7:7c SSID 'UniFi' freq 2462
wlp3s0: BSS: Add new id 20 BSSID 76:85:2a:39:87:8a SSID 'UniFi' freq 2462
wlp3s0: BSS: Add new id 21 BSSID d8:97:ba:44:1a:c0 SSID 'Oparusic' freq 2462
wlp3s0: BSS: Add new id 22 BSSID 0e:54:a5:a7:41:65 SSID 'UniFi' freq 2412
BSS: last_scan_res_used=23/32
wlp3s0: New scan results available (own=1 ext=0)
WPS: AP 2c:95:7f:1f:73:8a type 0 added
WPS: AP[0] 2c:95:7f:1f:73:8a type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlp3s0: Radio work 'scan'@0x1782f20 done in 3.158052 seconds
wlp3s0: radio_work_free('scan'@0x1782f20: num_active_works --> 0
wlp3s0: Selecting BSS from priority group 0
wlp3s0: 0: 76:85:2a:05:4f:93 ssid='UniFi' wpa_ie_len=0 rsn_ie_len=20 caps=0x1411 level=-35 freq=2412 
wlp3s0:    skip - SSID mismatch
wlp3s0: 1: 74:85:2a:05:4f:91 ssid='Mai Wai-Fai' wpa_ie_len=22 rsn_ie_len=20 caps=0x1411 level=-36 freq=2412 
wlp3s0:    selected based on RSN IE
wlp3s0:    selected BSS 74:85:2a:05:4f:91 ssid='Mai Wai-Fai'
wlp3s0: Considering connect request: reassociate: 0  selected: 74:85:2a:05:4f:91  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00  wpa_state: SCANNING  ssid=0x1764ac0  current_ssid=(nil)
wlp3s0: Request association with 74:85:2a:05:4f:91
TDLS: TDLS is allowed in the target BSS
TDLS: TDLS channel switch allowed in the target BSS
wlp3s0: Add radio work 'sme-connect'@0x1782f20
wlp3s0: First radio work item in the queue - schedule start immediately
wlp3s0: Starting radio work 'sme-connect'@0x1782f20 after 0.000025 second wait
wlp3s0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=(nil) try_opportunistic=0
RSN: Search for BSSID 74:85:2a:05:4f:91
RSN: No PMKSA cache entry found
wlp3s0: RSN: using IEEE 802.11i/D9.0
wlp3s0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
wlp3s0: WPA: Selected mgmt group cipher 32
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02
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 0c 00
wlp3s0: WPA: using GTK CCMP
wlp3s0: WPA: using PTK CCMP
wlp3s0: WPA: using KEY_MGMT WPA-PSK
wlp3s0: 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
RRM: Determining whether RRM can be used - device support: 0x10
RRM: Adding RRM IE to Association Request
wlp3s0: Cancelling scan request
wlp3s0: SME: Trying to authenticate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: State: SCANNING -> AUTHENTICATING
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
wlp3s0: Determining shared radio frequencies (max len 1)
wlp3s0: Shared frequencies (len=0): completed iteration
nl80211: Authenticate (ifindex=3)
  * bssid=74:85:2a:05:4f:91
  * freq=2412
  * SSID - hexdump_ascii(len=11):
     4d 61 69 20 57 61 69 2d 46 61 69                  Mai Wai-Fai     
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 0
nl80211: Authentication request send successfully
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp3s0
nl80211: New station 74:85:2a:05:4f:91
nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlp3s0
nl80211: Authenticate event
wlp3s0: Event AUTH (11) received
wlp3s0: SME: Authentication response: peer=74:85:2a:05:4f:91 auth_type=0 auth_transaction=2 status_code=0
wlp3s0: set_disable_max_amsdu: -1
wlp3s0: set_ampdu_factor: -1
wlp3s0: set_ampdu_density: -1
wlp3s0: set_disable_ht40: 0
wlp3s0: set_disable_sgi: 0
wlp3s0: set_disable_ldpc: 0
wlp3s0: Trying to associate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: State: AUTHENTICATING -> ASSOCIATING
nl80211: Set wlp3s0 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=74:85:2a:05:4f:91
  * freq=2412
  * SSID - hexdump_ascii(len=11):
     4d 61 69 20 57 61 69 2d 46 61 69                  Mai Wai-Fai     
  * IEs - hexdump(len=39): 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 00 00 00 40 46 05 00 00 00 00 00
  * 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
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 operstate=5 linkmode=1 ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlp3s0
nl80211: Associate event
wlp3s0: Event ASSOC (0) received
wlp3s0: Association info event
resp_ies - hexdump(len=144): 01 08 82 84 8b 96 24 30 48 6c 32 04 0c 12 18 60 35 01 00 41 01 00 46 05 72 08 01 00 00 2d 1a bc 19 1b ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 01 08 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4a 0e 14 00 0a 00 2c 01 c8 00 14 00 05 00 19 00 7f 08 05 00 08 00 00 00 00 40 dd 09 00 10 18 02 00 00 0c 00 00 dd 18 00 50 f2 02 01 01 88 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
wlp3s0: freq=2412 MHz
wlp3s0: State: ASSOCIATING -> ASSOCIATED
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlp3s0: Associated to a new BSS: BSSID=74:85:2a:05:4f:91
wlp3s0: Associated with 74:85:2a:05:4f:91
wlp3s0: WPA: Association event - clear replay counter
wlp3s0: 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
wlp3s0: Setting authentication timeout: 10 sec 0 usec
wlp3s0: Cancelling scan request
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
wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
nl80211: Drv Event 46 (NL80211_CMD_CONNECT) received for wlp3s0
nl80211: Ignore connect event (cmd=46) when using userspace SME
l2_packet_receive: src=74:85:2a:05:4f:91 len=121
wlp3s0: RX EAPOL from 74:85:2a:05:4f:91
wlp3s0: Setting authentication timeout: 10 sec 0 usec
wlp3s0: IEEE 802.1X RX: version=2 type=3 length=117
wlp3s0:   EAPOL-Key type=2
wlp3s0:   key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
wlp3s0:   key_length=16 key_data_length=22
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_nonce - hexdump(len=32): 63 6a 81 4b 4e 67 95 c7 23 43 bd 85 20 36 dd 3d 10 93 ef b4 f9 39 f4 7f e6 a7 81 b3 4c 16 b9 af
  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
wlp3s0: State: ASSOCIATED -> 4WAY_HANDSHAKE
wlp3s0: WPA: RX message 1 of 4-Way Handshake from 74:85:2a:05:4f:91 (ver=2)
RSN: msg 1/4 key data - hexdump(len=22): dd 14 00 0f ac 04 97 d9 37 d5 ab 12 ce 37 e9 d2 4f c2 35 f6 39 a1
WPA: PMKID in EAPOL-Key - hexdump(len=22): dd 14 00 0f ac 04 97 d9 37 d5 ab 12 ce 37 e9 d2 4f c2 35 f6 39 a1
RSN: PMKID from Authenticator - hexdump(len=16): 97 d9 37 d5 ab 12 ce 37 e9 d2 4f c2 35 f6 39 a1
wlp3s0: RSN: no matching PMKID found
WPA: Renewed SNonce - hexdump(len=32): 76 5b 3a 99 b0 c0 ef e3 10 32 2d 6b 3e 3f b0 7e 2d 7f e5 c4 ce 38 59 10 70 91 7c 42 54 16 8e ec
WPA: PTK derivation - A1=24:77:03:19:71:8c A2=74:85:2a:05:4f:91
WPA: Nonce1 - hexdump(len=32): 76 5b 3a 99 b0 c0 ef e3 10 32 2d 6b 3e 3f b0 7e 2d 7f e5 c4 ce 38 59 10 70 91 7c 42 54 16 8e ec
WPA: Nonce2 - hexdump(len=32): 63 6a 81 4b 4e 67 95 c7 23 43 bd 85 20 36 dd 3d 10 93 ef b4 f9 39 f4 7f e6 a7 81 b3 4c 16 b9 af
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 00
wlp3s0: WPA: Sending EAPOL-Key 2/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 69 16 8d 70 df ff 3a 93 b8 52 6d b5 b4 0f eb 6c
l2_packet_receive: src=74:85:2a:05:4f:91 len=155
wlp3s0: RX EAPOL from 74:85:2a:05:4f:91
wlp3s0: IEEE 802.1X RX: version=2 type=3 length=151
wlp3s0:   EAPOL-Key type=2
wlp3s0:   key_info 0x13ca (ver=2 keyidx=0 rsvd=0 Pairwise Install Ack MIC Secure Encr)
wlp3s0:   key_length=16 key_data_length=56
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): 63 6a 81 4b 4e 67 95 c7 23 43 bd 85 20 36 dd 3d 10 93 ef b4 f9 39 f4 7f e6 a7 81 b3 4c 16 b9 af
  key_iv - hexdump(len=16): 10 93 ef b4 f9 39 f4 7f e6 a7 81 b3 4c 16 b9 b0
  key_rsc - hexdump(len=8): 54 81 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): 6a 91 45 b8 f0 69 d1 90 17 01 29 81 ab eb 79 ea
RSN: encrypted key data - hexdump(len=56): bc 9f 8b f3 c4 68 93 19 28 f1 97 53 6a ef c2 61 8f 41 af 77 40 9b d2 ba cc 8f d6 41 4e 19 be 99 4e 73 fa 09 1c 1b 88 b7 e4 6b 75 73 5b 6a 39 e8 89 bd 9e 23 44 14 4c 31
WPA: decrypted EAPOL-Key key data - hexdump(len=48): [REMOVED]
wlp3s0: State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
wlp3s0: WPA: RX message 3 of 4-Way Handshake from 74:85:2a:05:4f:91 (ver=2)
WPA: IE KeyData - hexdump(len=48): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 dd 16 00 0f ac 01 01 00 37 a8 b2 dd cf 7e 29 a8 67 98 e3 d4 b6 95 4d 25 dd 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 0c 00
WPA: GTK in EAPOL-Key - hexdump(len=24): [REMOVED]
wlp3s0: WPA: Sending EAPOL-Key 4/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 78 46 a9 7d 8f 52 ce 70 1b 96 89 2e 26 1b 00 51
wlp3s0: WPA: Installing PTK to the driver
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=3 addr=0x1764598 key_idx=0 set_tx=1 seq_len=6 key_len=16
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
nl80211: KEY_SEQ - hexdump(len=6): 00 00 00 00 00 00
   addr=74:85:2a:05:4f:91
nl80211: set_key failed; err=-2 No such file or directory)
wlp3s0: WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=74:85:2a:05:4f:91)
wlp3s0: Request to deauthenticate - bssid=74:85:2a:05:4f:91 pending_bssid=00:00:00:00:00:00 reason=1 state=4WAY_HANDSHAKE
TDLS: Tear down peers
wpa_driver_nl80211_deauthenticate(addr=74:85:2a:05:4f:91 reason_code=1)
wlp3s0: Event DEAUTH (12) received
wlp3s0: Deauthentication notification
wlp3s0:  * reason 1 (locally generated)
Deauthentication frame IE(s) - hexdump(len=0): [NULL]
wlp3s0: CTRL-EVENT-DISCONNECTED bssid=74:85:2a:05:4f:91 reason=1 locally_generated=1
wlp3s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp3s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Mai Wai-Fai" auth_failures=1 duration=10 reason=WRONG_KEY
wlp3s0: Auto connect enabled: try to reconnect (wps=0/0 wpa_state=7)
wlp3s0: Setting scan request: 0.100000 sec
wlp3s0: Radio work 'sme-connect'@0x1782f20 done in 0.169686 seconds
wlp3s0: radio_work_free('sme-connect'@0x1782f20: num_active_works --> 0
Added BSSID 74:85:2a:05:4f:91 into blacklist
wlp3s0: Blacklist count 1 --> request scan in 100 ms
wlp3s0: Ignore new scan request for 0.100000 sec since an earlier request is scheduled to trigger sooner
TDLS: Remove peers on disassociation
wlp3s0: WPA: Clear old PMK and PTK
wlp3s0: Disconnect event - remove keys
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp3s0) alg=0 addr=0x1762ac8 key_idx=0 set_tx=0 seq_len=0 key_len=0
   addr=74:85:2a:05:4f:91
wlp3s0: State: 4WAY_HANDSHAKE -> DISCONNECTED
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
WMM AC: WMM AC is disabled
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
wlp3s0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlp3s0: Ignore new scan request for 5.000000 sec since an earlier request is scheduled to trigger sooner
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp3s0
nl80211: Delete station 74:85:2a:05:4f:91
nl80211: Drv Event 39 (NL80211_CMD_DEAUTHENTICATE) received for wlp3s0
nl80211: Deauthenticate event
nl80211: Ignore deauth event triggered due to own deauth request
nl80211: Drv Event 48 (NL80211_CMD_DISCONNECT) received for wlp3s0
nl80211: Ignore disconnect event when using userspace SME
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
wlp3s0: State: DISCONNECTED -> SCANNING
wlp3s0: Starting AP scan for wildcard SSID
wlp3s0: Add radio work 'scan'@0x1783720
wlp3s0: First radio work item in the queue - schedule start immediately
wlp3s0: Starting radio work 'scan'@0x1783720 after 0.000023 second wait
wlp3s0: nl80211: scan request
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp3s0
wlp3s0: nl80211: Scan trigger
wlp3s0: Event SCAN_STARTED (47) received
wlp3s0: Own scan request started a scan in 0.000085 seconds
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
EAPOL: startWhen --> 0
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=3 ifname=wlp3s0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp3s0
wlp3s0: 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 5745 5765 5785 5805 5825
wlp3s0: Event SCAN_RESULTS (3) received
wlp3s0: Scan completed in 3.057010 seconds
nl80211: Received scan results (29 BSSes)
wlp3s0: BSS: Start scan result update 2
wlp3s0: BSS: Add new id 23 BSSID 64:70:02:f2:99:de SSID 'Vajrles!' freq 2437
wlp3s0: BSS: Add new id 24 BSSID 24:69:a5:ff:1f:a0 SSID 'Felisidad' freq 2447
wlp3s0: BSS: Add new id 25 BSSID 86:00:2d:33:8d:bf SSID 'UniFi' freq 2437
wlp3s0: BSS: Add new id 26 BSSID 8a:d1:84:25:cd:a3 SSID 'iberogast' freq 2412
wlp3s0: BSS: Add new id 27 BSSID 22:25:64:3d:3c:18 SSID 'UniFi' freq 2462
wlp3s0: BSS: Add new id 28 BSSID 54:be:53:80:af:5e SSID 'Jovana11' freq 2452
BSS: last_scan_res_used=29/32
wlp3s0: New scan results available (own=1 ext=0)
WPS: AP 64:70:02:f2:99:de type 0 added
WPS: AP[0] 2c:95:7f:1f:73:8a type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 64:70:02:f2:99:de type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlp3s0: Radio work 'scan'@0x1783720 done in 3.058745 seconds
wlp3s0: radio_work_free('scan'@0x1783720: num_active_works --> 0
wlp3s0: Postpone network selection by 7 seconds since all networks are disabled
wlp3s0: Try to associate due to network getting re-enabled
Fast associate: Old scan results
wlp3s0: Setting scan request: 0.000000 sec
wlp3s0: Starting AP scan for wildcard SSID
wlp3s0: Add radio work 'scan'@0x1783720
wlp3s0: First radio work item in the queue - schedule start immediately
wlp3s0: Starting radio work 'scan'@0x1783720 after 0.000018 second wait
wlp3s0: nl80211: scan request
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp3s0
wlp3s0: nl80211: Scan trigger
wlp3s0: Event SCAN_STARTED (47) received
wlp3s0: Own scan request started a scan in 0.000075 seconds
wlp3s0: Removing interface wlp3s0
wlp3s0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=SCANNING
TDLS: Tear down peers
wlp3s0: State: SCANNING -> DISCONNECTED
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlp3s0: WPA: Clear old PMK and PTK
Removed BSSID 74:85:2a:05:4f:91 from blacklist (clear)
wlp3s0: BSS: Remove id 1 BSSID 74:85:2a:05:4f:91 SSID 'Mai Wai-Fai' due to wpa_bss_flush
wlp3s0: BSS: Remove id 0 BSSID 76:85:2a:05:4f:93 SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 2 BSSID da:97:ba:ec:01:b6 SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 3 BSSID d8:97:ba:ec:01:b4 SSID 'Bojan' due to wpa_bss_flush
wlp3s0: BSS: Remove id 7 BSSID 20:25:64:32:b8:9b SSID 'majahome' due to wpa_bss_flush
wlp3s0: BSS: Remove id 4 BSSID 2c:95:7f:1f:73:8a SSID 'Arhi Bunker' due to wpa_bss_flush
wlp3s0: BSS: Remove id 23 BSSID 64:70:02:f2:99:de SSID 'Vajrles!' due to wpa_bss_flush
wlp3s0: BSS: Remove id 24 BSSID 24:69:a5:ff:1f:a0 SSID 'Felisidad' due to wpa_bss_flush
wlp3s0: BSS: Remove id 8 BSSID 22:25:64:32:b8:9d SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 5 BSSID e8:39:df:52:ff:00 SSID 'OrtoMC' due to wpa_bss_flush
wlp3s0: BSS: Remove id 6 BSSID 60:02:92:04:fc:27 SSID 'bafc7e' due to wpa_bss_flush
wlp3s0: BSS: Remove id 9 BSSID 14:b9:68:8c:5e:14 SSID 'HUAWEI-NWFJCJ' due to wpa_bss_flush
wlp3s0: BSS: Remove id 11 BSSID da:97:ba:e1:0b:1e SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 25 BSSID 86:00:2d:33:8d:bf SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 10 BSSID d8:97:ba:e1:0b:1c SSID '5936df' due to wpa_bss_flush
wlp3s0: BSS: Remove id 12 BSSID 74:85:2a:39:87:88 SSID '149dba' due to wpa_bss_flush
wlp3s0: BSS: Remove id 13 BSSID 02:71:c2:2e:a7:d7 SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 26 BSSID 8a:d1:84:25:cd:a3 SSID 'iberogast' due to wpa_bss_flush
wlp3s0: BSS: Remove id 17 BSSID 00:71:c2:2e:a7:d5 SSID 'lilith' due to wpa_bss_flush
wlp3s0: BSS: Remove id 15 BSSID 0c:54:a5:a7:41:63 SSID 'Prc' due to wpa_bss_flush
wlp3s0: BSS: Remove id 14 BSSID dc:fe:07:1a:94:c5 SSID '26b80c' due to wpa_bss_flush
wlp3s0: BSS: Remove id 16 BSSID c2:7c:d1:e1:72:9c SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 18 BSSID e8:39:df:29:81:40 SSID 'HG520c021' due to wpa_bss_flush
wlp3s0: BSS: Remove id 19 BSSID 22:25:64:3f:c7:7c SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 20 BSSID 76:85:2a:39:87:8a SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 27 BSSID 22:25:64:3d:3c:18 SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 28 BSSID 54:be:53:80:af:5e SSID 'Jovana11' due to wpa_bss_flush
wlp3s0: BSS: Remove id 22 BSSID 0e:54:a5:a7:41:65 SSID 'UniFi' due to wpa_bss_flush
wlp3s0: BSS: Remove id 21 BSSID d8:97:ba:44:1a:c0 SSID 'Oparusic' due to wpa_bss_flush
wlp3s0: Cancelling scan request
wlp3s0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
Remove interface wlp3s0 from radio phy0
wlp3s0: Remove radio work 'scan'@0x1783720 (started)
wlp3s0: radio_work_free('scan'@0x1783720: num_active_works --> 0
Remove radio phy0
nl80211: deinit ifname=wlp3s0 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: Unsubscribe mgmt frames handle 0x8888888889fed9d9 (mode change)
wlp3s0: CTRL-EVENT-TERMINATING 

I don't know if this matters or not (because I successfully connected with no encryption, so I guess the driver should be working fine), but here it is

# dmesg | grep firmware
[    9.286470] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-6000-6.ucode failed with error -2
[    9.286514] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-6000-5.ucode failed with error -2
[    9.304722] iwlwifi 0000:03:00.0: loaded firmware version 9.221.4.1 build 25532 op_mode iwldvm

Also, I have no problems connecting with my phone.

Thanks.

Last edited by varphi (2016-10-25 00:05:40)

Offline

#2 2016-10-24 12:14:53

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

There's a difference between key and psk.
key =a passphrase
psk =pre shared key, a 'shared secret', which don't look like the passphrase ,at all.
https://en.wikipedia.org/wiki/Pre-shared_key

Offline

#3 2016-10-24 12:21:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

1) Get rid of the -D flag (and it's parameters) to wpa_supplicant.  That is almost never necessary and frequently causes problems.

2) Use wpa_passphrase to generate a config entry.

3) Make sure all other networking services are stopped/killed before trying again (including any backgrounded wpa_supplicant processess from previous failed attempts).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2016-10-24 13:15:39

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

There are no wpa_supplicant processess in the background (I haven't used the -B flag at all) and I don't have any other networking services running (I even stopped dhcpcd@enp0s25 and lowerd the enp0s25 interface).
I generated a config like this

# wpa_passphrase "Mai Wai-Fai" "********" > /etc/wpa_supplicant.conf

and tried without the -D flag and it's still the same

# wpa_supplicant -iwlp3s0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlp3s0: SME: Trying to authenticate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Trying to associate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Associated with 74:85:2a:05:4f:91
wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp3s0: WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=74:85:2a:05:4f:91)
wlp3s0: CTRL-EVENT-DISCONNECTED bssid=74:85:2a:05:4f:91 reason=1 locally_generated=1
wlp3s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp3s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Mai Wai-Fai" auth_failures=1 duration=10 reason=WRONG_KEY
^Cnl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
wlp3s0: CTRL-EVENT-TERMINATING

Offline

#5 2016-10-24 13:28:40

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

This is what I get from the scan

BSS 74:85:2a:05:4f:91(on wlp3s0)
        TSF: 57152024627 usec (0d, 15:52:32)
        freq: 2412
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
        signal: -51.00 dBm
        last seen: 3316 ms ago
        Information elements from Probe Response frame:
        SSID: Mai Wai-Fai
        Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 
        DS Parameter set: channel 1
        ERP: Barker_Preamble_Mode
        ERP D4.0: Barker_Preamble_Mode
        RSN:     * Version: 1
                 * Group cipher: CCMP
                 * Pairwise ciphers: CCMP
                 * Authentication suites: PSK
                 * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
        Extended supported rates: 6.0 9.0 12.0 48.0 
        BSS Load:
                 * station count: 1
                 * channel utilisation: 48/255
                 * available admission capacity: 0 [*32us]
        HT capabilities:
                Capabilities: 0x19bc
                        HT20
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT RX MCS rate indexes supported: 0-15
                HT TX MCS rate indexes are undefined
        HT operation:
                 * primary channel: 1
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 1
                 * HT protection: nonmember
                 * non-GF present: 1
                 * OBSS non-GF present: 1
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        Overlapping BSS scan params:
                 * passive dwell: 20 TUs
                 * active dwell: 10 TUs
                 * channel width trigger scan interval: 300 s
                 * scan passive total per channel: 200 TUs
                 * scan active total per channel: 20 TUs
                 * BSS width channel transition delay factor: 5
                 * OBSS Scan Activity Threshold: 0.25 %
        Extended capabilities: HT Information Exchange Supported, Extended Channel Switching, BSS Transition, 6
        WPA:     * Version: 1
                 * Group cipher: CCMP
                 * Pairwise ciphers: CCMP
                 * Authentication suites: PSK
        WMM:     * Parameter version 1
                 * u-APSD
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec

Shuld I try to make a more detailed config with this information?

Offline

#6 2016-10-24 13:38:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Thanks - that seems to rule out all the common (and/or PEBKAC) issues.  Unfortuntely, I'm also not sure where exactly to look next - hopefully others can help out, otherwise I'll try to help dig deeper when I get home from work.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2016-10-24 13:49:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

varphi wrote:
wlp3s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp3s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Mai Wai-Fai" auth_failures=1 duration=10 reason=WRONG_KEY
^Cnl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
wlp3s0: CTRL-EVENT-TERMINATING

Are you sure that your psk is correct, because that's what is failing.

Offline

#8 2016-10-24 14:32:59

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

qinohe wrote:

Are you sure that your psk is correct, because that's what is failing.

Yes, I am absolutely sure my psk is correct, I've tried this so many times now, there's no way I typed the passphrase incorrectly each time while also checking thoroughly for mistakes.

Offline

#9 2016-10-24 14:37:55

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Could you show the exact command used, to find the psk?

Offline

#10 2016-10-24 15:08:47

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

qinohe wrote:

Could you show the exact command used, to find the psk?

I tried this kind of config first

network={
    ssid="Mai Wai-Fai"
    psk="my wifi passphase in clear text"
}

Then I tried generating a config with wpa_passphrase like Trilby suggested and got something like this

network={
	ssid="Mai Wai-Fai"
	#psk="my wifi passphrase in clear text"
	psk=long hexadecimal number
}

If by command you're refering to wpa_passphrase, I already showed that in one of mt previous posts.

Offline

#11 2016-10-24 15:13:05

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Glad I asked, look back at post#2, and follow that link.
Your psk is not your password in plain txt, it is created from the password.

Offline

#12 2016-10-24 15:38:29

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

qinohe wrote:

Glad I asked, look back at post#2, and follow that link.
Your psk is not your password in plain txt, it is created from the password.

According to that article (if I'm reading it correctly), a PSK is a pre-shared secred from which the key is derived by applying some function.
Then it continues to say:

The characteristics of this secret or key are determined by the system which uses it; some system designs require that such keys be in a particular format. It can be a password, a passphrase, or a hexadecimal string. The secret is used by all systems involved in the cryptographic processes used to secure the traffic between the systems.

It kinda sounds like they claim the opposite.

Although from the wpa_passphrase man page:

wpa_passphrase pre-computes PSK entries for network configuration blocks of a wpa_supplicant.conf file. An ASCII passphrase and SSID are used to generate a 256-bit PSK.

The article is a bit confusing, but either way, I think that the wpa_passphrase generated config should work.

Last edited by varphi (2016-10-24 15:47:50)

Offline

#13 2016-10-24 16:03:47

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

I do agree on all counts, but lets get back to post #9 then, since all you gave me in post #10 were configs.
I ask again, could you show the exact command used, to find the psk?

Offline

#14 2016-10-24 16:09:25

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

qinohe wrote:

I do agree on all counts, but lets get back to post #9 then, since all you gave me in post #10 were configs.
I ask again, could you show the exact command used, to find the psk?

This is the exact command I used to generate the config with the psk (which I posted in post #4)

# wpa_passphrase "Mai Wai-Fai" "********" > /etc/wpa_supplicant.conf

where "********" is the passphrase for "Mai Wai-Fai".

Last edited by varphi (2016-10-24 16:09:39)

Offline

#15 2016-10-24 16:18:32

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Missed that, sorry.
You can stlill try

wpa_passphrase Mai\ Wai-Fai "********"
wpa_passphrase Mai\ Wai-Fai

You'll be asked for the PW then, just testing doesn' hurt;)
Btw. does your password need quotes, try without

edit: oeps changed forward slash to backslash

Last edited by qinohe (2016-10-24 16:20:34)

Offline

#16 2016-10-24 16:59:26

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

qinohe wrote:

You can stlill try

wpa_passphrase Mai\ Wai-Fai "********"
wpa_passphrase Mai\ Wai-Fai

Still nothing, same output.

qinohe wrote:

does your password need quotes

Nope, it's just 8 lowercase letters or numbers.

Offline

#17 2016-10-24 17:10:16

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

I just skimmed over the wiki and you need quotes around a clear password in wpa_supplicant.conf, I always use a psk quotes are not needed than.
Other than that, I'm running out of ideas.

Offline

#18 2016-10-24 18:48:06

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

qinohe wrote:

I just skimmed over the wiki and you need quotes around a clear password in wpa_supplicant.conf, I always use a psk quotes are not needed than.
Other than that, I'm running out of ideas.

But I have quotes around the clear password...

Offline

#19 2016-10-24 19:16:07

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

I tried to connect to a different network and it's the same.
Then I tried to connect in exactly the same way with wpa_supplicant using a friends laptop running Debian (after killing NetworkManager and whatnot) and succeeded.
I don't get it. My driver should work because I successfully connected with no encryption using iw. I'm using a w520 thinkpad (if it matters). Maybe I'm missing some package?

Offline

#20 2016-10-24 23:12:38

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Posting this via wifi.

So I tried to connect from my Arch live usb that I still haven't formated since the installation and succeded.
I rebooted back into Arch (the one that is installed) and tried again and it somehow worked.
I have no clue as to why it works now. I did everything like before, generating the config like this

# wpa_passphrase "Mai Wai-Fai" "********" > /etc/wpa_supplicant.conf

and issuing the wpa_supplicant command like this

# wpa_supplicant -iwlp3s0 -c/etc/wpa_supplicant.conf
wlp3s0: SME: Trying to authenticate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Trying to associate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Associated with 74:85:2a:05:4f:91
wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: CTRL-EVENT-CONNECTED - Connection to 74:85:2a:05:4f:91 completed [id=0 id_str=]
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: CTRL-EVENT-DISCONNECTED bssid=74:85:2a:05:4f:91 reason=15
wlp3s0: SME: Trying to authenticate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Trying to associate with 74:85:2a:05:4f:91 (SSID='Mai Wai-Fai' freq=2412 MHz)
wlp3s0: Associated with 74:85:2a:05:4f:91
wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp3s0: WPA: Key negotiation completed with 74:85:2a:05:4f:91 [PTK=CCMP GTK=CCMP]
wlp3s0: CTRL-EVENT-CONNECTED - Connection to 74:85:2a:05:4f:91 completed [id=0 id_str=]

and it works. iw says I'm connected

# iw dev wlp3s0 link
Connected to 74:85:2a:05:4f:91 (on wlp3s0)
	SSID: Mai Wai-Fai
	freq: 2412
	RX: 5552148 bytes (28385 packets)
	TX: 846916 bytes (4187 packets)
	signal: -23 dBm
	tx bitrate: 65.0 MBit/s MCS 7

	bss flags:	short-slot-time
	dtim period:	1
	beacon int:	100

and when I started dhcpcd@wlp3s0 I successfully pinged archlinux.org.

I'll try a few more times with some variations and close the thread if it continues to work.
Although I'm very curious as to why it didn't work at all until like an hour ago.

edit: I updated the system about 4 hours ago (after that I haven't tried to use the wifi until when it finnaly started working), I didn't pay much attention to what was being updated, but IIRC it was about 3 packages, vim, vim-runtime and archlinux-keyring, neither of which should have anything to do with this. I don't even know where I'm going with this.
This makes no sense. I know I'm not crazy.

Last edited by varphi (2016-10-24 23:44:52)

Offline

#21 2016-10-24 23:43:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

varphi wrote:

Although I'm very curious as to why it didn't work at all until like an hour ago.

I'd speculate that there may have been a kernel update that you had not booted into and perhaps a wireless-relevant module could then not load (as old kernel modules aren't kept around after an upgrade).  But after a reboot you were running the new kernel, so the needed modules could load.

This is just wild speculation - but it would certainly fit if you hadn't rebooted since the previous kernel upgrade until you rebooted into the live-usb.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#22 2016-10-24 23:57:18

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Trilby wrote:
varphi wrote:

Although I'm very curious as to why it didn't work at all until like an hour ago.

I'd speculate that there may have been a kernel update that you had not booted into and perhaps a wireless-relevant module could then not load (as old kernel modules aren't kept around after an upgrade).  But after a reboot you were running the new kernel, so the needed modules could load.

This is just wild speculation - but it would certainly fit if you hadn't rebooted since the previous kernel upgrade until you rebooted into the live-usb.

Huh, you're right. I ran pacman -Syu yesterday and updated the kernel (totally forgot about that) and haven't rebooted until I tried the live usb. My friend ran uname -a on my laptop earlier today and the kernel version was definitely 4.8.3 and I just checked now and it's 4.8.4.
Everything makes sense now.
Thanks.

Offline

#23 2016-10-25 00:00:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Mismatched kernel modules mainly tend to affect mounting foreign filesystems.  Most people would not be affected by the wireless-module issue as they'd likely have a wireless connection prior to the update.  Even if they needed to reconnect wirelessly after the update (after a sleep/suspend, whatever) the previously loaded modules would still be loaded in memory.

This only affected you because it was the first time these modules would have ever been called upon: they had not been loaded prior to the kernel update.

So it's a bit of a corner case.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#24 2016-10-25 00:07:04

varphi
Member
Registered: 2016-10-24
Posts: 15

Re: [SOLVED]wpa_supplicant authentication failing (for no obvious reasons)

Trilby wrote:

Mismatched kernel modules mainly tend to affect mounting foreign filesystems.  Most people would not be affected by the wireless-module issue as they'd likely have a wireless connection prior to the update.  Even if they needed to reconnect wirelessly after the update (after a sleep/suspend, whatever) the previously loaded modules would still be loaded in memory.

This only affected you because it was the first time these modules would have ever been called upon: they had not been loaded prior to the kernel update.

So it's a bit of a corner case.

Thanks for the explanation.

Offline

Board footer

Powered by FluxBB