wifi: cfg80211: call reg_notifier for self managed wiphy from driver hint
authorWen Gong <quic_wgong@quicinc.com>
Wed, 1 Feb 2023 06:53:13 +0000 (01:53 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 Feb 2023 11:37:39 +0000 (12:37 +0100)
commitd99975c4953eb79e389d4630e848435c700e2dfc
treeb009e2cde1416e8ce58d7ab38d4318dc1fc1876b
parent935ef47b16cc5bc15fcd2b3dbc61abb0b7ea671a
wifi: cfg80211: call reg_notifier for self managed wiphy from driver hint

Currently the regulatory driver does not call the regulatory callback
reg_notifier for self managed wiphys. Sometimes driver needs cfg80211
to calculate the info of ieee80211_channel such as flags and power,
and driver needs to get the info of ieee80211_channel after hint of
driver, but driver does not know when calculation of the info of
ieee80211_channel become finished, so add notify to driver in
reg_process_self_managed_hint() from cfg80211 is a good way, then
driver could get the correct info in callback of reg_notifier.

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Link: https://lore.kernel.org/r/20230201065313.27203-1-quic_wgong@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/reg.c