Re: [PATCH v2 2/2] wifi: cfg80211: derive S1G beacon TSF from S1G fields

From: Lachlan Hodges

Date: Thu Jun 11 2026 - 22:29:06 EST


On Fri, Jun 12, 2026 at 12:19:46AM +0800, Zhao Li wrote:
> cfg80211_inform_bss_frame_data() parses S1G beacons with the extension
> frame layout, but still reads the TSF from the regular probe response
> layout after the S1G branch. For S1G beacons that reads bytes at the
> regular management-frame timestamp offset instead of the S1G timestamp.
>
> Use the 32-bit S1G beacon timestamp and the S1G Beacon Compatibility
> element's TSF completion field when informing an S1G BSS. Keep the
> regular management-frame timestamp read in the non-S1G branch.
>
> Fixes: 9eaffe5078ca ("cfg80211: convert S1G beacon to scan results")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Zhao Li <enderaoelyther@xxxxxxxxx>

Looks much better now when passive scanning, thanks :)

Tested-by: Lachlan Hodges <lachlan.hodges@xxxxxxxxxxxxxx>
Reviewed-by: Lachlan Hodges <lachlan.hodges@xxxxxxxxxxxxxx>