mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2026-06-18 18:29:01 +01:00
@@ -6630,9 +6630,6 @@ void rtw_cfg80211_init_wiphy(_adapter *padapter)
|
||||
rtw_cfg80211_init_ht_capab(padapter, &bands->ht_cap, IEEE80211_BAND_5GHZ, rf_type);
|
||||
}
|
||||
#endif
|
||||
/* init regulary domain */
|
||||
rtw_regd_init(padapter);
|
||||
|
||||
/* copy mac_addr to wiphy */
|
||||
_rtw_memcpy(wiphy->perm_addr, adapter_mac_addr(padapter), ETH_ALEN);
|
||||
|
||||
@@ -6934,6 +6931,9 @@ int rtw_wiphy_register(struct wiphy *wiphy)
|
||||
rtw_cfgvendor_attach(wiphy);
|
||||
#endif
|
||||
|
||||
/* init regulary domain */
|
||||
rtw_regd_init(wiphy);
|
||||
|
||||
return wiphy_register(wiphy);
|
||||
}
|
||||
|
||||
|
||||
@@ -519,9 +519,8 @@ static struct country_code_to_enum_rd *_rtw_regd_find_country(u16 countrycode)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int rtw_regd_init(_adapter *padapter)
|
||||
int rtw_regd_init(struct wiphy *wiphy)
|
||||
{
|
||||
struct wiphy *wiphy = padapter->rtw_wdev->wiphy;
|
||||
|
||||
#if 0
|
||||
if (rtw_regd == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user