]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: Add utility API to get radio index from channel
authorVasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Tue, 27 May 2025 08:41:43 +0000 (14:11 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jun 2025 08:44:05 +0000 (10:44 +0200)
commitdf42bfc96e0ad90d243c0ee6b783a33bdb72a184
tree771d8622aa5d6d45f6bbdfe095704434368faffc
parentaa34ecc42a2138af76642b68b53a5a07cb12fe43
wifi: cfg80211: Add utility API to get radio index from channel

Add utility API cfg80211_get_radio_idx_by_chan() to retrieve the radio
index corresponding to a given channel in a multi-radio wiphy.

This utility function can be used when we want to check the radio-specific
data for a channel in a multi-radio wiphy. For example, it can help
determine the radio index required to handle a scan request. This index
can then be used to decide whether the scan can proceed without
interfering with ongoing DFS operations on another radio.

Signed-off-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Co-developed-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Link: https://patch.msgid.link/20250527-mlo-dfs-acs-v2-1-92c2f37c81d9@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/util.c