]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: Allow scan on a radio while operating on DFS on another radio
authorRaj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Tue, 27 May 2025 08:41:45 +0000 (14:11 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jun 2025 08:44:05 +0000 (10:44 +0200)
commitc9172fae4b844adf66d60768652c5d22e10f5de6
tree1563831d90453d34d45a256a3cc751fe667a01a9
parentfe8582dbb4f5eb6073177782242ce91da8377534
wifi: mac80211: Allow scan on a radio while operating on DFS on another radio

Currently, in multi-radio wiphy cases, if one radio is operating on a DFS
channel, -EBUSY is returned even when a scan is requested on a different
radio. Because of this, an MLD AP with one radio (link) on a DFS channel
and Automatic Channel Selection (ACS) on another radio (link) cannot be
brought up.

In multi-radio wiphy cases, multiple radios are grouped under a single
wiphy. Hence, if a radio is operating on a DFS channel and a scan is
requested on a different radio of the same wiphy, the scan can be allowed
simultaneously without impacting the DFS operations.

Add logic to check the underlying radio used for the requested scan. If the
radio on which DFS is already running is not being used, allow the scan
operation; otherwise, return -EBUSY.

Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Link: https://patch.msgid.link/20250527-mlo-dfs-acs-v2-3-92c2f37c81d9@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/offchannel.c
net/mac80211/scan.c