rtl8188eu: Make device have wlanX name

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-11-15 17:58:17 -06:00
parent 41245153f4
commit 18c80911a2

View file

@ -356,6 +356,10 @@ inline int ATOMIC_DEC_RETURN(ATOMIC_T *v)
return atomic_dec_return(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, struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
void *old_priv) void *old_priv)
{ {
@ -366,6 +370,7 @@ struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
if (!pnetdev) if (!pnetdev)
goto RETURN; goto RETURN;
pnetdev->dev.type = &wlan_type;
pnpi = netdev_priv(pnetdev); pnpi = netdev_priv(pnetdev);
pnpi->priv = old_priv; pnpi->priv = old_priv;
pnpi->sizeof_priv = sizeof_priv; pnpi->sizeof_priv = sizeof_priv;