Skip to content

Commit

Permalink
correct device type
Browse files Browse the repository at this point in the history
  • Loading branch information
lesf0 committed Dec 25, 2020
1 parent 162e270 commit 8e47772
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions os/linux/rt_main_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ PNET_DEV RtmpPhyNetDevInit(
net_dev->features |= NETIF_F_HW_CSUM;
#endif /* CONFIG_TSO_SUPPORT */

static const struct device_type wlan_type = {
.name = "wlan",
};
net_dev->dev.type = &wlan_type;

return net_dev;

}
Expand Down

0 comments on commit 8e47772

Please sign in to comment.