]> Git Repo - linux.git/commitdiff
staging: r8188eu: Set device type to wlan
authorLarry Finger <[email protected]>
Tue, 22 Oct 2013 03:15:05 +0000 (22:15 -0500)
committerGreg Kroah-Hartman <[email protected]>
Tue, 29 Oct 2013 16:05:21 +0000 (09:05 -0700)
The latest version of NetworkManager does not recognize the device as wireless
without this change.

Signed-off-by: Larry Finger <[email protected]>
Cc: Stable <[email protected]> # [3.12+]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index da9f0d5f76f758aa05b96d2099c509e896c8b9de..17659bb04befc24fabded5439be74aba9fdcb5d1 100644 (file)
@@ -707,6 +707,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;
@@ -722,6 +726,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;
        DBG_88E("register rtw_netdev_ops to netdev_ops\n");
This page took 0.050724 seconds and 4 git commands to generate.