Eu configurei um dongle wifi usb (Ralink 148f: 7601) e agora quero conectá-lo ao meu roteador.
Estou usando os seguintes comandos:
$ wpa_passphrase "SSID" "password"
copie o psk
para o meu arquivo de configuração:
ap_scan=1
network={
ssid="SSID"
scan_ssid=1
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=xxxxxxxx84f5ca1f640b21323682d51b7e880318e2da8813a6d4e9c8xxxxxxxx
priority=5
}
e, em seguida, wpa_supplicant
$ sudo wpa_supplicant -Dwext -ira0 -c ~/wpaconfig2 -d
Eu recebo o seguinte log / erros link
Alguém pode me dizer o que estou fazendo de errado?
EDIT2
Alterei as configurações no roteador para aceitar WPA-PSK
e WPA2-PSK
e agora tenho o seguinte;
e agora tenho o seguinte log link passando para a fase ASSOCIATED
ra0: Event ASSOCINFO (4) received [25/1968]
ra0: Association info event
req_ies - hexdump(len=46): 00 0a 4e 4f 5f 54 4f 5f 41 43 54 41 01 08 82 84 8b 96 0c 12 18 24 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
ra0: Event ASSOC (0) received
ra0: State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
ra0: Associated to a new BSS: BSSID=00:27:19:d0:xx:xx
ra0: No keys have been configured - skip key clearing
ra0: Associated with 00:27:19:d0:xx:xx
ra0: WPA: Association event - clear replay counter
ra0: WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
ra0: Setting authentication timeout: 10 sec 0 usec
ra0: Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
ra0: Event DISASSOC (1) received
ra0: Disassociation notification
ra0: WPA: Auto connect enabled: try to reconnect (wps=0)
ra0: Setting scan request: 0 sec 100000 usec
Added BSSID 00:27:19:d0:xx:xx into blacklist
ra0: Not rescheduling scan to ensure that specific SSID scans occur
ra0: CTRL-EVENT-DISCONNECTED bssid=00:27:19:d0:xx:xx reason=0
ra0: Disconnect event - remove keys
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ra0: State: ASSOCIATED -> DISCONNECTED
EDITAR
Dump de associação no link do wireshark plaintext