mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-05 02:55:44 +00:00
Fix interface rename error
This commit is contained in:
parent
51198653d4
commit
4e69a2756d
@ -1109,6 +1109,7 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
|
||||
#else
|
||||
struct net_device *dev = ptr;
|
||||
#endif
|
||||
_adapter *adapter = rtw_netdev_priv(dev);
|
||||
|
||||
if (dev == NULL)
|
||||
return NOTIFY_DONE;
|
||||
@ -1134,6 +1135,8 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
|
||||
switch (state) {
|
||||
case NETDEV_CHANGENAME:
|
||||
rtw_adapter_proc_replace(dev);
|
||||
strncpy(adapter->old_ifname, dev->name, IFNAMSIZ);
|
||||
adapter->old_ifname[IFNAMSIZ-1] = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user