wireless: fix enabling channel 12 for custom regulatory domain
authorGanapathi Bhat <ganapathi.bhat@nxp.com>
Fri, 20 Dec 2019 10:14:32 +0000 (10:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 14:18:20 +0000 (14:18 +0000)
commit8f6b2439a2b939d92b25201e456c7949a1f8ba79
tree1cb119b6282bdb60e680961a8a70ce57f83f5fca
parentf5929c9f3a52a6137b8c5ed2007a4cd725ab7aaf
wireless: fix enabling channel 12 for custom regulatory domain

[ Upstream commit c4b9d655e445a8be0bff624aedea190606b5ebbc ]

Commit e33e2241e272 ("Revert "cfg80211: Use 5MHz bandwidth by
default when checking usable channels"") fixed a broken
regulatory (leaving channel 12 open for AP where not permitted).
Apply a similar fix to custom regulatory domain processing.

Signed-off-by: Cathy Luo <xiaohua.luo@nxp.com>
Signed-off-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>
Link: https://lore.kernel.org/r/1576836859-8945-1-git-send-email-ganapathi.bhat@nxp.com
[reword commit message, fix coding style, add a comment]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/reg.c