Skip to content

Commit

Permalink
Set dev_type to wlan
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
dlech authored and popcornmix committed Jun 13, 2016
1 parent af8b5c2 commit 2e956be
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,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(_adapter *old_padapter)
{
_adapter *padapter;
Expand All @@ -1077,6 +1081,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
if (!pnetdev)
return NULL;

pnetdev->dev.type = &wlan_type;
padapter = rtw_netdev_priv(pnetdev);
padapter->pnetdev = pnetdev;

Expand Down

0 comments on commit 2e956be

Please sign in to comment.