mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-03 21:04:05 +00:00
Fix another segfault
* Removed for now, not used anyway since the virtual interface support isn't working.
This commit is contained in:
parent
ab417f17b2
commit
5a21cce8cd
@ -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)
|
static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr)
|
||||||
{
|
{
|
||||||
struct net_device *ndev;
|
struct net_device *ndev;
|
||||||
_adapter *adapter = rtw_netdev_priv(ndev);
|
|
||||||
|
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
return NOTIFY_DONE;
|
return NOTIFY_DONE;
|
||||||
@ -1374,8 +1373,6 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
|
|||||||
switch (state) {
|
switch (state) {
|
||||||
case NETDEV_CHANGENAME:
|
case NETDEV_CHANGENAME:
|
||||||
rtw_adapter_proc_replace(ndev);
|
rtw_adapter_proc_replace(ndev);
|
||||||
strncpy(adapter->old_ifname, ndev->name, IFNAMSIZ);
|
|
||||||
adapter->old_ifname[IFNAMSIZ-1] = 0;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user