wpa_supplicant problems

3

Estou trabalhando em um dispositivo sem o NetworkManager ou outras gentilezas e estou tentando conectar-me a uma rede WPA2.

Por alguma razão, o wpa_supplicant não consegue associar-se corretamente a todas as redes que tentei. (Log de exemplo abaixo).

Alguém pode identificar o problema a partir da saída? Se não, como vou diagnosticar o problema?

EDIT 1:

Percebi que posso provocar esse comportamento em outra máquina quando wpa_supplicant for conectado com êxito a um AP e eu executar scan in wpa_cli . Mesmo após a conclusão da verificação, a sessão wpa_supplicant em execução permanece bloqueada no loop mostrado abaixo.

[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
    
por ARF 29.04.2016 / 21:41

1 resposta

2

APARECE que o driver ar6k tem falhas. Estou surpreso por este ser um produto Atheros. Confira as notas / fóruns de hardware para o seu sistema em relação a esse driver.

O comando shell e o arquivo .conf não parecem ter erros. Você consegue se conectar a uma rede não criptografada?

    
por 30.04.2016 / 00:17