ODP: wpa_supplicant with hotspot 2.0 support and network manager on rtl8192fs wireless wifi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok i have found something. With older version of wpa_supplicant 2.6 and hostapd also 2.6 everything is working correctly. My mobile now gets connected with ap made like before. Can it be possible that newer version of wpa_supplicant/hostapd may not work correctly, with old kernel 4.4? Or maybe there is some new bug?

BR
Piotr Lobacz


Od: Piotr Lobacz
Wysłane: czwartek, 4 lutego 2021 12:51
Do: hostap@xxxxxxxxxxxxxxxxxxx <hostap@xxxxxxxxxxxxxxxxxxx>
Temat: wpa_supplicant with hotspot 2.0 support and network manager on rtl8192fs wireless wifi

Hi all,
i have compiled wpa_supplicant 2.9 version together with network manager 1.22 on my px30 arm board. The hotspot is being made with nmcli command like this:

nmcli device wifi hotspot password 12345678 ssid softgent

and i can see that the hotspot has been put on using this command:

nmcli d show wlan0

GENERAL.DEVICE:                         wlan0
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         74:4C:A1:FF:DC:FD
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Hotspot
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/2
IP4.ADDRESS[1]:                         10.42.0.1/24
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 10.42.0.0/24, nh = 0.0.0.0, mt = 600
IP6.ADDRESS[1]:                         fe80::764c:a1ff:feff:dcfd/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[2]:                           dst = ff00::/8, nh = ::, mt = 256


but, if i try to connect thi this hotspot from my mobile i get an error:

Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: EAPOL-Key MIC using HMAC-SHA1
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: 6e:95:7c:a0:99:3d WPA_PTK entering state PTKCALCNEGOTIATING2
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: 6e:95:7c:a0:99:3d WPA_PTK entering state PTKINITNEGOTIATING
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: hostapd_logger: STA 6e:95:7c:a0:99:3d - sending 3/4 msg of 4-Way Handshake
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=1 kde_len=50 keyidx=1 encr=1)
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: Plaintext EAPOL-Key Key Data - hexdump(len=64): [REMOVED]
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: Encrypt Key Data using AES-WRAP (KEK length 16)
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: EAPOL-Key MIC using HMAC-SHA1
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: nl80211: Delete station 6e:95:7c:a0:99:3d
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: wlan0: Event DISASSOC (1) received
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: wlan0: Disassociation notification
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: wlan0:  * reason 0 (UNKNOWN)
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: wlan0:  * address 6e:95:7c:a0:99:3d
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: Disassociation frame IE(s) - hexdump(len=0): [NULL]
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: hostapd_logger: STA 6e:95:7c:a0:99:3d - disassociated
Feb 04 11:04:16 px30-64 wpa_supplicant[241]: hostapd_logger: STA 6e:95:7c:a0:99:3d - event 2 notification

So i see that the connection is being made and for some reason it fails, due to this EAPOL-Key timeout i think.

BR
Piotr
[https://softgent.com/wp-content/uploads/2020/01/Zasob-14.png]<https://www.softgent.com>

Softgent Sp. z o.o., Budowlanych 31d, 80-298 Gdansk, POLAND

KRS: 0000674406, NIP: 9581679801, REGON: 367090912

www.softgent.com

Sąd Rejonowy Gdańsk-Północ w Gdańsku, VII Wydział Gospodarczy Krajowego Rejestru Sądowego

KRS 0000674406, Kapitał zakładowy: 25 000,00 zł wpłacony w całości.

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux