cfg80211: set custom regdomain after wiphy registration
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Fri, 18 Jun 2021 10:41:46 +0000 (13:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 06:33:50 +0000 (08:33 +0200)
commit3dbab9e37ca1311b5acd63f5c43b0b7bb2cc2743
tree741e693a0c3694b201f191cae1a7f7274ad9fe47
parent039fa25d95cec8254dfb5a8b7d1d2c185de0ee7f
cfg80211: set custom regdomain after wiphy registration

commit 1b7b3ac8ff3317cdcf07a1c413de9bdb68019c2b upstream.

We used to set regulatory info before the registration of
the device and then the regulatory info didn't get set, because
the device isn't registered so there isn't a device to set the
regulatory info for. So set the regulatory info after the device
registration.
Call reg_process_self_managed_hints() once again after the device
registration because it does nothing before it.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618133832.c96eadcffe80.I86799c2c866b5610b4cf91115c21d8ceb525c5aa@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/core.c
net/wireless/reg.c