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:
Ashish Kumar Dhanotiya 2018-04-18 16:48:27 +05:30 • committed by nshrivas
commit 8bfef12b87
2 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -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);