mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacld-3.0: Add logging info for dynamic MAC change
Add logging info when the MAC is dynamically changed. Change-Id: If602377f5242ed49a8ead4f71d3d8f1bd989f61a CRs-Fixed: 2215053
This commit is contained in:
parent
959b38c51a
commit
8bfef12b87
2 changed files with 5 additions and 0 deletions
|
|
@ -704,6 +704,9 @@ static int __hdd_hostapd_set_mac_address(struct net_device *dev, void *addr)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
hdd_info("Changing MAC to " MAC_ADDRESS_STR " of interface %s ",
|
||||
MAC_ADDR_ARRAY(mac_addr.bytes),
|
||||
dev->name);
|
||||
memcpy(dev->dev_addr, psta_mac_addr->sa_data, ETH_ALEN);
|
||||
hdd_exit();
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -3276,6 +3276,8 @@ static int __hdd_set_mac_address(struct net_device *dev, void *addr)
|
|||
hdd_err("MAC is Multicast");
|
||||
return -EINVAL;
|
||||
}
|
||||
hdd_info("Changing MAC to " MAC_ADDRESS_STR " of the interface %s ",
|
||||
MAC_ADDR_ARRAY(mac_addr.bytes), dev->name);
|
||||
|
||||
memcpy(&adapter->mac_addr, psta_mac_addr->sa_data, ETH_ALEN);
|
||||
memcpy(dev->dev_addr, psta_mac_addr->sa_data, ETH_ALEN);
|
||||
|
|
|
|||
Loading…
Reference in a new issue