From 909606a1b854115885fc7320a1fbebaa44dd94bd Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 11 Nov 2019 02:45:42 +0100 Subject: [PATCH] Hardcode adapter alias to 'wlanX..' --- os_dep/linux/os_intfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 87b1d41..bb45482 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1571,6 +1571,9 @@ 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; @@ -1589,6 +1592,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter) pnetdev->mtu = WLAN_DATA_MAXLEN; pnetdev->max_mtu = WLAN_DATA_MAXLEN; + pnetdev->dev.type = &wlan_type; padapter = rtw_netdev_priv(pnetdev); padapter->pnetdev = pnetdev;