Browse Source

qcacld-3.0: Rename HDD variable pPeerMacAddr

The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pPeerMacAddr to be
compliant.

Change-Id: Ifa0d639c2346ace4fced4420934f47f07352c8b0
CRs-Fixed: 2405763
Jeff Johnson 6 years ago
parent
commit
64ba9afb7a
2 changed files with 7 additions and 8 deletions
  1. 0 1
      core/hdd/src/wlan_hdd_assoc.c
  2. 7 7
      core/hdd/src/wlan_hdd_ioctl.c

+ 0 - 1
core/hdd/src/wlan_hdd_assoc.c

@@ -2071,7 +2071,6 @@ QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
  * @adapter: pointer to adapter
  * @roam_info: pointer to roam info
  * @staId: station identifier
- * @pPeerMacAddress: peer MAC address
  * @pBssDesc: pointer to BSS description
  *
  * Return: QDF_STATUS enumeration

+ 7 - 7
core/hdd/src/wlan_hdd_ioctl.c

@@ -370,7 +370,7 @@ hdd_cfg80211_get_ibss_peer_info(struct hdd_adapter *adapter, uint8_t staIdx)
 /* Function header is left blank intentionally */
 static QDF_STATUS
 hdd_parse_get_ibss_peer_info(uint8_t *command,
-			     struct qdf_mac_addr *pPeerMacAddr)
+			     struct qdf_mac_addr *peer_macaddr)
 {
 	uint8_t *inPtr = command;
 	size_t in_ptr_len = strlen(command);
@@ -397,12 +397,12 @@ hdd_parse_get_ibss_peer_info(uint8_t *command,
 		return QDF_STATUS_E_FAILURE;
 
 	sscanf(inPtr, "%2x:%2x:%2x:%2x:%2x:%2x",
-	       (unsigned int *)&pPeerMacAddr->bytes[0],
-	       (unsigned int *)&pPeerMacAddr->bytes[1],
-	       (unsigned int *)&pPeerMacAddr->bytes[2],
-	       (unsigned int *)&pPeerMacAddr->bytes[3],
-	       (unsigned int *)&pPeerMacAddr->bytes[4],
-	       (unsigned int *)&pPeerMacAddr->bytes[5]);
+	       (unsigned int *)&peer_macaddr->bytes[0],
+	       (unsigned int *)&peer_macaddr->bytes[1],
+	       (unsigned int *)&peer_macaddr->bytes[2],
+	       (unsigned int *)&peer_macaddr->bytes[3],
+	       (unsigned int *)&peer_macaddr->bytes[4],
+	       (unsigned int *)&peer_macaddr->bytes[5]);
 
 	return QDF_STATUS_SUCCESS;
 }