Fix wireless regulatory API misuse

Port of 81f153faac
This commit is contained in:
Carlos Garces
2021-03-11 23:39:00 +01:00
parent 6a758d54cf
commit 8fa56156a8
3 changed files with 4 additions and 19 deletions

View File

@@ -10000,6 +10000,8 @@ struct wiphy *rtw_wiphy_alloc(_adapter *padapter, struct device *dev)
#endif
rtw_cfg80211_preinit_wiphy(padapter, wiphy);
/* init regulary domain */
rtw_regd_init(wiphy);
RTW_INFO(FUNC_WIPHY_FMT"\n", FUNC_WIPHY_ARG(wiphy));
@@ -10034,8 +10036,6 @@ int rtw_wiphy_register(struct wiphy *wiphy)
rtw_cfgvendor_attach(wiphy);
#endif
rtw_regd_init(wiphy);
return wiphy_register(wiphy);
}