You are not logged in.

#1 2014-06-15 04:24:44

Ailen
Member
Registered: 2014-05-01
Posts: 32

WPA association/authentication failed

A month ago I purchased a netgear WNDA3100 usb wireless dongle to use as the wireless card for my desktop. Using the latest version of ndiswrapper the drivers were applied and the card connected to my home network with no problem. I also used the wireless card on my laptop to do some testing with kismet and other pen test tools. Two weeks after purchasing, the wireless dongle is now not connecting to my home network. The network is WPA encrypted with a passphrase and nothing about the network has changed since I had the problem.

Here are some relevant outputs. If more information is needed I can make it available.

Edit:// All of the outputs below are from the laptop, which has an on-board wireless NIC that connects to the network with no issues.

[root@autarch netctl]# journalctl -xn

-- Logs begin at Fri 2014-05-09 05:01:20 EDT, end at Sat 2014-06-14 23:59:42 EDT. --
Jun 14 23:59:26 autarch systemd[1]: Starting Networking for netctl profile enp0s29u1u2-MKS...
-- Subject: Unit netctl@enp0s29u1u2\x2dMKS.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl@enp0s29u1u2\x2dMKS.service has begun starting up.
Jun 14 23:59:26 autarch network[4809]: Starting network profile 'enp0s29u1u2-MKS'...
Jun 14 23:59:26 autarch kernel: IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
Jun 14 23:59:26 autarch network[4809]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jun 14 23:59:26 autarch network[4809]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jun 14 23:59:36 autarch kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp0s29u1u2: link becomes ready
Jun 14 23:59:42 autarch network[4809]: WPA association/authentication failed for interface 'enp0s29u1u2'
Jun 14 23:59:42 autarch network[4809]: Failed to bring the network up for profile 'enp0s29u1u2-MKS'
Jun 14 23:59:42 autarch systemd[1]: netctl@enp0s29u1u2\x2dMKS.service: main process exited, code=exited, status=1/FAILURE
Jun 14 23:59:42 autarch systemd[1]: Failed to start Networking for netctl profile enp0s29u1u2-MKS.
-- Subject: Unit netctl@enp0s29u1u2\x2dMKS.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl@enp0s29u1u2\x2dMKS.service has failed.
-- 
-- The result is failed.
 [root@autarch netctl]# systemctl status netctl@enp0s29u1u2\x2dMKS.service

● netctl@enp0s29u1u2x2dMKS.service - Networking for netctl profile enp0s29u1u2x2dMKS
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)
[root@autarch netctl]# cat /etc/netctl/enp0s29u1u2-MKS
Description='Automatically generated profile by wifi-menu'
Interface=enp0s29u1u2
Connection=wireless
Security=wpa
ESSID=MKS
IP=dhcp
Key=(PLAINTEXT-KEY)
[root@autarch netctl]# dmesg

<removed a bunch before here > 

[  +0.017892] ndiswrapper (ndis_encode_setting:383): unknown type: 3
[  +0.318831] wlan0: ethernet device 08:bd:43:7b:1f:48 using NDIS driver: bcmwlhigh5, version: 0x564442e, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 0846:9011.F.conf
[  +0.008776] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2-PSK; AES/CCMP with WPA, WPA2, WPA2-PSK
[  +0.002614] usbcore: registered new interface driver ndiswrapper
[  +0.024880] ndiswrapper: interface renamed to 'enp0s29u1u2'
[  +0.000116] systemd-udevd[2221]: renamed network interface wlan0 to enp0s29u1u2
[ +26.739933] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[ +20.339477] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[Jun14 23:18] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s29u1u2: link becomes ready
[Jun14 23:21] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[ +10.891455] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s29u1u2: link becomes ready
[ +15.946986] wlp9s0: deauthenticating from 48:f8:b3:a6:50:a1 by local choice (reason=3)
[  +0.013156] cfg80211: Calling CRDA to update world regulatory domain
[Jun14 23:23] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[Jun14 23:24] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[ +10.862060] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s29u1u2: link becomes ready
[Jun14 23:28] iwlwifi 0000:09:00.0: L1 Disabled; Enabling L0S
[  +0.006400] iwlwifi 0000:09:00.0: Radio type=0x2-0x2-0x1
[  +0.075717] IPv6: ADDRCONF(NETDEV_UP): wlp9s0: link is not ready
[  +0.538780] wlp9s0: authenticate with 48:f8:b3:a6:50:a1
[  +0.019076] wlp9s0: send auth to 48:f8:b3:a6:50:a1 (try 1/3)
[  +0.002856] wlp9s0: authenticated
[  +0.000957] wlp9s0: associate with 48:f8:b3:a6:50:a1 (try 1/3)
[  +0.003928] wlp9s0: RX AssocResp from 48:f8:b3:a6:50:a1 (capab=0x1411 status=0 aid=2)
[  +0.007359] IPv6: ADDRCONF(NETDEV_CHANGE): wlp9s0: link becomes ready
[  +0.000122] wlp9s0: associated
[Jun14 23:59] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[ +13.288299] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[ +10.780101] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s29u1u2: link becomes ready
[Jun15 00:12] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[Jun15 00:14] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready

You can see in the dmesg output that wlp9s0 (my on-board wireless card) is authenticating and everything works but enp0s29u1u2 never even gets to that point. I've lurked the forums and found similar issues (all of them ancient and of  no help) and I've done my best tweaking configuration to no avail. I did some toying around with wpa_supplicant running it by itself and I remember it outputting something about failing the 4way handshake. It's only having issues with the WPA encrypted home network. Unsecured/unencrypted networks work just fine. I'm stumped.. Any assistance on this problem would be greatly appreciated.

Last edited by Ailen (2014-06-15 04:27:11)

Offline

#2 2014-06-15 04:33:41

Ailen
Member
Registered: 2014-05-01
Posts: 32

Re: WPA association/authentication failed

Wpa supplicant output:

Successfully initialized wpa_supplicant
nl80211: Could not configure driver mode
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
enp0s29u1u2: Trying to associate with 48:f8:b3:a6:50:a1 (SSID='MKS' freq=2417 MHz)
enp0s29u1u2: Associated with 48:f8:b3:a6:50:a1
enp0s29u1u2: Authentication with 48:f8:b3:a6:50:a1 timed out.
enp0s29u1u2: CTRL-EVENT-DISCONNECTED bssid=48:f8:b3:a6:50:a1 reason=3 locally_generated=1
enp0s29u1u2: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
enp0s29u1u2: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MKS" auth_failures=1 duration=10
enp0s29u1u2: CTRL-EVENT-SSID-REENABLED id=0 ssid="MKS"
enp0s29u1u2: Trying to associate with 48:f8:b3:a6:50:a1 (SSID='MKS' freq=2417 MHz)
enp0s29u1u2: Associated with 48:f8:b3:a6:50:a1
enp0s29u1u2: Authentication with 48:f8:b3:a6:50:a1 timed out.
enp0s29u1u2: CTRL-EVENT-DISCONNECTED bssid=48:f8:b3:a6:50:a1 reason=3 locally_generated=1
enp0s29u1u2: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
enp0s29u1u2: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MKS" auth_failures=2 duration=20
enp0s29u1u2: CTRL-EVENT-SSID-REENABLED id=0 ssid="MKS"
enp0s29u1u2: Trying to associate with 48:f8:b3:a6:50:a1 (SSID='MKS' freq=2417 MHz)
enp0s29u1u2: Associated with 48:f8:b3:a6:50:a1

My assumption is that the pre-shared key is the passphrase/PSK I have in the supplicant conf file and wifi-menu profiles, which is the same all around and definitely correct.

Offline

#3 2014-06-15 15:11:26

ratcheer
Member
Registered: 2011-10-09
Posts: 913

Re: WPA association/authentication failed

Don't be so sure the WPA passphrase is correct. I had a connection that worked for some time with a passphrase. Then, it stopped working. I tried everything I could think of, certain that there was nothing wrong with the passphrase. Then, I decided to back up the .conf file and regenerate it using command wpa_passphrase. The text passphrase was the same, but the long hex passphrase that wpa_supplicant actually uses was completely different. Then, wpa authentication succeeded, again.

I have no idea why the hex passphrase changed while the text passphrase was the same. But, you should at least try this.

Tim

Offline

#4 2014-06-15 17:03:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: WPA association/authentication failed

Downgrade wpa_supplicant to 2.0-4 and see if that works.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-06-15 21:42:28

Ailen
Member
Registered: 2014-05-01
Posts: 32

Re: WPA association/authentication failed

Thank you for the suggestions. I have tried both downgrading wpa_supplicant and regenerating the .conf file with wpa_passphrase, neither of which seemed to change anything.

I used the newly generated wpa_supplicant.conf to run wpa_supplicant on both the on-board wireless card (wlp9s0) and the USB wireless dongle (enp11s0u2) with the following result.

 [root@autarch matthew]# cat /etc/wpa_supplicant/wpa_supplicant.conf
network={
        ssid="MKS"
        #psk="passphrase"
        psk=<passphrase>
}
[root@autarch matthew]# wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -i enp11s0u2
Successfully initialized wpa_supplicant
enp11s0u2: Trying to associate with 48:f8:b3:a6:50:a1 (SSID='MKS' freq=2417 MHz)
enp11s0u2: Associated with 48:f8:b3:a6:50:a1
enp11s0u2: Authentication with 48:f8:b3:a6:50:a1 timed out.
enp11s0u2: CTRL-EVENT-DISCONNECTED bssid=48:f8:b3:a6:50:a1 reason=3 locally_generated=1
enp11s0u2: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
enp11s0u2: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MKS" auth_failures=1 duration=10
^C
enp11s0u2: CTRL-EVENT-TERMINATING
[root@autarch matthew]# wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -i wlp9s0
Successfully initialized wpa_supplicant
wlp9s0: Trying to associate with 48:f8:b3:a6:50:a1 (SSID='MKS' freq=2417 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
wlp9s0: Association request to the driver failed
wlp9s0: Associated with 48:f8:b3:a6:50:a1
wlp9s0: WPA: Key negotiation completed with 48:f8:b3:a6:50:a1 [PTK=CCMP GTK=CCMP]
wlp9s0: CTRL-EVENT-CONNECTED - Connection to 48:f8:b3:a6:50:a1 completed [id=0 id_str=]

I can then continue with dhcpcd and have a live internet connection with wlp9s0.

I downgraded wpa_supplicant one version further with no effect (not sure why i thought it might.) Since the same network block works for one device and not the other i'm inclined to think it's something with the drivers for the card. But the only problem is WPA authentication.. It connects just fine to an unsecured network at work. I don't have access to the router at home to change any of its configuration.

The only other thing I can think of is that I installed Arch with the intention of tweaking and playing and breaking things to learn as much as I could in the process and I may have tweaked and/or broken the wrong thing.

Offline

Board footer

Powered by FluxBB