diff options
| author | Miri Korenblit <miriam.rachel.korenblit@intel.com> | 2026-05-27 22:51:45 +0300 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-05-28 10:50:23 +0300 |
| commit | f1a389fcc3f13a00c1202b0f63e073a2054184cc (patch) | |
| tree | 319afa18c30bb1dd25686a7012bed9dfa1143c3d /include/linux/stackprotector.h | |
| parent | a5b9ebd5c3f409ddfe1c15bdba361f904c16d719 (diff) | |
| download | linux-f1a389fcc3f13a00c1202b0f63e073a2054184cc.tar.xz | |
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 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
