Commit 9add0535 authored by Kavita Kavita's avatar Kavita Kavita Committed by Johannes Berg
Browse files

wifi: cfg80211: skip regulatory for punctured subchannels



The kernel performs several regulatory checks for AP mode in
nl80211/cfg80211. These checks include radar detection,
verification of whether the sub-channel is disabled, and
an examination to determine if the channel is a DFS channel
(both DFS usable and DFS available). These checks are
performed across a frequency range, examining each sub-channel.

However, these checks are also performed on subchannels that
have been punctured which should not be examined as they are
not in use.

This leads to the issue where the AP stops because one of
the 20 MHz sub-channels is disabled or radar detected on
the channel, even when the sub-channel is punctured.

To address this issue, add a condition check wherever
regulatory checks exist for AP mode in nl80211/cfg80211.
This check identifies punctured channels and, upon finding
them, skips the regulatory checks for those channels.

Co-developed-by: default avatarManaswini Paluri <quic_mpaluri@quicinc.com>
Signed-off-by: default avatarManaswini Paluri <quic_mpaluri@quicinc.com>
Signed-off-by: default avatarKavita Kavita <quic_kkavita@quicinc.com>
Link: https://patch.msgid.link/20250109050409.25351-1-quic_kkavita@quicinc.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3aaa1a5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment