qcacld-3.0: Use qdf_mem_zero for zero initialization
Use qdf_mem_zero for zero initialization. Change-Id: Ic2b8d907623cf67a4569aaf01398c1b3a2bff707 CRs-Fixed: 2376644
Цей коміт міститься в:
@@ -229,7 +229,7 @@ static void wlan_ipa_send_pkt_to_tl(
|
||||
|
||||
skb = QDF_IPA_RX_DATA_SKB(ipa_tx_desc);
|
||||
|
||||
qdf_mem_set(skb->cb, sizeof(skb->cb), 0);
|
||||
qdf_mem_zero(skb->cb, sizeof(skb->cb));
|
||||
|
||||
/* Store IPA Tx buffer ownership into SKB CB */
|
||||
qdf_nbuf_ipa_owned_set(skb);
|
||||
@@ -663,7 +663,7 @@ static void wlan_ipa_forward(struct wlan_ipa_priv *ipa_ctx,
|
||||
if (ipa_ctx->suspended) {
|
||||
qdf_spin_unlock_bh(&ipa_ctx->pm_lock);
|
||||
ipa_info_rl("Tx in suspend, put in queue");
|
||||
qdf_mem_set(skb->cb, sizeof(skb->cb), 0);
|
||||
qdf_mem_zero(skb->cb, sizeof(skb->cb));
|
||||
pm_tx_cb = (struct wlan_ipa_pm_tx_cb *)skb->cb;
|
||||
pm_tx_cb->exception = true;
|
||||
pm_tx_cb->iface_context = iface_ctx;
|
||||
@@ -911,7 +911,7 @@ static void __wlan_ipa_i2w_cb(void *priv, qdf_ipa_dp_evt_type_t evt,
|
||||
* progress.
|
||||
*/
|
||||
if (ipa_ctx->suspended) {
|
||||
qdf_mem_set(skb->cb, sizeof(skb->cb), 0);
|
||||
qdf_mem_zero(skb->cb, sizeof(skb->cb));
|
||||
pm_tx_cb = (struct wlan_ipa_pm_tx_cb *)skb->cb;
|
||||
pm_tx_cb->iface_context = iface_context;
|
||||
pm_tx_cb->ipa_tx_desc = ipa_tx_desc;
|
||||
@@ -1094,8 +1094,9 @@ static bool wlan_ipa_uc_find_add_assoc_sta(struct wlan_ipa_priv *ipa_ctx,
|
||||
ipa_ctx->assoc_stas_map[idx].is_reserved =
|
||||
false;
|
||||
ipa_ctx->assoc_stas_map[idx].sta_id = 0xFF;
|
||||
qdf_mem_set(&ipa_ctx->assoc_stas_map[idx].
|
||||
mac_addr, 0, QDF_NET_ETH_LEN);
|
||||
qdf_mem_zero(
|
||||
&ipa_ctx->assoc_stas_map[idx].mac_addr,
|
||||
QDF_NET_ETH_LEN);
|
||||
return sta_found;
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2019 The Linux Foundation. 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
|
||||
@@ -419,7 +419,7 @@ QDF_STATUS wlan_ipa_wdi_setup_rm(struct wlan_ipa_priv *ipa_ctx)
|
||||
|
||||
qdf_create_work(0, &ipa_ctx->uc_rm_work.work,
|
||||
wlan_ipa_uc_rm_notify_defer, ipa_ctx);
|
||||
qdf_mem_set(&create_params, 0, sizeof(create_params));
|
||||
qdf_mem_zero(&create_params, sizeof(create_params));
|
||||
create_params.name = QDF_IPA_RM_RESOURCE_WLAN_PROD;
|
||||
create_params.reg_params.user_data = ipa_ctx;
|
||||
create_params.reg_params.notify_cb = wlan_ipa_rm_notify;
|
||||
@@ -431,7 +431,7 @@ QDF_STATUS wlan_ipa_wdi_setup_rm(struct wlan_ipa_priv *ipa_ctx)
|
||||
goto setup_rm_fail;
|
||||
}
|
||||
|
||||
qdf_mem_set(&create_params, 0, sizeof(create_params));
|
||||
qdf_mem_zero(&create_params, sizeof(create_params));
|
||||
create_params.name = QDF_IPA_RM_RESOURCE_WLAN_CONS;
|
||||
create_params.request_resource = wlan_ipa_rm_cons_request;
|
||||
create_params.release_resource = wlan_ipa_rm_cons_release;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. 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
|
||||
@@ -830,7 +830,7 @@ static QDF_STATUS p2p_packet_alloc(uint16_t size, void **data,
|
||||
qdf_nbuf_set_protocol(nbuf, ETH_P_CONTROL);
|
||||
*ppPacket = nbuf;
|
||||
*data = qdf_nbuf_data(nbuf);
|
||||
qdf_mem_set(*data, size, 0);
|
||||
qdf_mem_zero(*data, size);
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. 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
|
||||
@@ -66,7 +66,7 @@ static void pmo_core_fill_mc_list(struct pmo_vdev_priv_obj **vdev_ctx,
|
||||
continue;
|
||||
}
|
||||
qdf_spin_lock_bh(&temp_ctx->pmo_vdev_lock);
|
||||
qdf_mem_set(&(op_list->mc_addr[i].bytes), 0,
|
||||
qdf_mem_zero(&(op_list->mc_addr[i].bytes),
|
||||
QDF_MAC_ADDR_SIZE);
|
||||
qdf_mem_copy(&(op_list->mc_addr[i].bytes),
|
||||
ip->mc_addr[i].bytes, QDF_MAC_ADDR_SIZE);
|
||||
|
@@ -302,8 +302,8 @@ void pmo_core_configure_dynamic_wake_events(struct wlan_objmgr_psoc *psoc)
|
||||
enable_configured = false;
|
||||
disable_configured = false;
|
||||
|
||||
qdf_mem_set(enable_mask, sizeof(uint32_t) * BM_LEN, 0);
|
||||
qdf_mem_set(disable_mask, sizeof(uint32_t) * BM_LEN, 0);
|
||||
qdf_mem_zero(enable_mask, sizeof(uint32_t) * BM_LEN);
|
||||
qdf_mem_zero(disable_mask, sizeof(uint32_t) * BM_LEN);
|
||||
|
||||
vdev = pmo_psoc_get_vdev(psoc, vdev_id);
|
||||
if (!vdev)
|
||||
|
@@ -229,8 +229,8 @@ static void tdls_ct_sampling_tx_rx(struct tdls_vdev_priv_obj *tdls_vdev,
|
||||
qdf_mem_copy(mac_table, tdls_vdev->ct_peer_table,
|
||||
(sizeof(struct tdls_conn_tracker_mac_table)) * mac_entries);
|
||||
|
||||
qdf_mem_set(tdls_vdev->ct_peer_table,
|
||||
(sizeof(struct tdls_conn_tracker_mac_table)) * mac_entries, 0);
|
||||
qdf_mem_zero(tdls_vdev->ct_peer_table,
|
||||
(sizeof(struct tdls_conn_tracker_mac_table)) * mac_entries);
|
||||
|
||||
tdls_vdev->valid_mac_entries = 0;
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача