mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Don't process set mac net dev operation on interface up
Presently driver is processing set_mac net dev operation while device is running, though the same is not supported, leading lower layers and firmware to hold old mac address and kernel net device object to hold new address. Process set_mac net dev operation only on interface is down so that during interface up new mac address will be programmed in lower layers and firmware. Change-Id: I037afa31657a6f1eb1129feae6777d8bcfa1b7a9 CRs-Fixed: 2171548
This commit is contained in:
parent
538748570c
commit
5c7a78161d
1 changed files with 5 additions and 0 deletions
|
|
@ -3307,6 +3307,11 @@ static int __hdd_set_mac_address(struct net_device *dev, void *addr)
|
|||
|
||||
hdd_enter_dev(dev);
|
||||
|
||||
if (netif_running(dev)) {
|
||||
hdd_err("On iface up, set mac address change isn't supported");
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
ret = wlan_hdd_validate_context(hdd_ctx);
|
||||
if (0 != ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue