Selaa lähdekoodia

qcacld-3.0: Use QDF_MAC_ADDR_FMT to print the mac_address

In send frames APIs, Use QDF_MAC_ADDR_FMT macro to print
the mac_address instead of using lim_print_mac_addr() API.

Change-Id: I435e89300ca4cee44aed317527a79eb08c71c369
CRs-Fixed: 3401405
Deeksha Gupta 2 vuotta sitten
vanhempi
sitoutus
8135c218d9

+ 3 - 2
core/mac/src/pe/lim/lim_send_frames_host_roam.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -442,7 +442,8 @@ void lim_send_reassoc_req_with_ft_ies_mgmt_frame(struct mac_context *mac_ctx,
 	/* Paranoia: */
 	qdf_mem_zero(frame, bytes + ft_ies_length);
 
-	lim_print_mac_addr(mac_ctx, pe_session->limReAssocbssId, LOGD);
+	pe_debug("BSSID: "QDF_MAC_ADDR_FMT,
+		 QDF_MAC_ADDR_REF(pe_session->limReAssocbssId));
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac_ctx, frame, SIR_MAC_MGMT_FRAME,
 		SIR_MAC_MGMT_REASSOC_REQ, pe_session->limReAssocbssId,

+ 11 - 12
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -1085,8 +1085,8 @@ lim_send_probe_rsp_mgmt_frame(struct mac_context *mac_ctx,
 		payload += mlo_ie_len;
 	}
 
-	pe_debug("Sending Probe Response frame to");
-	lim_print_mac_addr(mac_ctx, peer_macaddr, LOGD);
+	pe_debug("Sending Probe Response frame to: "QDF_MAC_ADDR_FMT,
+		 QDF_MAC_ADDR_REF(peer_macaddr));
 
 	lim_add_additional_ie(frame, sizeof(tSirMacMgmtHdr) + payload, add_ie,
 			      addn_ie_len, p2p_ie, noa_ie, total_noalen,
@@ -1297,8 +1297,8 @@ lim_send_addts_req_action_frame(struct mac_context *mac,
 		}
 	}
 
-	pe_debug("Sending an Add TS Request frame to");
-	lim_print_mac_addr(mac, peerMacAddr, LOGD);
+	pe_debug("Sending an Add TS Request frame to "QDF_MAC_ADDR_FMT,
+		 QDF_MAC_ADDR_REF(peerMacAddr));
 
 	if (!wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq) ||
 	    pe_session->opmode == QDF_P2P_CLIENT_MODE ||
@@ -2227,8 +2227,8 @@ lim_send_delts_req_action_frame(struct mac_context *mac,
 		}
 	}
 
-	pe_debug("Sending DELTS REQ (size %d) to ", nBytes);
-	lim_print_mac_addr(mac, pMacHdr->da, LOGD);
+	pe_debug("Sending DELTS REQ (size %d) to "QDF_MAC_ADDR_FMT, nBytes,
+		 QDF_MAC_ADDR_REF(pMacHdr->da));
 
 	if (!wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq) ||
 	    pe_session->opmode == QDF_P2P_CLIENT_MODE ||
@@ -5414,8 +5414,8 @@ lim_send_neighbor_report_request_frame(struct mac_context *mac,
 			nStatus);
 	}
 
-	pe_debug("Sending a Neighbor Report Request to");
-	lim_print_mac_addr(mac, peer, LOGD);
+	pe_debug("Sending a Neighbor Report Request to "QDF_MAC_ADDR_FMT,
+		 QDF_MAC_ADDR_REF(peer));
 
 	if (!wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq) ||
 	    pe_session->opmode == QDF_P2P_CLIENT_MODE ||
@@ -5967,10 +5967,9 @@ QDF_STATUS lim_send_sa_query_request_frame(struct mac_context *mac, uint8_t *tra
 			nStatus);
 	}
 
-	pe_debug("Sending an SA Query Request to");
-	lim_print_mac_addr(mac, peer, LOGD);
-	pe_debug("Sending an SA Query Request from ");
-	lim_print_mac_addr(mac, pe_session->self_mac_addr, LOGD);
+	pe_debug("Sending an SA Query Request from "QDF_MAC_ADDR_FMT" to "QDF_MAC_ADDR_FMT,
+		 QDF_MAC_ADDR_REF(pe_session->self_mac_addr),
+		 QDF_MAC_ADDR_REF(peer));
 
 	if (!wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq) ||
 	    pe_session->opmode == QDF_P2P_CLIENT_MODE ||