]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: cfg80211: skip regulatory for punctured subchannels
authorKavita Kavita <quic_kkavita@quicinc.com>
Thu, 9 Jan 2025 05:04:09 +0000 (10:34 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:34:07 +0000 (15:34 +0100)
commit9add053591ed9d126b6f071236e33e762c439fa8
tree4fa599f75cda8d83e28d3a2f940ab3bb89c65af3
parent3aaa1a5a9a2ceeb32afa6ea4110a92338a863c33
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: Manaswini Paluri <quic_mpaluri@quicinc.com>
Signed-off-by: Manaswini Paluri <quic_mpaluri@quicinc.com>
Signed-off-by: Kavita Kavita <quic_kkavita@quicinc.com>
Link: https://patch.msgid.link/20250109050409.25351-1-quic_kkavita@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/chan.c