diff --git a/ioctl_cfg80211.c b/ioctl_cfg80211.c index 1d7ff70..0e629a2 100644 --- a/ioctl_cfg80211.c +++ b/ioctl_cfg80211.c @@ -6514,9 +6514,6 @@ void rtw_cfg80211_init_wiphy(_adapter *padapter) rtw_cfg80211_init_ht_capab(padapter, &bands->ht_cap, NL80211_BAND_5GHZ, rf_type); } #endif - /* init regulary domain */ - rtw_regd_init(padapter); - /* copy mac_addr to wiphy */ memcpy(wiphy->perm_addr, adapter_mac_addr(padapter), ETH_ALEN); @@ -6928,6 +6925,9 @@ int rtw_wdev_alloc(_adapter *padapter, struct wiphy *wiphy) ATOMIC_SET(&pwdev_priv->switch_ch_to, 1); #endif + /* init regulary domain */ + rtw_regd_init(padapter); + exit: return ret; }