mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-26 07:04:12 +00:00
Hardcode adapter alias to 'wlanX..'
This commit is contained in:
parent
8bdef804c3
commit
909606a1b8
@ -1571,6 +1571,9 @@ void rtw_hook_if_ops(struct net_device *ndev)
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
static void rtw_hook_vir_if_ops(struct net_device *ndev);
|
||||
#endif
|
||||
static const struct device_type wlan_type = {
|
||||
.name = "wlan",
|
||||
};
|
||||
struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
||||
{
|
||||
_adapter *padapter;
|
||||
@ -1589,6 +1592,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
||||
pnetdev->mtu = WLAN_DATA_MAXLEN;
|
||||
pnetdev->max_mtu = WLAN_DATA_MAXLEN;
|
||||
|
||||
pnetdev->dev.type = &wlan_type;
|
||||
padapter = rtw_netdev_priv(pnetdev);
|
||||
padapter->pnetdev = pnetdev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user