cfg80211: never ignore user regulatory hint
authorAmar Singhal <asinghal@codeaurora.org>
Fri, 20 Jul 2018 19:15:18 +0000 (12:15 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jul 2018 07:11:31 +0000 (09:11 +0200)
commite31f6456c01c76f154e1b25cd54df97809a49edb
tree1de1f06850ab7bc643597640f7d7828782b31034
parent5cf3006cc81d9aa09a10aa781fc065546b12919d
cfg80211: never ignore user regulatory hint

Currently user regulatory hint is ignored if all wiphys
in the system are self managed. But the hint is not ignored
if there is no wiphy in the system. This affects the global
regulatory setting. Global regulatory setting needs to be
maintained so that it can be applied to a new wiphy entering
the system. Therefore, do not ignore user regulatory setting
even if all wiphys in the system are self managed.

Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c