Browse Source

qcacld-3.0: Rename HDD identifier pmacAddress

The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier pmacAddress to be compliant.

Change-Id: I12040f02b81ae3430a31bb3ee0e1305300f0017b
CRs-Fixed: 2417582
Jeff Johnson 6 years ago
parent
commit
9f4b0d44b1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      core/hdd/src/wlan_hdd_hostapd_wext.c

+ 4 - 4
core/hdd/src/wlan_hdd_hostapd_wext.c

@@ -2438,7 +2438,7 @@ int __iw_get_softap_linkspeed(struct net_device *dev,
 	uint32_t link_speed = 0;
 	int len = sizeof(uint32_t) + 1;
 	struct qdf_mac_addr macAddress;
-	char pmacAddress[MAC_ADDRESS_STR_LEN + 1];
+	char macaddr_string[MAC_ADDRESS_STR_LEN + 1];
 	QDF_STATUS status = QDF_STATUS_E_FAILURE;
 	int rc, ret, i;
 
@@ -2464,14 +2464,14 @@ int __iw_get_softap_linkspeed(struct net_device *dev,
 	}
 
 	if (wrqu->data.length >= MAC_ADDRESS_STR_LEN - 1) {
-		if (copy_from_user((void *)pmacAddress,
+		if (copy_from_user(macaddr_string,
 				   wrqu->data.pointer, MAC_ADDRESS_STR_LEN)) {
 			hdd_err("failed to copy data to user buffer");
 			return -EFAULT;
 		}
-		pmacAddress[MAC_ADDRESS_STR_LEN - 1] = '\0';
+		macaddr_string[MAC_ADDRESS_STR_LEN - 1] = '\0';
 
-		if (!mac_pton(pmacAddress, macAddress.bytes)) {
+		if (!mac_pton(macaddr_string, macAddress.bytes)) {
 			hdd_err("String to Hex conversion Failed");
 			return -EINVAL;
 		}