From 18c80911a272c555ba83c54249764aeebce10dbd Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 15 Nov 2014 17:58:17 -0600 Subject: [PATCH] rtl8188eu: Make device have wlanX name Signed-off-by: Larry Finger --- os_dep/osdep_service.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index a1ae727..a319df6 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -356,6 +356,10 @@ inline int ATOMIC_DEC_RETURN(ATOMIC_T *v) return atomic_dec_return(v); } +static const struct device_type wlan_type = { + .name = "wlan", +}; + struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv, void *old_priv) { @@ -366,6 +370,7 @@ struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv, if (!pnetdev) goto RETURN; + pnetdev->dev.type = &wlan_type; pnpi = netdev_priv(pnetdev); pnpi->priv = old_priv; pnpi->sizeof_priv = sizeof_priv;