Browse Source

qcacld-3.0: Use QDF_MAC_ADDR_FMT to print the mac_address

While handling mgmt frames, use QDF_MAC_ADDR_FMT macro
to print the mac_address instead of using
lim_print_mac_addr() API.

Change-Id: I5470ce5af156914fe385db63a879c71cbbf23531
CRs-Fixed: 3401121
Deeksha Gupta 2 years ago
parent
commit
97bbc709b1

+ 2 - 2
core/mac/src/pe/lim/lim_link_monitoring_algo.c

@@ -255,8 +255,8 @@ void lim_delete_sta_context(struct mac_context *mac_ctx,
 		break;
 
 	case HAL_DEL_STA_REASON_CODE_UNKNOWN_A2:
-		pe_err("Deleting Unknown station");
-		lim_print_mac_addr(mac_ctx, msg->addr2, LOGE);
+		pe_err("Deleting Unknown station:  "QDF_MAC_ADDR_FMT,
+		       QDF_MAC_ADDR_REF(msg->addr2));
 		lim_send_deauth_mgmt_frame(mac_ctx,
 			REASON_CLASS3_FRAME_FROM_NON_ASSOC_STA,
 			msg->addr2, session_entry, false);

+ 2 - 2
core/mac/src/pe/lim/lim_process_action_frame.c

@@ -1011,8 +1011,8 @@ __lim_process_sm_power_save_update(struct mac_context *mac, uint8_t *pRxPacketIn
 		dph_lookup_hash_entry(mac, pHdr->sa, &aid,
 				      &pe_session->dph.dphHashTable);
 	if (!pSta) {
-		pe_err("STA context not found - ignoring UpdateSM PSave Mode from");
-		lim_print_mac_addr(mac, pHdr->sa, LOGE);
+		pe_err("STA context not found - ignoring UpdateSM PSave Mode from SA: "QDF_MAC_ADDR_FMT,
+		       QDF_MAC_ADDR_REF(pHdr->sa));
 		return;
 	}
 

+ 2 - 2
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -800,8 +800,8 @@ static bool lim_chk_is_11b_sta_supported(struct mac_context *mac_ctx,
 				STATUS_ASSOC_DENIED_RATES,
 				1, sa, sub_type, 0, session, false);
 
-			pe_warn("Rejecting Re/Assoc req from 11b STA:");
-			lim_print_mac_addr(mac_ctx, sa, LOGW);
+			pe_warn("Rejecting Re/Assoc req from 11b STA: "QDF_MAC_ADDR_FMT,
+				QDF_MAC_ADDR_REF(sa));
 
 #ifdef WLAN_DEBUG
 			mac_ctx->lim.gLim11bStaAssocRejectCount++;

+ 4 - 4
core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c

@@ -1326,8 +1326,8 @@ lim_process_assoc_rsp_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
 				&session_entry->dph.dphHashTable);
 
 		if (!sta_ds) {
-			pe_err("could not get hash entry at DPH for");
-			lim_print_mac_addr(mac_ctx, hdr->sa, LOGE);
+			pe_err("could not get hash entry at DPH for SA: "QDF_MAC_ADDR_FMT,
+			       QDF_MAC_ADDR_REF(hdr->sa));
 			assoc_cnf.resultCode =
 				eSIR_SME_INVALID_ASSOC_RSP_RXED;
 			assoc_cnf.protStatusCode =
@@ -1429,8 +1429,8 @@ lim_process_assoc_rsp_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
 			&session_entry->dph.dphHashTable);
 	if (!sta_ds) {
 		/* Could not add hash table entry */
-		pe_err("could not get hash entry at DPH");
-		lim_print_mac_addr(mac_ctx, hdr->sa, LOGE);
+		pe_err("could not get hash entry at DPH SA: "QDF_MAC_ADDR_FMT,
+		       QDF_MAC_ADDR_REF(hdr->sa));
 		assoc_cnf.resultCode = eSIR_SME_RESOURCES_UNAVAILABLE;
 		assoc_cnf.protStatusCode = eSIR_SME_SUCCESS;
 		lim_post_sme_message(mac_ctx, LIM_MLM_ASSOC_CNF,