Răsfoiți Sursa

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
Ashish Kumar Dhanotiya 7 ani în urmă
părinte
comite
8bfef12b87
2 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 3 0
      core/hdd/src/wlan_hdd_hostapd.c
  2. 2 0
      core/hdd/src/wlan_hdd_main.c

+ 3 - 0
core/hdd/src/wlan_hdd_hostapd.c

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

+ 2 - 0
core/hdd/src/wlan_hdd_main.c

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