Xiaomi WiFI connection drops when WPA: group key handshake

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
damcko888
DD-WRT Novice


Joined: 27 Jul 2022
Posts: 4

PostPosted: Sat Aug 13, 2022 0:30    Post subject: Xiaomi WiFI connection drops when WPA: group key handshake Reply with quote
Hi.
I have problems with my WiFi connection.
I have WRT1900ACS v2 and Xiaomi redmi note 11 With MIUI 13 based on android 11 (ver V13.0.11.0.RGKEUXM).
I did some testing and figure out that the connection drops when the WPA group key handshake occur.

This is in my log (hostapd.log): wlan1: STA fc:02:96:xx:xx:xx WPA: group key handshake failed (RSN) after 4 tries
I tried all the builds from last three month with different settings.
I wonder if someone faced the same problem and maybe find the solution?

Thx in advance and good job guys.
Bye
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 13, 2022 7:53    Post subject: Reply with quote
@damcko888 read the Marvell forum FAQ – README And provide the basic information required you have omitted.

Thanks in advance.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
damcko888
DD-WRT Novice


Joined: 27 Jul 2022
Posts: 4

PostPosted: Sat Aug 13, 2022 13:45    Post subject: Reply with quote
Thx for reply.
My basic info are:
Linksys WRT1900ACS v2
Firmware: DD-WRT v3.0-r49681 std (08/13/22)
Operating mode is in GATEWAY and WiFi in AP mode





This is in my log when error occurs:
hostapd: wlan1: STA d0:d0:03:xx:xx:xx WPA: group key handshake completed (RSN)
hostapd: wlan0: STA 8c:8d:28:xx:xx:xx WPA: group key handshake completed (RSN)
hostapd: wlan1: STA fc:02:96:xx:xx:xx WPA: group key handshake failed (RSN) after 4 tries
hostapd: wlan1: STA fc:02:96:xx:xx:xx IEEE 802.11: deauthenticated due to local deauth request
hostapd: wlan1: STA fc:02:96:xx:xx:xx MLME: auth request, signal -38 (Accepted)
hostapd: wlan1: STA fc:02:96:xx:xx:xx IEEE 802.11: authenticated
hostapd: wlan1: STA fc:02:96:xx:xx:xx MLME: assoc request, signal -37 (Accepted)
hostapd: wlan1: STA fc:02:96:xx:xx:xx IEEE 802.11: associated (aid 1)
hostapd: wlan1: STA fc:02:96:xx:xx:xx RADIUS: starting accounting session 435E9B93A1E46CFE
hostapd: wlan1: STA fc:02:96:xx:xx:xx WPA: pairwise key handshake completed (RSN)


I did the upgrade to the new fw and HW reset and then reconfigure the router...
THX
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 13, 2022 14:10    Post subject: Reply with quote
Thanks for that information, now we see what we are dealing with.

First I think you need to disable wpa2 personal with sha256, you wont find many clients that support that.

And unless you have clients which support WPA3 Personal / SAE, you can disable that also. I dont think your Redmi supports either sha256 or WPA3 by default, if you were running some 3rd party ROM with the patches, maybe and emphases on maybe..

Then... Instead of Network Mode as Mixed you should try N / G Mixed for 2.4GHz and AC / N Mixed for 5GHz

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
damcko888
DD-WRT Novice


Joined: 27 Jul 2022
Posts: 4

PostPosted: Sun Aug 14, 2022 7:23    Post subject: Reply with quote
I've tried al the possible combination of different Wireless settings but the phone still disconnects when group handshake occurs.
As a workaround i set the renew time to 24h (Key Renewal Interval -> 86400).
I think is a problem with Xiaomi(android) drivers. I'll wait for the next update of my phone.

THX for the help.
deda.cro
DD-WRT Novice


Joined: 25 May 2022
Posts: 2

PostPosted: Fri Aug 19, 2022 16:26    Post subject: Reply with quote
Same issue here, for almost a year.
I have bought POCO F3 11 months ago and since then, no matter which ddwrt version(current firmware: DD-WRT v3.0-r49741 std) I have on my router, I have this problem.
Tried changing different settings, different channels, nothing helped.
Only temporary solution is to change Key Renewal Interval to zero, but I know what kind of issue that brings. Sad
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Aug 19, 2022 17:55    Post subject: Reply with quote
If you are also using auto channel then that can be a source of problems.

When the key renews the router probably is also looking for a new channel.

Bottom line do not use auto channel but pick one.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Aug 19, 2022 18:21    Post subject: Reply with quote
damcko888 wrote:
I've tried al the possible combination of different Wireless settings but the phone still disconnects when group handshake occurs.
As a workaround i set the renew time to 24h (Key Renewal Interval -> 86400).
I think is a problem with Xiaomi(android) drivers. I'll wait for the next update of my phone.

THX for the help.


Well, it could be the drivers, but they dont really update drivers that often. I also have a xiaomi and I exclusively use wpa2 AES only, no disconnect here, but like egc said auto-channel is also terrible. OK I have a Broadcom router, but actually worse since its closed source drivers.

Most Xiaomi will not support SHA-256 or WPA3 by default, only some few 3rd party roms will have patches to enable that support. Xiaomi will never enable the support even though its technically capable on some devices. Just look at their boards for various devices.

Thats said, you should only use and enable what your client devices use/support and create VAPS for special or problematic devices.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
damcko888
DD-WRT Novice


Joined: 27 Jul 2022
Posts: 4

PostPosted: Fri Aug 19, 2022 18:31    Post subject: Reply with quote
I also did some test with my ASUS RT-N18U and WRT54GL and have no problems. It is the Marvell and Xiaomi compatibility...In my opinion.
Xiaomi announced a new version of MIUI13 based on Android 12...waiting....
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Aug 19, 2022 19:02    Post subject: Reply with quote
Well, Im waiting as well to see what happens but will need to wait here another 2 months minimum, after that I will be flashing LineageOS since that will be last MiUi/Android uptick for my xiaomi and while Ill miss some particular app, its not a great loss.s

Like I said drivers will likely not see any upgrades, so far none have happened.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum