Commit 9cc899a
wifi: mac80211: improve CSA/ECSA connection refusal
mainline inclusion
from mainline-v6.8-rc4
category: bugfix
As mentioned in the previous commit, we pretty quickly found
that some APs have ECSA elements stuck in their probe response,
so using that to not attempt to connect while CSA is happening
we never connect to such an AP.
Improve this situation by checking more carefully and ignoring
the ECSA if cfg80211 has previously detected the ECSA element
being stuck in the probe response.
Additionally, allow connecting to an AP that's switching to a
channel it's already using, unless it's using quiet mode. In
this case, we may just have to adjust bandwidth later. If it's
actually switching channels, it's better not to try to connect
in the middle of that.
Reported-by: coldolt <andypalmadi@gmail.com>
Closes: https://lore.kernel.org/linux-wireless/CAJvGw+DQhBk_mHXeu6RTOds5iramMW2FbMB01VbKRA4YbHHDTA@mail.gmail.com/
Fixes: c09c4f3 ("wifi: mac80211: don't connect to an AP while it's in a CSA process")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240129131413.cc2d0a26226e.I682c016af76e35b6c47007db50e8554c5a426910@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit 35e2385)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent cb5da4a commit 9cc899a
1 file changed
Lines changed: 76 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7126 | 7126 | | |
7127 | 7127 | | |
7128 | 7128 | | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
| 7133 | + | |
| 7134 | + | |
| 7135 | + | |
| 7136 | + | |
| 7137 | + | |
| 7138 | + | |
| 7139 | + | |
| 7140 | + | |
| 7141 | + | |
| 7142 | + | |
| 7143 | + | |
| 7144 | + | |
| 7145 | + | |
| 7146 | + | |
| 7147 | + | |
| 7148 | + | |
| 7149 | + | |
| 7150 | + | |
| 7151 | + | |
| 7152 | + | |
| 7153 | + | |
| 7154 | + | |
| 7155 | + | |
| 7156 | + | |
| 7157 | + | |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
| 7164 | + | |
| 7165 | + | |
| 7166 | + | |
| 7167 | + | |
| 7168 | + | |
| 7169 | + | |
| 7170 | + | |
| 7171 | + | |
| 7172 | + | |
| 7173 | + | |
| 7174 | + | |
| 7175 | + | |
| 7176 | + | |
| 7177 | + | |
| 7178 | + | |
| 7179 | + | |
| 7180 | + | |
| 7181 | + | |
| 7182 | + | |
| 7183 | + | |
| 7184 | + | |
| 7185 | + | |
| 7186 | + | |
| 7187 | + | |
| 7188 | + | |
| 7189 | + | |
| 7190 | + | |
| 7191 | + | |
| 7192 | + | |
| 7193 | + | |
| 7194 | + | |
| 7195 | + | |
| 7196 | + | |
| 7197 | + | |
7129 | 7198 | | |
7130 | 7199 | | |
7131 | 7200 | | |
7132 | 7201 | | |
7133 | 7202 | | |
7134 | 7203 | | |
7135 | 7204 | | |
7136 | | - | |
7137 | 7205 | | |
7138 | 7206 | | |
7139 | 7207 | | |
| |||
7174 | 7242 | | |
7175 | 7243 | | |
7176 | 7244 | | |
7177 | | - | |
7178 | | - | |
7179 | | - | |
7180 | | - | |
7181 | | - | |
7182 | | - | |
7183 | | - | |
7184 | | - | |
7185 | | - | |
7186 | | - | |
7187 | | - | |
| 7245 | + | |
7188 | 7246 | | |
7189 | 7247 | | |
7190 | 7248 | | |
7191 | | - | |
7192 | 7249 | | |
7193 | 7250 | | |
7194 | 7251 | | |
| |||
7483 | 7540 | | |
7484 | 7541 | | |
7485 | 7542 | | |
7486 | | - | |
| 7543 | + | |
7487 | 7544 | | |
7488 | 7545 | | |
7489 | 7546 | | |
| |||
7506 | 7563 | | |
7507 | 7564 | | |
7508 | 7565 | | |
7509 | | - | |
7510 | | - | |
7511 | | - | |
7512 | | - | |
| 7566 | + | |
| 7567 | + | |
7513 | 7568 | | |
7514 | 7569 | | |
7515 | 7570 | | |
7516 | 7571 | | |
7517 | | - | |
7518 | | - | |
7519 | | - | |
7520 | | - | |
7521 | | - | |
7522 | | - | |
7523 | | - | |
7524 | | - | |
7525 | | - | |
| 7572 | + | |
| 7573 | + | |
| 7574 | + | |
7526 | 7575 | | |
7527 | 7576 | | |
7528 | 7577 | | |
| |||
0 commit comments