You are not logged in.

#1 2021-03-29 16:01:35

khvalera
Member
Registered: 2015-11-17
Posts: 30
Website

RTL8189ES/ETV + WPA or WPA2

Faced the issue of using WPA or WPA2 on RTL8189ES/ETV.
When using this WIFI device as an open access point or client, the connection occurs without problems, and when WPA or WPA2 is used, then when connecting, I receive a message that the password is incorrect. The driver collected from here: https://github.com/jwrdegoede/rtl8189ES_linux. Checked on linux-5.8.9, 5.10 and 5.11.2 kernels. Tried programs hostapd, NetworkManager and wpa_supplicant.
NetworkManager wlan0.nmconnection:

[connection]
id=wlan0
uuid=ef6ce3dc-b6a5-478c-96a2-6aabaf65ffba
type=wifi
interface-name=wlan0
permissions=

[wifi]
band=bg
channel=5
mac-address-blacklist=
mode=ap
ssid=test

[wifi-security]
key-mgmt=wpa-psk
psk=1234567890

[ipv4]
dns-search=
method=link-local

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=link-local

# dbus-send --system --print-reply --dest=fi.w1.wpa_supplicant1 /fi/w1/wpa_supplicant1 org.freedesktop.DBus.Properties.Set string:fi.w1.wpa_supplicant1 string:DebugLevel variant:string:"msgdump"

# journalctl -f

