mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-28 07:03:40 +00:00
rtl8188eu: Make device have wlanX name
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
41245153f4
commit
18c80911a2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue