From 232bcd5fbce5e5f30ccc2a8fc0690001c32a04f1 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 6 Apr 2019 08:46:46 +0200 Subject: [PATCH] Set dev_type to wlan --- os_dep/linux/os_intfs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index d1c8468..36e282d 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1485,6 +1485,10 @@ void rtw_hook_if_ops(struct net_device *ndev) #ifdef CONFIG_CONCURRENT_MODE static void rtw_hook_vir_if_ops(struct net_device *ndev); #endif +static const struct device_type wlan_type = { + .name = "wlan", +}; + struct net_device *rtw_init_netdev(_adapter *old_padapter) { _adapter *padapter; @@ -1499,6 +1503,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter) if (!pnetdev) return NULL; + pnetdev->dev.type = &wlan_type; padapter = rtw_netdev_priv(pnetdev); padapter->pnetdev = pnetdev;