Commit 2c3e627
committed
wifi: cfg80211: fix off channel operation allowed check for MLO
JIRA: https://issues.redhat.com/browse/RHEL-114889
commit e9a896d
Author: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Date: Mon Jul 14 09:37:42 2025 +0530
wifi: cfg80211: fix off channel operation allowed check for MLO
In cfg80211_off_channel_oper_allowed(), the current logic disallows
off-channel operations if any link operates on a radar channel,
assuming such channels cannot be vacated. This assumption holds for
non-MLO interfaces but not for MLO.
With MLO and multi-radio devices, different links may operate on
separate radios. This allows one link to scan off-channel while
another remains on a radar channel. For example, in a 5 GHz
split-phy setup, the lower band can scan while the upper band
stays on a radar channel.
Off-channel operations can be allowed if the radio/link onto which the
input channel falls is different from the radio/link which has an active
radar channel. Therefore, fix cfg80211_off_channel_oper_allowed() by
returning false only if the requested channel maps to the same radio as
an active radar channel. Allow off-channel operations when the requested
channel is on a different radio, as in MLO with multi-radio setups.
Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Signed-off-by: Amith A <quic_amitajit@quicinc.com>
Link: https://patch.msgid.link/20250714040742.538550-1-quic_amitajit@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>1 parent f65d8be commit 2c3e627
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9768 | 9768 | | |
9769 | 9769 | | |
9770 | 9770 | | |
| 9771 | + | |
9771 | 9772 | | |
9772 | 9773 | | |
9773 | 9774 | | |
| |||
9777 | 9778 | | |
9778 | 9779 | | |
9779 | 9780 | | |
| 9781 | + | |
| 9782 | + | |
9780 | 9783 | | |
9781 | | - | |
| 9784 | + | |
9782 | 9785 | | |
9783 | 9786 | | |
9784 | 9787 | | |
| |||
9787 | 9790 | | |
9788 | 9791 | | |
9789 | 9792 | | |
| 9793 | + | |
9790 | 9794 | | |
9791 | 9795 | | |
9792 | 9796 | | |
9793 | 9797 | | |
9794 | 9798 | | |
| 9799 | + | |
| 9800 | + | |
| 9801 | + | |
9795 | 9802 | | |
9796 | | - | |
9797 | | - | |
9798 | | - | |
9799 | | - | |
| 9803 | + | |
| 9804 | + | |
| 9805 | + | |
| 9806 | + | |
9800 | 9807 | | |
9801 | 9808 | | |
9802 | | - | |
| 9809 | + | |
| 9810 | + | |
| 9811 | + | |
9803 | 9812 | | |
| 9813 | + | |
| 9814 | + | |
9804 | 9815 | | |
9805 | 9816 | | |
9806 | 9817 | | |
| |||
0 commit comments