1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-20 05:00:36 +00:00

Fix another segfault

* Removed for now, not used anyway since the virtual interface support isn't working.
This commit is contained in:
Christian B 2018-08-06 19:51:45 +02:00 committed by GitHub
parent ab417f17b2
commit 5a21cce8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1352,7 +1352,6 @@ static u8 is_rtw_ndev(struct net_device *ndev)
static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr)
{
struct net_device *ndev;
_adapter *adapter = rtw_netdev_priv(ndev);
if (ptr == NULL)
return NOTIFY_DONE;
@ -1374,8 +1373,6 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
switch (state) {
case NETDEV_CHANGENAME:
rtw_adapter_proc_replace(ndev);
strncpy(adapter->old_ifname, ndev->name, IFNAMSIZ);
adapter->old_ifname[IFNAMSIZ-1] = 0;
break;
}