Re: [PATCH v2 10/11] wifi: rtw88: record beacons from the target BSSID before authenticating
From: luka . gejak
Date: Thu Jul 30 2026 - 04:03:39 EST
From: Luka Gejak <luka.gejak@xxxxxxxxx>
On 27/07/2026 09:27, Ping-Ke Shih wrote:
> I know vendor driver does wait for a beacon, but I don't think this can
> affect connection. Could you confirm this again?
Confirmed, and you are right. This patch is dropped in v3.
I built the series with the wait removed and left everything else
alone, then ran association attempts from a cold module reload and from
a warm reconnect:
with the wait: 10/10 cold, 10/10 warm
without the wait: 12/12 cold, 12/12 warm
Time to wpa_state=COMPLETED was the same in both, around 4 s, with one
outlier either way.
Looking at it again the reason is visible in the patch itself: the
pre-auth deauth in patch 11 already sleeps 100 ms afterwards, and the
recording window opens before that sleep, so on a 100 ms beacon
interval the wait had almost always already been satisfied by the time
it was reached. It was measuring the sleep, not doing anything.
Dropping it also removes struct rtw_auth_sync, so your point about
using a completion instead of the spinlock, and the caller check in the
RX path, are both moot. Thanks for pushing on it.
Best regards,
Luka Gejak