mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
Fix the correct interface name instead of being nameless
This commit is contained in:
parent
97a531e519
commit
2777bcd917
@ -1525,10 +1525,16 @@ static const struct net_device_ops rtw_netdev_ops = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static const struct device_type wlan_type = {
|
||||||
|
.name = "wlan",
|
||||||
|
};
|
||||||
|
|
||||||
int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
|
int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
|
||||||
{
|
{
|
||||||
|
_adapter *padapter;
|
||||||
|
pnetdev->dev.type = &wlan_type;
|
||||||
|
padapter = rtw_netdev_priv(pnetdev);
|
||||||
#ifdef CONFIG_EASY_REPLACEMENT
|
#ifdef CONFIG_EASY_REPLACEMENT
|
||||||
_adapter *padapter = rtw_netdev_priv(pnetdev);
|
|
||||||
struct net_device *TargetNetdev = NULL;
|
struct net_device *TargetNetdev = NULL;
|
||||||
_adapter *TargetAdapter = NULL;
|
_adapter *TargetAdapter = NULL;
|
||||||
struct net *devnet = NULL;
|
struct net *devnet = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user