Skip to content

mac80211: scan: fix ms/jiffies mismatch in passive scan overhead#1166

Merged
mkwacz merged 1 commit into
staging-for-v4.2.0-LTSfrom
staging-WIFI-14822-PoC-4.2.0-LTS
Jul 13, 2026
Merged

mac80211: scan: fix ms/jiffies mismatch in passive scan overhead#1166
mkwacz merged 1 commit into
staging-for-v4.2.0-LTSfrom
staging-WIFI-14822-PoC-4.2.0-LTS

Conversation

@mkwacz

@mkwacz mkwacz commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

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

@venkatchimata venkatchimata requested review from venkatchimata and removed request for venkatchimata July 3, 2026 12:07

@SebastianHuang-ec SebastianHuang-ec left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch will not be applied to EAP111 because EAP111 use the "mediatek" feed instead of "mediatek-sdk" feed in the LTS branch. But this patch can still apply to other mediatek platforms, such as EAP112.

@mkwacz

mkwacz commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

It is only draft, I would like to validate sth on 4.2.0.

@mkwacz

mkwacz commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

This patch will not be applied to EAP111 because EAP111 use the "mediatek" feed instead of "mediatek-sdk" feed in the LTS branch. But this patch can still apply to other mediatek platforms, such as EAP112.

Thanks for this clue.

@mkwacz mkwacz requested a review from tanyasingh-ec July 7, 2026 10:43
@mkwacz mkwacz force-pushed the staging-WIFI-14822-PoC-4.2.0-LTS branch from 58fd12d to fa95cc4 Compare July 7, 2026 10:49
@mkwacz

mkwacz commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

Added ucron fix to rebuild image for testing too.

@mkwacz mkwacz requested a review from ArifAlam July 7, 2026 10:50
@mkwacz mkwacz marked this pull request as ready for review July 7, 2026 10:51

@tanyasingh-ec tanyasingh-ec left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@mkwacz mkwacz force-pushed the staging-WIFI-14822-PoC-4.2.0-LTS branch from fa95cc4 to 5b6bc4b Compare July 9, 2026 09:58
@mkwacz

mkwacz commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

Local ucrun is already available in the 4.2.0-LTS branch. No need to include that commit

Agree, it was only due to preparing test image for validation. Patch rebased.

@mkwacz mkwacz requested a review from tanyasingh-ec July 9, 2026 09:58
@mkwacz mkwacz merged commit 7ada0b3 into staging-for-v4.2.0-LTS Jul 13, 2026
55 of 58 checks passed
@mkwacz mkwacz deleted the staging-WIFI-14822-PoC-4.2.0-LTS branch July 13, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants