mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-08 20:35:07 +00:00
Register wiphy after we probe MAC addr. (moved to wiphy_preinit)
This commit is contained in:
parent
67b10d4ebf
commit
fd796b8bc1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user