]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: derive S1G beacon TSF from S1G fields
authorZhao Li <enderaoelyther@gmail.com>
Thu, 11 Jun 2026 16:19:46 +0000 (00:19 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:09 +0000 (14:11 +0200)
commit4e5a4641e7b4763656336b7891d01359aaf363cd
tree17d71f7840ae9722c94dbae3f9260d1b0a7affee
parent57d503ce32eccfa7650065ca4c560f7e29a2e676
wifi: cfg80211: derive S1G beacon TSF from S1G fields

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")
Signed-off-by: Zhao Li <enderaoelyther@gmail.com>
Tested-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Reviewed-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20260611161943.91069-6-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c