мар 25 13:12:50 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - disassociated
mar 25 13:12:50 router-r1 wpa_supplicant[366]: Disassociation notification for unknown STA cc:73:14:75:60:ee
mar 25 13:13:14 router-r1 wpa_supplicant[366]: nl80211: Event message available
mar 25 13:13:14 router-r1 wpa_supplicant[366]: nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
mar 25 13:13:14 router-r1 wpa_supplicant[366]: nl80211: New station cc:73:14:75:60:ee
mar 25 13:13:14 router-r1 wpa_supplicant[366]: nl80211: Assoc Req IEs - hexdump(len=133): 00 04 74 65 73 74 01 08 02 04 0b 16 0c 12 18 24 32 04 30 48 60 6c 3b 14 51 51 53 54 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 21 02 08 14 2d 1a 3c 01 03 ff 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 46 05 7b 00 02 00 00 7f 08 00 00 08 00 00 00 00 00 dd 07 00 50 f2 02 00 01 00 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 06 00 00 dd 07 00 0c e7 08 00 00 00
mar 25 13:13:14 router-r1 wpa_supplicant[366]: wlan0: Event ASSOC (0) received
mar 25 13:13:14 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - associated
mar 25 13:13:14 router-r1 wpa_supplicant[366]: STA included RSN IE in (Re)AssocReq
mar 25 13:13:14 router-r1 wpa_supplicant[366]:   New STA
mar 25 13:13:14 router-r1 wpa_supplicant[366]: ap_sta_add: register ap_handle_timer timeout for cc:73:14:75:60:ee (300 seconds - ap_max_inactivity)
mar 25 13:13:14 router-r1 wpa_supplicant[366]: nl80211: Set STA flags - ifname=wlan0 addr=cc:73:14:75:60:ee total_flags=0x60 flags_or=0x0 flags_and=0xfffffff1 authorized=0
mar 25 13:13:14 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - event 1 notification
mar 25 13:13:14 router-r1 wpa_supplicant[366]: wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=0x15efb68 key_idx=0 set_tx=1 seq_len=0 key_len=0
mar 25 13:13:14 router-r1 wpa_supplicant[366]:    addr=cc:73:14:75:60:ee
mar 25 13:13:14 router-r1 wpa_supplicant[366]: P2P: First non-P2P device connected
mar 25 13:13:14 router-r1 wpa_supplicant[366]: IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
mar 25 13:13:14 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - start authentication
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state INITIALIZE
mar 25 13:13:14 router-r1 wpa_supplicant[366]: wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=0x15efb68 key_idx=0 set_tx=1 seq_len=0 key_len=0
mar 25 13:13:14 router-r1 wpa_supplicant[366]:    addr=cc:73:14:75:60:ee
mar 25 13:13:14 router-r1 wpa_supplicant[366]: nl80211: Set STA flags - ifname=wlan0 addr=cc:73:14:75:60:ee total_flags=0x60 flags_or=0x0 flags_and=0xfffffffe authorized=0
mar 25 13:13:14 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - unauthorizing port
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK_GROUP entering state IDLE
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state AUTHENTICATION
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state AUTHENTICATION2
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: Assign ANonce - hexdump(len=32): cc 1b 84 f7 f5 07 9b d0 33 8c 25 6f e6 97 b1 fe e3 54 ed bf ee 75 bf 38 b6 ae fb 0e 1b 62 6c 26
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state INITPSK
mar 25 13:13:14 router-r1 wpa_supplicant[366]: Searching a PSK for cc:73:14:75:60:ee prev_psk=(nil)
mar 25 13:13:14 router-r1 wpa_supplicant[366]: Searching a PSK for cc:73:14:75:60:ee prev_psk=(nil)
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state PTKSTART
mar 25 13:13:14 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - sending 1/4 msg of 4-Way Handshake
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: Send EAPOL(version=3 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
mar 25 13:13:14 router-r1 wpa_supplicant[366]: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
mar 25 13:13:14 router-r1 wpa_supplicant[366]: wlan0: hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for cc:73:14:75:60:ee (300 seconds - ap_max_inactivity)
mar 25 13:13:14 router-r1 wpa_supplicant[366]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
mar 25 13:13:15 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - EAPOL-Key timeout
mar 25 13:13:15 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state PTKSTART
mar 25 13:13:15 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - sending 1/4 msg of 4-Way Handshake
mar 25 13:13:15 router-r1 wpa_supplicant[366]: WPA: Send EAPOL(version=3 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
mar 25 13:13:15 router-r1 wpa_supplicant[366]: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
mar 25 13:13:15 router-r1 wpa_supplicant[366]: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
mar 25 13:13:16 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - EAPOL-Key timeout
mar 25 13:13:16 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state PTKSTART
mar 25 13:13:16 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - sending 1/4 msg of 4-Way Handshake
mar 25 13:13:16 router-r1 wpa_supplicant[366]: WPA: Send EAPOL(version=3 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
mar 25 13:13:16 router-r1 wpa_supplicant[366]: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 03
mar 25 13:13:16 router-r1 wpa_supplicant[366]: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 3)
mar 25 13:13:17 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - EAPOL-Key timeout
mar 25 13:13:17 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state PTKSTART
mar 25 13:13:17 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - sending 1/4 msg of 4-Way Handshake
mar 25 13:13:17 router-r1 wpa_supplicant[366]: WPA: Send EAPOL(version=3 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
mar 25 13:13:17 router-r1 wpa_supplicant[366]: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 04
mar 25 13:13:17 router-r1 wpa_supplicant[366]: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 4)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - EAPOL-Key timeout
mar 25 13:13:18 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state PTKSTART
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - PTKSTART: Retry limit 4 reached
mar 25 13:13:18 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state DISCONNECT
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wpa_sta_disconnect STA cc:73:14:75:60:ee (reason 2)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA cc:73:14:75:60:ee reason 2
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wlan0: ap_sta_disconnect addr cc:73:14:75:60:ee reason=2
mar 25 13:13:18 router-r1 wpa_supplicant[366]: nl80211: sta_remove -> DEL_STATION wlan0 cc:73:14:75:60:ee --> 0 (Success)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - event 3 notification
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=0x15efb68 key_idx=0 set_tx=1 seq_len=0 key_len=0
mar 25 13:13:18 router-r1 wpa_supplicant[366]:    addr=cc:73:14:75:60:ee
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wlan0: ap_sta_disconnect: reschedule ap_handle_timer timeout for cc:73:14:75:60:ee (5 seconds - AP_MAX_INACTIVITY_AFTER_DEAUTH)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state DISCONNECTED
mar 25 13:13:18 router-r1 wpa_supplicant[366]: WPA: cc:73:14:75:60:ee WPA_PTK entering state INITIALIZE
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=0x15efb68 key_idx=0 set_tx=1 seq_len=0 key_len=0
mar 25 13:13:18 router-r1 wpa_supplicant[366]:    addr=cc:73:14:75:60:ee
mar 25 13:13:18 router-r1 wpa_supplicant[366]: nl80211: Set STA flags - ifname=wlan0 addr=cc:73:14:75:60:ee total_flags=0x0 flags_or=0x0 flags_and=0xfffffffe authorized=0
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - unauthorizing port
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wlan0: Deauthentication callback for STA cc:73:14:75:60:ee
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wlan0: Removing STA cc:73:14:75:60:ee from kernel driver
mar 25 13:13:18 router-r1 wpa_supplicant[366]: nl80211: sta_remove -> DEL_STATION wlan0 cc:73:14:75:60:ee --> 0 (Success)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - MLME-DEAUTHENTICATE.indication(cc:73:14:75:60:ee, 2)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - MLME-DELETEKEYS.request(cc:73:14:75:60:ee)
mar 25 13:13:18 router-r1 wpa_supplicant[366]: wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=0x15efb68 key_idx=0 set_tx=1 seq_len=0 key_len=0
mar 25 13:13:18 router-r1 wpa_supplicant[366]:    addr=cc:73:14:75:60:ee
mar 25 13:13:23 router-r1 wpa_supplicant[366]: wlan0: ap_handle_timer: cc:73:14:75:60:ee flags=0x40000000 timeout_next=3
mar 25 13:13:23 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - deauthenticated due to local deauth request
mar 25 13:13:23 router-r1 wpa_supplicant[366]: nl80211: sta_remove -> DEL_STATION wlan0 cc:73:14:75:60:ee --> 0 (Success)
mar 25 13:13:23 router-r1 wpa_supplicant[366]: P2P: Last non-P2P device disconnected
mar 25 13:13:23 router-r1 wpa_supplicant[366]: hostapd_ht_operation_update current operation mode=0x0
mar 25 13:13:23 router-r1 wpa_supplicant[366]: hostapd_ht_operation_update new operation mode=0x0 changes=0
mar 25 13:13:23 router-r1 wpa_supplicant[366]: ap_free_sta: cancel ap_handle_timer for cc:73:14:75:60:ee
mar 25 13:13:25 router-r1 wpa_supplicant[366]: nl80211: Event message available
mar 25 13:13:25 router-r1 wpa_supplicant[366]: nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
mar 25 13:13:25 router-r1 wpa_supplicant[366]: nl80211: Delete station cc:73:14:75:60:ee
mar 25 13:13:25 router-r1 wpa_supplicant[366]: wlan0: Event DISASSOC (1) received
mar 25 13:13:25 router-r1 wpa_supplicant[366]: wlan0: Disassociation notification
mar 25 13:13:25 router-r1 wpa_supplicant[366]: wlan0:  * reason 0 (UNKNOWN)
mar 25 13:13:25 router-r1 wpa_supplicant[366]: wlan0:  * address cc:73:14:75:60:ee
mar 25 13:13:25 router-r1 wpa_supplicant[366]: Disassociation frame IE(s) - hexdump(len=0): [NULL]
mar 25 13:13:25 router-r1 wpa_supplicant[366]: hostapd_logger: STA cc:73:14:75:60:ee - disassociated
mar 25 13:13:25 router-r1 wpa_supplicant[366]: Disassociation notification for unknown STA cc:73:14:75:60:ee

With other WIFI devices on this computer and with these settings, everything works fine.
Does anyone have any idea where to dig?

Offline

#2 2021-03-30 13:13:18

khvalera
Member
Registered: 2015-11-17
Posts: 30
Website

Re: RTL8189ES/ETV + WPA or WPA2

If you add when compiling the driver:
EXTRA_CFLAGS + = -DCONFIG_CONCURRENT_MODE
a second wlan device appears and it works fine with WPA and WPA2 in both access point and client mode.
But why isn't wlan0 working?

Offline

#3 2021-03-31 12:55:42

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: RTL8189ES/ETV + WPA or WPA2

Did you open https://github.com/jwrdegoede/rtl8189ES_linux/issues/58 ?

Is this an x86_64 or ARM system ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2021-03-31 18:57:33

khvalera
Member
Registered: 2015-11-17
Posts: 30
Website

Re: RTL8189ES/ETV + WPA or WPA2

Lone_Wolf wrote:

Did you open https://github.com/jwrdegoede/rtl8189ES_linux/issues/58 ?

Is this an x86_64 or ARM system ?

Tested on Orange Pi R1 board. This is the archlinux ARM. But I think the problem is common.
My PKGBUILD: https://aur.archlinux.org/rtl8189es-git.git

Last edited by khvalera (2021-03-31 19:23:34)

Offline

Board footer

Powered by FluxBB