qcacld-3.0: Use QDF_MAC_ADDR_FMT to print the mac_address in lim

Use QDF_MAC_ADDR_FMT macro to print the mac_address instead of
using lim_print_mac_addr() API

Change-Id: If7261874639bf14e2f6b1c05ab8134b6a62c22e4
CRs-Fixed: 3401115
这个提交包含在:
Deeksha Gupta
2023-02-09 10:56:42 +05:30
提交者 Madan Koyyalamudi
父节点 3086dd8605
当前提交 7d4c44c1df
修改 3 个文件,包含 12 行新增14 行删除

查看文件

@@ -2911,8 +2911,8 @@ pe_roam_synch_callback(struct mac_context *mac_ctx,
session_ptr->bssType, session_ptr->bssType,
session_ptr->vdev_id); session_ptr->vdev_id);
if (!ft_session_ptr) { if (!ft_session_ptr) {
pe_err("LFR3:Cannot create PE Session"); pe_err("LFR3:Cannot create PE Session bssid: "QDF_MAC_ADDR_FMT,
lim_print_mac_addr(mac_ctx, bss_desc->bssId, LOGE); QDF_MAC_ADDR_REF(bss_desc->bssId));
qdf_mem_free(bss_desc); qdf_mem_free(bss_desc);
return status; return status;
} }
@@ -3267,8 +3267,8 @@ void lim_mon_init_session(struct mac_context *mac_ptr,
eSIR_MONITOR_MODE, eSIR_MONITOR_MODE,
msg->vdev_id); msg->vdev_id);
if (!psession_entry) { if (!psession_entry) {
pe_err("Monitor mode: Session Can not be created"); pe_err("Monitor mode: Session Can not be created bssid: "
lim_print_mac_addr(mac_ptr, msg->bss_id.bytes, LOGE); QDF_MAC_ADDR_FMT, QDF_MAC_ADDR_REF(msg->bss_id.bytes));
return; return;
} }
psession_entry->vhtCapability = 1; psession_entry->vhtCapability = 1;

查看文件

@@ -3033,9 +3033,8 @@ void lim_handle_cnf_wait_timeout(struct mac_context *mac, uint16_t staId)
switch (sta->mlmStaContext.mlmState) { switch (sta->mlmStaContext.mlmState) {
case eLIM_MLM_WT_ASSOC_CNF_STATE: case eLIM_MLM_WT_ASSOC_CNF_STATE:
pe_debug("Did not receive Assoc Cnf in eLIM_MLM_WT_ASSOC_CNF_STATE sta Assoc id %d", pe_debug("Did not receive Assoc Cnf in eLIM_MLM_WT_ASSOC_CNF_STATE sta Assoc id %d and STA: "QDF_MAC_ADDR_FMT,
sta->assocId); sta->assocId, QDF_MAC_ADDR_REF(sta->staAddr));
lim_print_mac_addr(mac, sta->staAddr, LOGD);
if (LIM_IS_AP_ROLE(pe_session)) { if (LIM_IS_AP_ROLE(pe_session)) {
lim_reject_association(mac, sta->staAddr, lim_reject_association(mac, sta->staAddr,

查看文件

@@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. * 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 * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -329,8 +329,8 @@ QDF_STATUS lim_ft_setup_auth_session(struct mac_context *mac,
pe_find_session_by_bssid(mac, pe_session->limReAssocbssId, pe_find_session_by_bssid(mac, pe_session->limReAssocbssId,
&sessionId); &sessionId);
if (!ft_session) { if (!ft_session) {
pe_err("No session found for bssid"); pe_err("No session found for bssid: "QDF_MAC_ADDR_FMT,
lim_print_mac_addr(mac, pe_session->limReAssocbssId, LOGE); QDF_MAC_ADDR_REF(pe_session->limReAssocbssId));
return QDF_STATUS_E_FAILURE; return QDF_STATUS_E_FAILURE;
} }
@@ -478,13 +478,12 @@ void lim_handle_ft_pre_auth_rsp(struct mac_context *mac, QDF_STATUS status,
else else
ft_session->vdev_nss = mac->vdev_type_nss_5g.sta; ft_session->vdev_nss = mac->vdev_type_nss_5g.sta;
pe_debug("created session (%pK) with id = %d",
ft_session, ft_session->peSessionId);
/* Update the ReAssoc BSSID of the current session */ /* Update the ReAssoc BSSID of the current session */
sir_copy_mac_addr(pe_session->limReAssocbssId, sir_copy_mac_addr(pe_session->limReAssocbssId,
pbssDescription->bssId); pbssDescription->bssId);
lim_print_mac_addr(mac, pe_session->limReAssocbssId, LOGD); pe_debug("created session (%pK) with id = %d BSSID = "QDF_MAC_ADDR_FMT,
ft_session, ft_session->peSessionId,
QDF_MAC_ADDR_REF(pe_session->limReAssocbssId));
} }
send_rsp: send_rsp:
if ((pe_session->curr_op_freq != if ((pe_session->curr_op_freq !=