4

I am working on a device without NetworkManager or other niceties and am trying to connect to a WPA2 network.

For some reason, wpa_supplicant fails to associate properly to all the networks I have tried. (Example log below.)

Can somebody identify the issue from the output? If not, how do I go about diagnosing the issue?


EDIT 1:

I realised that I can provoke this behaviour on another machine when wpa_supplicant is successfully connected to a AP and I run scan in wpa_cli. Even after the scan completes, the running wpa_supplicant session stays locked in the loop shown below.

[root@device root]# wpa_passphrase "FRITZ!Box Fon WLAN 7270" >> /tmp/wpa_supplicant.conf

[root@device root]# cat /tmp/wpa_supplicantWorking.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
update_config=1

# reading passphrase from stdin
network={
        ssid="FRITZ!Box Fon WLAN 7270"
        #psk="mypassword"
        psk=5a6... snip ...a9
}

[root@device root]# wpa_supplicant -D ar6000 -i wlan0 -c /tmp/wpa_supplicant.conf -P /var/run/wpa_supplicant.wlan0.pid
drivers - ar6000 ?= ar6000
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-43) reassociate=0 oldSSID=''
Associated to current bssid. Treating as disconnect
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
CTRL-EVENT-DISCONNECTED - netId=-1 reason=DISC_REQUESTED BSSID=00:00:00:00:00:00
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-47) reassociate=0 oldSSID=''
Associated with xx:xx:xx:xx:c3:ae
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-47) reassociate=0 oldSSID=''
Associated with xx:xx:xx:xx:c3:ae
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-46) reassociate=0 oldSSID=''
Associated with xx:xx:xx:xx:c3:ae
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-46) reassociate=0 oldSSID=''
Associated to current bssid. Treating as disconnect
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
CTRL-EVENT-DISCONNECTED - netId=-1 reason=DISC_REQUESTED BSSID=00:00:00:00:00:00
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-47) reassociate=0 oldSSID=''
Associated with xx:xx:xx:xx:c3:ae
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
Trying to associate with xx:xx:xx:xx:c3:ae (SSID='FRITZ!Box Fon WLAN 7270' freq=2412 MHz signal=-48) reassociate=0 oldSSID=''
Associated to current bssid. Treating as disconnect
CTRL-EVENT-DISCONNECTED - netId=0 reason=DISC_REQUESTED BSSID=bc:05:43:8f:c3:ae
CTRL-EVENT-DISCONNECTED - netId=-1 reason=DISC_REQUESTED BSSID=00:00:00:00:00:00
Starting AP scan (SSID: broadcast)
Wireless event: SCAN_RESULTS: Success
3
  • Do you have dhcpcd running for that interface?
    – user732
    Commented Apr 30, 2016 at 4:15
  • @BruceEdiger Yes it is configured in /etc/network/interfaces, but I am currently starting things (driver, wpa_supplicant, etc) by hand. How do you think this influences wpa_supplicant?
    – ARF
    Commented Apr 30, 2016 at 9:38
  • the wpa_supplicant output looks maybe like it associated with the access point, but disconnects after some time. I thought that if dhcpcd wasn't running, then wpa_supplicant just times out and disconnects.
    – user732
    Commented Apr 30, 2016 at 16:43

1 Answer 1

2

It APPEARS that the ar6k driver has flaws. I'm surprised about this being an Atheros product. Check out the hardware notes/forums for your particular system regarding this driver.

The shell command and .conf file didn't appear to have any errors. Can you connect to a non-encrypted network?

1
  • I am going to give it a go an see.
    – ARF
    Commented Apr 30, 2016 at 9:39

You must log in to answer this question.

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