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:
Larry Finger 2013-10-17 22:25:27 -05:00
parent f4d1258158
commit 868a407435

View file

@ -764,6 +764,10 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
return 0;
}
static const struct device_type wlan_type = {
.name = "wlan",
};
struct net_device *rtw_init_netdev(struct adapter *old_padapter)
{
struct adapter *padapter;
@ -779,6 +783,7 @@ struct net_device *rtw_init_netdev(struct adapter *old_padapter)
if (!pnetdev)
return NULL;
pnetdev->dev.type = &wlan_type;
padapter = rtw_netdev_priv(pnetdev);
padapter->pnetdev = pnetdev;