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:43:45 +0000 (14:43 +0000)
commitdc9a80e48e853cacf87a11884beaadd335439e44
tree08aeeff65a58913b949d2be67c3fa251decd3172
parenta618848babc37ebc6d11f6df57a17e71e2d6bc28
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