2022-03-06 17:52:06

by Riccardo Paolo Bestetti

[permalink] [raw]
Subject: MK7921K de-auths from AP every 5 minutes

Hi,

I have recently installed an AMD RZ608 Wi-Fi card in my laptop. The card
uses the MT7921K chipset from MediaTek. I'm running Arch Linux, using
kernel 5.16.12-arch1-1. I'm using iwd 1.25-1 as my wireless daemon.

I'm experiencing de-auths every 5 minutes from my AP, which is a MikroTik
RB962UiGS-5HacT2HnT running the latest firmware. This has a AR9888 wireless
chip. It is indeed configured to update group keys every 5 minutes.

All the de-auths happen with excellent signal and SNR (consistently 50dB
or better as reported by the router, which is only a few meters apart
form the laptop). My router is set up on a fixed channel, with fixed
channel width 20MHz. The almost perfect periodicity also suggests that
bad signal is not an issue at play.

The kernel log does not report any messages from the driver. Only:

Mar 06 12:19:21 enhorning kernel: wlan0: deauthenticated from 08:55:31:cc:23:c3 (Reason: 16=GROUP_KEY_HANDSHAKE_TIMEOUT)
Mar 06 12:19:23 enhorning kernel: wlan0: authenticate with 08:55:31:cc:23:c3
Mar 06 12:19:23 enhorning kernel: wlan0: send auth to 08:55:31:cc:23:c3 (try 1/3)
Mar 06 12:19:23 enhorning kernel: wlan0: authenticated
Mar 06 12:19:23 enhorning kernel: wlan0: associate with 08:55:31:cc:23:c3 (try 1/3)
Mar 06 12:19:23 enhorning kernel: wlan0: RX AssocResp from 08:55:31:cc:23:c3 (capab=0x431 status=0 aid=2)
Mar 06 12:19:24 enhorning kernel: wlan0: associated
Mar 06 12:24:21 enhorning kernel: wlan0: deauthenticated from 08:55:31:cc:23:c3 (Reason: 16=GROUP_KEY_HANDSHAKE_TIMEOUT)
Mar 06 12:24:23 enhorning kernel: wlan0: authenticate with 08:55:31:cc:23:c3
Mar 06 12:24:23 enhorning kernel: wlan0: send auth to 08:55:31:cc:23:c3 (try 1/3)
Mar 06 12:24:23 enhorning kernel: wlan0: authenticated
Mar 06 12:24:23 enhorning kernel: wlan0: associate with 08:55:31:cc:23:c3 (try 1/3)
Mar 06 12:24:23 enhorning kernel: wlan0: RX AssocResp from 08:55:31:cc:23:c3 (capab=0x431 status=0 aid=2)
Mar 06 12:24:24 enhorning kernel: wlan0: associated
Mar 06 12:29:21 enhorning kernel: wlan0: deauthenticated from 08:55:31:cc:23:c3 (Reason: 6=CLASS2_FRAME_FROM_NONAUTH_STA)
Mar 06 12:29:28 enhorning kernel: wlan0: authenticate with 08:55:31:cc:23:c3
Mar 06 12:29:28 enhorning kernel: wlan0: send auth to 08:55:31:cc:23:c3 (try 1/3)
Mar 06 12:29:28 enhorning kernel: wlan0: authenticated
Mar 06 12:29:28 enhorning kernel: wlan0: associate with 08:55:31:cc:23:c3 (try 1/3)
Mar 06 12:29:28 enhorning kernel: wlan0: RX AssocResp from 08:55:31:cc:23:c3 (capab=0x431 status=0 aid=2)
Mar 06 12:29:28 enhorning kernel: wlan0: associated

Pretty much the same from the router:

12:19:21:
BE:1A:C2:58:95:F0@wlan2: disconnected, group key exchange timeout, signal strength -42

12:24:21:
BE:1A:C2:58:95:F0@wlan2: disconnected, group key exchange timeout, signal strength -42

12:29:21:
BE:1A:C2:58:95:F0@wlan2: disconnected, group key exchange timeout, signal strength -42


I have other devices connected to the same access point without issue,
and I can connect to other access points without issue. So I'm figuring
this is an issue specific to the combination of this chip and the
particular access point.

I am not able to say whether the issue is in this driver, or with the
access point. How might I go about finding out?

Best regards,
Riccardo P. Bestetti


2022-03-07 17:40:47

by James

[permalink] [raw]
Subject: Re: MK7921K de-auths from AP every 5 minutes

You could try a different channel?
Is it 2.4 or 5GHz?

2022-03-07 20:00:46

by Riccardo Paolo Bestetti

[permalink] [raw]
Subject: Re: MK7921K de-auths from AP every 5 minutes

On Mon Mar 7, 2022 at 3:15 PM CET, James wrote:
> You could try a different channel?
I tried letting the AP pick channels, and I also tried manually picking
some of the most spectrally-uneventful (as measured by both the AP and
my smartphone) channels in my area. No difference.

> Is it 2.4 or 5GHz?
5 GHz. I have no 2.4GHz network.

Riccardo

2022-03-09 01:06:35

by James

