mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 22:13:41 +00:00
rtl8188eu: Set device type for wlan
The latest version of NetworkManager will not recognize the device as wireless without this change. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
f4d1258158
commit
868a407435
1 changed files with 5 additions and 0 deletions
|
@ -764,6 +764,10 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct device_type wlan_type = {
|
||||||
|
.name = "wlan",
|
||||||
|
};
|
||||||
|
|
||||||
struct net_device *rtw_init_netdev(struct adapter *old_padapter)
|
struct net_device *rtw_init_netdev(struct adapter *old_padapter)
|
||||||
{
|
{
|
||||||
struct adapter *padapter;
|
struct adapter *padapter;
|
||||||
|
@ -779,6 +783,7 @@ struct net_device *rtw_init_netdev(struct adapter *old_padapter)
|
||||||
if (!pnetdev)
|
if (!pnetdev)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
pnetdev->dev.type = &wlan_type;
|
||||||
padapter = rtw_netdev_priv(pnetdev);
|
padapter = rtw_netdev_priv(pnetdev);
|
||||||
padapter->pnetdev = pnetdev;
|
padapter->pnetdev = pnetdev;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue