lwfinger / rtl8723bu

Driver for RTL8723BU
283 stars 143 forks source link

Authentication failed #108

Open Cyfell opened 5 years ago

Cyfell commented 5 years ago

Hi, I'v got an issue with the WPA2 (and WPA) authentication. I try to create an AP protected by WPA2 but none of my devices are able to pass throw the authentication. here are the kernel logs of my phone attempting to connect the AP on my computer :

RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:3,3 RTL871X: RTW_ADAPTIVITY_MODE_NORMAL RTL871X: nolinked power save leave Using interface wlan0 with hwaddr ec:3d:fd:6f:4f:24 and ssid "wifi-bill" RTL871X: assoc success wlan0: interface state UNINITIALIRTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES ZED->ENABLED wlan0: AP-ENABLED wlan0: STA f0:d7:aa:77:83:c5 IEEE 802.11: associated RTL871X: ap recv deauth reason code(3) sta:f0:d7:aa:77:83:c5 wlan0: STA f0:d7:aa:77:83:c5 IEEE 802.11: disassociated wlan0: STA f0:d7:aa:77:83:c5 IEEE 802.11: associated RTL871X: ap recv deauth reason code(3) sta:f0:d7:aa:77:83:c5 wlan0: STA f0:d7:aa:77:83:c5 IEEE 802.11: disassociated wlan0: STA f0:d7:aa:77:83:c5 IEEE 802.11: associated

and so on...

if I remove WPA2 authentication it works well :

RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:3,3 RTL871X: RTW_ADAPTIVITY_MODE_NORMAL RTL871X: nolinked power save leave RTL871X: port switch - port0(wlan0), port1(wlan1) Using interface wlan0 with hwaddr ec:3d:fd:6f:4f:24 and ssid "wifi-bill" RTL871X: assoc success wlan0: interface state UNINITIALIZED->ENABLED wlan0: AP-ENABLED wlan0: STA f0:d7:aa:77:83:c5 IEEE 802.11: associated wlan0: AP-STA-CONNECTED f0:d7:aa:77:83:c5 wlan0: STA f0:d7:aa:77:83:c5 RADIUS: starting accounting session 5B56F3D6-00000000

I tried to simply connect to WPA wifi network, it fails. I can connect unsecure wifi network.

From time to time, when AP is up I got : (I don't know if its usefull)

RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:AES RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:AES RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:AES RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:AES RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:AES RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES RTL871X: set group key camid:2, addr:00:00:00:00:00:00, kid:2, type:AES

do you have any idea how to investigate this problem ?

kernel : 3.14.52 hostapd.conf :

interface=wlan0 driver=nl80211 ssid=wifi-bill hw_mode=g channel=7 wmm_enabled=0 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=Passphrase wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP rsn_pairwise=CCMP

I also tried with WPA authentication, same result as WPA2... If you want any additional info, just ask. Thank you for your time Arthur