mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-29 08:27:41 +00:00
Fix interface rename error
This commit is contained in:
parent
4e0ca7c8e1
commit
a08496674f
@ -847,6 +847,7 @@ static int rtw_ndev_notifier_call(struct notifier_block * nb, unsigned long stat
|
|||||||
#else
|
#else
|
||||||
struct net_device *dev = ptr;
|
struct net_device *dev = ptr;
|
||||||
#endif
|
#endif
|
||||||
|
_adapter *adapter = rtw_netdev_priv(dev);
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
|
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
|
||||||
if (dev->netdev_ops->ndo_do_ioctl != rtw_ioctl)
|
if (dev->netdev_ops->ndo_do_ioctl != rtw_ioctl)
|
||||||
@ -860,6 +861,8 @@ static int rtw_ndev_notifier_call(struct notifier_block * nb, unsigned long stat
|
|||||||
switch (state) {
|
switch (state) {
|
||||||
case NETDEV_CHANGENAME:
|
case NETDEV_CHANGENAME:
|
||||||
rtw_adapter_proc_replace(dev);
|
rtw_adapter_proc_replace(dev);
|
||||||
|
strncpy(adapter->old_ifname, dev->name, IFNAMSIZ);
|
||||||
|
adapter->old_ifname[IFNAMSIZ-1] = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user