diff options
| author | 2026-05-27 22:51:45 +0300 | |
|---|---|---|
| committer | 2026-05-28 09:50:23 +0200 | |
| commit | f1a389fcc3f13a00c1202b0f63e073a2054184cc (patch) | |
| tree | 319afa18c30bb1dd25686a7012bed9dfa1143c3d /scripts/Makefile.thinlto | |
| parent | wifi: mac80211: refactor ieee80211_nan_try_evacuate (diff) | |
wifi: mac80211: fix channel evacuation logic
When we try to assign a chanctx to a link, if
ieee80211_find_or_create_chanctx() failed, we try to evacuate a NAN
channel and call it again.
This logic is broken:
In case there are not enough chanctxs we will fail earlier,
when we check ieee80211_check_combinations().
To fix this, do the following in case ieee80211_check_combinations()
failed:
- check if there is a NAN channel that can be evacuated
- make ieee80211_check_combinations() not consider the chanctx of that NAN
channel, so we pretend that it was already evacuated
- If now ieee80211_check_combinations() is successful, we know that it
helped, and we can remove that NAN channel for real.
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260527224745.5f7b10505145.I1712bc64f9eec9c99f05994208ad124624a29f1c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
