mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-30 17:02:28 +00:00
Set dev_type to wlan
This commit is contained in:
parent
19aa60f1a1
commit
232bcd5fbc
@ -1485,6 +1485,10 @@ void rtw_hook_if_ops(struct net_device *ndev)
|
|||||||
#ifdef CONFIG_CONCURRENT_MODE
|
#ifdef CONFIG_CONCURRENT_MODE
|
||||||
static void rtw_hook_vir_if_ops(struct net_device *ndev);
|
static void rtw_hook_vir_if_ops(struct net_device *ndev);
|
||||||
#endif
|
#endif
|
||||||
|
static const struct device_type wlan_type = {
|
||||||
|
.name = "wlan",
|
||||||
|
};
|
||||||
|
|
||||||
struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
||||||
{
|
{
|
||||||
_adapter *padapter;
|
_adapter *padapter;
|
||||||
@ -1499,6 +1503,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
|||||||
if (!pnetdev)
|
if (!pnetdev)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
pnetdev->dev.type = &wlan_type;
|
||||||
padapter = rtw_netdev_priv(pnetdev);
|
padapter = rtw_netdev_priv(pnetdev);
|
||||||
padapter->pnetdev = pnetdev;
|
padapter->pnetdev = pnetdev;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user