[permalink] [raw]
Subject: Re: MK7921K de-auths from AP every 5 minutes

If you use wpa3, try wpa2.

2022-03-09 01:49:44

by James

[permalink] [raw]
Subject: Re: MK7921K de-auths from AP every 5 minutes

Can you try a rc kernel?

2022-03-16 14:53:04

by James Prestwood

[permalink] [raw]
Subject: Re: MK7921K de-auths from AP every 5 minutes

Hi,

On Sun, 2022-03-06 at 14:00 +0100, Riccardo Paolo Bestetti wrote:
> Hi,
>
> I have recently installed an AMD RZ608 Wi-Fi card in my laptop. The
> card
> uses the MT7921K chipset from MediaTek. I'm running Arch Linux, using
> kernel 5.16.12-arch1-1. I'm using iwd 1.25-1 as my wireless daemon.

Could you also post the IWD debug logs (running with -d).

>
> I'm experiencing de-auths every 5 minutes from my AP, which is a
> MikroTik
> RB962UiGS-5HacT2HnT running the latest firmware. This has a AR9888
> wireless
> chip. It is indeed configured to update group keys every 5 minutes.
>
> All the de-auths happen with excellent signal and SNR (consistently
> 50dB
> or better as reported by the router, which is only a few meters apart
> form the laptop). My router is set up on a fixed channel, with fixed
> channel width 20MHz. The almost perfect periodicity also suggests
> that
> bad signal is not an issue at play.
>
> The kernel log does not report any messages from the driver. Only:
>
> Mar 06 12:19:21 enhorning kernel: wlan0: deauthenticated from
> 08:55:31:cc:23:c3 (Reason: 16=GROUP_KEY_HANDSHAKE_TIMEOUT)
> Mar 06 12:19:23 enhorning kernel: wlan0: authenticate with
> 08:55:31:cc:23:c3
> Mar 06 12:19:23 enhorning kernel: wlan0: send auth to
> 08:55:31:cc:23:c3 (try 1/3)
> Mar 06 12:19:23 enhorning kernel: wlan0: authenticated
> Mar 06 12:19:23 enhorning kernel: wlan0: associate with
> 08:55:31:cc:23:c3 (try 1/3)
> Mar 06 12:19:23 enhorning kernel: wlan0: RX AssocResp from
> 08:55:31:cc:23:c3 (capab=0x431 status=0 aid=2)
> Mar 06 12:19:24 enhorning kernel: wlan0: associated
> Mar 06 12:24:21 enhorning kernel: wlan0: deauthenticated from
> 08:55:31:cc:23:c3 (Reason: 16=GROUP_KEY_HANDSHAKE_TIMEOUT)
> Mar 06 12:24:23 enhorning kernel: wlan0: authenticate with
> 08:55:31:cc:23:c3
> Mar 06 12:24:23 enhorning kernel: wlan0: send auth to
> 08:55:31:cc:23:c3 (try 1/3)
> Mar 06 12:24:23 enhorning kernel: wlan0: authenticated
> Mar 06 12:24:23 enhorning kernel: wlan0: associate with
> 08:55:31:cc:23:c3 (try 1/3)
> Mar 06 12:24:23 enhorning kernel: wlan0: RX AssocResp from
> 08:55:31:cc:23:c3 (capab=0x431 status=0 aid=2)
> Mar 06 12:24:24 enhorning kernel: wlan0: associated
> Mar 06 12:29:21 enhorning kernel: wlan0: deauthenticated from
> 08:55:31:cc:23:c3 (Reason: 6=CLASS2_FRAME_FROM_NONAUTH_STA)
> Mar 06 12:29:28 enhorning kernel: wlan0: authenticate with
> 08:55:31:cc:23:c3
> Mar 06 12:29:28 enhorning kernel: wlan0: send auth to
> 08:55:31:cc:23:c3 (try 1/3)
> Mar 06 12:29:28 enhorning kernel: wlan0: authenticated
> Mar 06 12:29:28 enhorning kernel: wlan0: associate with
> 08:55:31:cc:23:c3 (try 1/3)
> Mar 06 12:29:28 enhorning kernel: wlan0: RX AssocResp from
> 08:55:31:cc:23:c3 (capab=0x431 status=0 aid=2)
> Mar 06 12:29:28 enhorning kernel: wlan0: associated
>
> Pretty much the same from the router:
>
> 12:19:21:
> BE:1A:C2:58:95:F0@wlan2: disconnected, group key exchange timeout,
> signal strength -42
>
> 12:24:21:
> BE:1A:C2:58:95:F0@wlan2: disconnected, group key exchange timeout,
> signal strength -42
>
> 12:29:21:
> BE:1A:C2:58:95:F0@wlan2: disconnected, group key exchange timeout,
> signal strength -42
>
>
> I have other devices connected to the same access point without
> issue,
> and I can connect to other access points without issue. So I'm
> figuring
> this is an issue specific to the combination of this chip and the
> particular access point.
>
> I am not able to say whether the issue is in this driver, or with the
> access point. How might I go about finding out?
>
> Best regards,
> Riccardo P. Bestetti
>