mac80211: scan: fix ms/jiffies mismatch in passive scan overhead#1166
Merged
Conversation
venkatchimata
approved these changes
Jul 3, 2026
Collaborator
Author
|
It is only draft, I would like to validate sth on 4.2.0. |
Collaborator
Author
Thanks for this clue. |
58fd12d to
fa95cc4
Compare
Collaborator
Author
|
Added ucron fix to rebuild image for testing too. |
SebastianHuang-ec
approved these changes
Jul 8, 2026
tanyasingh-ec
requested changes
Jul 8, 2026
tanyasingh-ec
left a comment
Collaborator
There was a problem hiding this comment.
Local ucrun is already available in the 4.2.0-LTS branch. No need to include that commit
On mediatek/filogic (mac80211 backports 6.12.6) set the passive channel dwell to scan_req->duration minus a fixed overhead (IEEE80211_PASSIVE_MIN_CHANNEL_TIME, HZ/20 = 50ms at CONFIG_HZ=100) to compensate for FW channel switch and wiphy_delayed_work scheduling. Measured channel active time then tracks the requested duration to within ~5ms for durations >= 100ms. Fixes: WIFI-14822 Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
fa95cc4 to
5b6bc4b
Compare
Collaborator
Author
Agree, it was only due to preparing test image for validation. Patch rebased. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On mediatek/filogic (mac80211 backports 6.12.6) set the passive
channel dwell to scan_req->duration minus a fixed overhead
(IEEE80211_PASSIVE_MIN_CHANNEL_TIME, HZ/20 = 50ms at CONFIG_HZ=100)
to compensate for FW channel switch and wiphy_delayed_work scheduling.
Measured channel active time then tracks the requested duration to
within ~5ms for durations >= 100ms.
Fixes: WIFI-14822