mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
Revert "core: Update IID every time netdevice is brought down"
This reverts commit f5ad526238.
Change-Id: I22f0b9d24567b032f153e30f02946b9568a4d40b
This commit is contained in:
parent
7ce883f15f
commit
ef2b4fd504
3 changed files with 3 additions and 14 deletions
|
|
@ -331,9 +331,7 @@ static int rmnet_config_notify_cb(struct notifier_block *nb,
|
|||
netdev_dbg(dev, "Kernel unregister\n");
|
||||
rmnet_force_unassociate_device(dev);
|
||||
break;
|
||||
case NETDEV_DOWN:
|
||||
rmnet_vnd_reset_mac_addr(dev);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ void rmnet_vnd_setup(struct net_device *rmnet_dev)
|
|||
rmnet_dev->netdev_ops = &rmnet_vnd_ops;
|
||||
rmnet_dev->mtu = RMNET_DFLT_PACKET_SIZE;
|
||||
rmnet_dev->needed_headroom = RMNET_NEEDED_HEADROOM;
|
||||
random_ether_addr(rmnet_dev->perm_addr);
|
||||
random_ether_addr(rmnet_dev->dev_addr);
|
||||
rmnet_dev->tx_queue_len = RMNET_TX_QUEUE_LEN;
|
||||
|
||||
/* Raw IP mode */
|
||||
|
|
@ -444,11 +444,3 @@ int rmnet_vnd_do_flow_control(struct net_device *rmnet_dev, int enable)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void rmnet_vnd_reset_mac_addr(struct net_device *dev)
|
||||
{
|
||||
if (dev->netdev_ops != &rmnet_vnd_ops)
|
||||
return;
|
||||
|
||||
random_ether_addr(dev->perm_addr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2013-2018, 2020 The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
|
@ -27,5 +27,4 @@ void rmnet_vnd_rx_fixup(struct net_device *dev, u32 skb_len);
|
|||
void rmnet_vnd_tx_fixup(struct net_device *dev, u32 skb_len);
|
||||
u8 rmnet_vnd_get_mux(struct net_device *rmnet_dev);
|
||||
void rmnet_vnd_setup(struct net_device *dev);
|
||||
void rmnet_vnd_reset_mac_addr(struct net_device *dev);
|
||||
#endif /* _RMNET_VND_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue