Register wiphy after we probe MAC addr. (moved to wiphy_preinit)

This commit is contained in:
kimocoder 2019-08-18 18:49:07 +02:00
parent 67b10d4ebf
commit fd796b8bc1

View File

@ -9650,9 +9650,6 @@ void rtw_cfg80211_init_wiphy(_adapter *padapter)
}
#endif
/* copy mac_addr to wiphy */
_rtw_memcpy(wiphy->perm_addr, adapter_mac_addr(padapter), ETH_ALEN);
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0))
@ -10306,7 +10303,11 @@ void rtw_wiphy_free(struct wiphy *wiphy)
int rtw_wiphy_register(struct wiphy *wiphy)
{
RTW_INFO(FUNC_WIPHY_FMT"\n", FUNC_WIPHY_ARG(wiphy));
//RTW_INFO(FUNC_WIPHY_FMT"\n", FUNC_WIPHY_ARG(wiphy));
/* copy mac_addr to wiphy */
_rtw_memcpy(wiphy->perm_addr, adapter_mac_addr(padapter), ETH_ALEN);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)) || defined(RTW_VENDOR_EXT_SUPPORT)
rtw_cfgvendor_attach(wiphy);