diff options
| author | 2026-10-09 20:10:03 +0200 | |
|---|---|---|
| committer | 2026-10-13 13:58:13 +0200 | |
| commit | 9b790d94d7244e2926eca1434b5b56c3ecae49ef (patch) | |
| tree | 4dcac72da789fc80f534cd0241a9296f64c0e3a9 /scripts/Makefile.thinlto | |
| parent | wifi: mac80211: refactor beacon allocation (diff) | |
wifi: mac80211: implement lockless beacon updates
Implement the new update_beacon() method to update beacon
and related templates without the wiphy mutex. If anything
else were to change return -EAGAIN, same if there are any
active countdowns, and during HW restart. Eventually, the
idea is to replace countdowns by beacon update requests so
hostapd can handle everything instead.
This doesn't enable it for any drivers since it depends on
the driver behaviour, if it fetches each beacon and doesn't
use the other templates it can just set the feature flag
(NL80211_EXT_FEATURE_UPDATE_BEACON), otherwise it must
implement the new update_beacon() mac80211 method.
The regular beacon update may need to take head, tail and
MBSSID/RNR elements from the old beacon, so while that's
going on mark "bss_update_in_progress" and make lockless
updates return -EAGAIN during that time, so that the old
data remains valid/identical.
For MBSSID, the lockless path also can't copy old data,
so that also has to return -EAGAIN.
All those -EAGAIN cases fall back to cfg80211 and do the
update with the lock held, where it can then be handled.
Userspace should ideally ensure it doesn't hit that path.
Assisted-by: LLM
Link: https://patch.msgid.link/20261009201417.a9433ea65d8e.Icfbcd157ac2bdeccfcc74a9f4c3997d3010ec0a9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
