qcacld-3.0: Fix improper arguments for QDF_MAC_ADDR_REF
Currently in driver while using QDF_MAC_ADDR_FMT to print mac address, the mac address reference provided to QDF_MAC_ADDR_REF is incorrect in some cases. Fix all such instances. Change-Id: Ib5d84b01542ebf04ee7d23fb65305036651a6a45 CRs-Fixed: 3556409
This commit is contained in:

committed by
Rahul Choudhary

parent
a6753114c3
commit
b1969a2405
@@ -7919,7 +7919,7 @@ void policy_mgr_activate_mlo_links(struct wlan_objmgr_psoc *psoc,
|
||||
QDF_MAC_ADDR_REF(link_mac_addr));
|
||||
for (link = 0; link < num_links; link++) {
|
||||
policy_mgr_debug("active addr: " QDF_MAC_ADDR_FMT,
|
||||
QDF_MAC_ADDR_REF(&active_link_addr[link]));
|
||||
QDF_MAC_ADDR_REF(&active_link_addr[link].bytes[0]));
|
||||
if (!qdf_mem_cmp(link_mac_addr,
|
||||
&active_link_addr[link].bytes[0],
|
||||
QDF_MAC_ADDR_SIZE)) {
|
||||
|
@@ -2260,7 +2260,8 @@ wmi_fill_roam_mlo_info(wmi_unified_t wmi_handle,
|
||||
link->link_addr.bytes);
|
||||
wmi_debug("link_id: %u vdev_id: %u flags: 0x%x addr:" QDF_MAC_ADDR_FMT,
|
||||
link->link_id, link->vdev_id,
|
||||
link->flags, link->link_addr.bytes);
|
||||
link->flags,
|
||||
QDF_MAC_ADDR_REF(link->link_addr.bytes));
|
||||
wmi_debug("channel: %u mhz center_freq1: %u center_freq2: %u",
|
||||
link->channel.mhz,
|
||||
link->channel.band_center_freq1,
|
||||
|
@@ -11272,7 +11272,8 @@ static int hdd_set_link_force_active(struct wlan_hdd_link_info *link_info,
|
||||
qdf_mem_copy(mac_addr_ptr, nla_data(curr_attr),
|
||||
ETH_ALEN);
|
||||
hdd_debug(QDF_MAC_ADDR_FMT " is link[%d] mac address",
|
||||
QDF_MAC_ADDR_REF(mac_addr_ptr), num_links);
|
||||
QDF_MAC_ADDR_REF(mac_addr_ptr->bytes),
|
||||
num_links);
|
||||
num_links++;
|
||||
}
|
||||
sme_activate_mlo_links(hdd_ctx->mac_handle,
|
||||
@@ -21840,7 +21841,7 @@ wlan_hdd_set_vlan_id(struct hdd_sta_info_obj *sta_info_list,
|
||||
if (!sta_info) {
|
||||
hdd_err("Failed to find right station MAC: "
|
||||
QDF_MAC_ADDR_FMT,
|
||||
QDF_MAC_ADDR_REF(uint8_t *)mac);
|
||||
QDF_MAC_ADDR_REF(mac));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -290,7 +290,8 @@ QDF_STATUS hdd_derive_link_address_from_mld(struct qdf_mac_addr *mld_addr,
|
||||
|
||||
link_addr = link_addr_list;
|
||||
last_byte = mld_addr->bytes[5];
|
||||
hdd_debug("MLD addr: " QDF_MAC_ADDR_FMT, QDF_MAC_ADDR_REF(mld_addr));
|
||||
hdd_debug("MLD addr: " QDF_MAC_ADDR_FMT,
|
||||
QDF_MAC_ADDR_REF(mld_addr->bytes));
|
||||
|
||||
for (idx = 0; idx < max_idx; idx++) {
|
||||
temp_byte = ((last_byte >> 4 & INTF_MACADDR_MASK) + idx) &
|
||||
|
@@ -4361,7 +4361,7 @@ lim_gen_link_probe_rsp_roam(struct mac_context *mac_ctx,
|
||||
&ml_probe_link_id);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
pe_debug("Invalid link id for mac_addr: " QDF_MAC_ADDR_FMT,
|
||||
src_addr);
|
||||
QDF_MAC_ADDR_REF(src_addr));
|
||||
goto done;
|
||||
}
|
||||
for (idx = 0; idx < roam_sync_ind->num_setup_links; idx++) {
|
||||
|
@@ -2845,7 +2845,7 @@ lim_process_switch_channel_join_mlo_roam(struct pe_session *session_entry,
|
||||
QDF_MAC_ADDR_SIZE);
|
||||
|
||||
pe_err("sta_link_addr" QDF_MAC_ADDR_FMT,
|
||||
QDF_MAC_ADDR_REF(&sta_link_addr));
|
||||
QDF_MAC_ADDR_REF(&sta_link_addr.bytes[0]));
|
||||
|
||||
if (assoc_rsp.len) {
|
||||
struct element_info link_assoc_rsp;
|
||||
|
@@ -11608,7 +11608,8 @@ QDF_STATUS populate_dot11f_auth_mlo_ie(struct mac_context *mac_ctx,
|
||||
qdf_mem_copy(&mlo_ie->mld_mac_addr, mld_addr, QDF_MAC_ADDR_SIZE);
|
||||
mlo_ie->common_info_length += QDF_MAC_ADDR_SIZE;
|
||||
|
||||
pe_debug("MLD mac addr: " QDF_MAC_ADDR_FMT, mld_addr);
|
||||
pe_debug("MLD mac addr: " QDF_MAC_ADDR_FMT,
|
||||
QDF_MAC_ADDR_REF(mld_addr->bytes));
|
||||
|
||||
mlo_ie->link_id_info_present = 0;
|
||||
mlo_ie->bss_param_change_cnt_present = 0;
|
||||
@@ -11902,7 +11903,7 @@ QDF_STATUS populate_dot11f_assoc_req_mlo_ie(struct mac_context *mac_ctx,
|
||||
len_remaining -= QDF_MAC_ADDR_SIZE;
|
||||
|
||||
pe_debug("Sta profile mac: " QDF_MAC_ADDR_FMT,
|
||||
QDF_MAC_ADDR_REF(ml_link_info->link_addr.bytes));
|
||||
QDF_MAC_ADDR_REF(ml_link_info->link_addr.bytes));
|
||||
|
||||
/* TBD : populate beacon_interval, dtim_info
|
||||
* nstr_link_pair_present, nstr_bitmap_size
|
||||
|
Reference in New Issue
Block a user