qcacld-3.0: Optimize PMO prints

Optimize PMO prints.

Change-Id: I0595e5b51edfe3ad0a0abb239cb53e67938d2efa
CRs-Fixed: 2621351
This commit is contained in:
Abhishek Singh
2020-02-13 16:13:36 +05:30
committed by nshrivas
parent 3c9f90ae6f
commit a7efaea28f
5 changed files with 4 additions and 26 deletions

View File

@@ -46,7 +46,6 @@ static void pmo_core_fill_mc_list(struct pmo_vdev_priv_obj **vdev_ctx,
qdf_spin_unlock_bh(&temp_ctx->pmo_vdev_lock); qdf_spin_unlock_bh(&temp_ctx->pmo_vdev_lock);
for (i = 0; i < ip->count; i++) { for (i = 0; i < ip->count; i++) {
pmo_debug("%pM", ip->mc_addr[i].bytes);
/* /*
* Skip following addresses: * Skip following addresses:
* 1)IPv6 router solicitation address * 1)IPv6 router solicitation address
@@ -71,8 +70,7 @@ static void pmo_core_fill_mc_list(struct pmo_vdev_priv_obj **vdev_ctx,
qdf_mem_copy(&op_list->mc_addr[j].bytes, qdf_mem_copy(&op_list->mc_addr[j].bytes,
ip->mc_addr[i].bytes, QDF_MAC_ADDR_SIZE); ip->mc_addr[i].bytes, QDF_MAC_ADDR_SIZE);
qdf_spin_unlock_bh(&temp_ctx->pmo_vdev_lock); qdf_spin_unlock_bh(&temp_ctx->pmo_vdev_lock);
pmo_debug("Index = %d, mlist[%pM]", pmo_debug("Index = %d, mac[%pM]", j, op_list->mc_addr[i].bytes);
j, op_list->mc_addr[i].bytes);
j++; j++;
} }
} }
@@ -108,8 +106,6 @@ QDF_STATUS pmo_core_enhanced_mc_filter_enable(struct wlan_objmgr_vdev *vdev)
{ {
QDF_STATUS status; QDF_STATUS status;
pmo_enter();
status = pmo_vdev_get_ref(vdev); status = pmo_vdev_get_ref(vdev);
if (QDF_IS_STATUS_ERROR(status)) if (QDF_IS_STATUS_ERROR(status))
goto exit_with_status; goto exit_with_status;
@@ -119,7 +115,6 @@ QDF_STATUS pmo_core_enhanced_mc_filter_enable(struct wlan_objmgr_vdev *vdev)
pmo_vdev_put_ref(vdev); pmo_vdev_put_ref(vdev);
exit_with_status: exit_with_status:
pmo_exit();
return status; return status;
} }
@@ -400,7 +395,6 @@ QDF_STATUS pmo_core_flush_mc_addr_list(struct wlan_objmgr_psoc *psoc,
struct wlan_objmgr_vdev *vdev; struct wlan_objmgr_vdev *vdev;
QDF_STATUS status = QDF_STATUS_SUCCESS; QDF_STATUS status = QDF_STATUS_SUCCESS;
pmo_enter();
if (!psoc) { if (!psoc) {
pmo_err("psoc is NULL"); pmo_err("psoc is NULL");
status = QDF_STATUS_E_NULL_VALUE; status = QDF_STATUS_E_NULL_VALUE;
@@ -433,7 +427,6 @@ QDF_STATUS pmo_core_flush_mc_addr_list(struct wlan_objmgr_psoc *psoc,
dec_ref: dec_ref:
pmo_vdev_put_ref(vdev); pmo_vdev_put_ref(vdev);
out: out:
pmo_exit();
return status; return status;
} }

View File

@@ -51,7 +51,6 @@ QDF_STATUS pmo_core_del_wow_pattern(struct wlan_objmgr_vdev *vdev)
uint8_t pattern_count; uint8_t pattern_count;
struct pmo_vdev_priv_obj *vdev_ctx; struct pmo_vdev_priv_obj *vdev_ctx;
pmo_enter();
status = pmo_vdev_get_ref(vdev); status = pmo_vdev_get_ref(vdev);
if (QDF_IS_STATUS_ERROR(status)) if (QDF_IS_STATUS_ERROR(status))
goto out; goto out;
@@ -69,7 +68,6 @@ QDF_STATUS pmo_core_del_wow_pattern(struct wlan_objmgr_vdev *vdev)
pmo_vdev_put_ref(vdev); pmo_vdev_put_ref(vdev);
out: out:
pmo_exit();
return status; return status;
} }

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. * Copyright (c) 2018-2020 The Linux Foundation. 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
@@ -301,8 +301,6 @@ QDF_STATUS pmo_vdev_object_destroyed_notification(
struct pmo_vdev_priv_obj *vdev_ctx = NULL; struct pmo_vdev_priv_obj *vdev_ctx = NULL;
QDF_STATUS status = QDF_STATUS_SUCCESS; QDF_STATUS status = QDF_STATUS_SUCCESS;
pmo_enter();
vdev_ctx = pmo_vdev_get_priv(vdev); vdev_ctx = pmo_vdev_get_priv(vdev);
status = wlan_objmgr_vdev_component_obj_detach(vdev, status = wlan_objmgr_vdev_component_obj_detach(vdev,
@@ -314,8 +312,6 @@ QDF_STATUS pmo_vdev_object_destroyed_notification(
qdf_spinlock_destroy(&vdev_ctx->pmo_vdev_lock); qdf_spinlock_destroy(&vdev_ctx->pmo_vdev_lock);
qdf_mem_free(vdev_ctx); qdf_mem_free(vdev_ctx);
pmo_exit();
return status; return status;
} }

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * Copyright (c) 2017-2018, 2020 The Linux Foundation. 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
@@ -33,7 +33,6 @@ QDF_STATUS pmo_tgt_send_enhance_multicast_offload_req(
struct wlan_objmgr_psoc *psoc; struct wlan_objmgr_psoc *psoc;
struct wlan_pmo_tx_ops pmo_tx_ops; struct wlan_pmo_tx_ops pmo_tx_ops;
pmo_enter();
psoc = pmo_vdev_get_psoc(vdev); psoc = pmo_vdev_get_psoc(vdev);
pmo_tx_ops = GET_PMO_TX_OPS_FROM_PSOC(psoc); pmo_tx_ops = GET_PMO_TX_OPS_FROM_PSOC(psoc);
@@ -47,7 +46,6 @@ QDF_STATUS pmo_tgt_send_enhance_multicast_offload_req(
if (status != QDF_STATUS_SUCCESS) if (status != QDF_STATUS_SUCCESS)
pmo_err("Failed to config enhance multicast offload"); pmo_err("Failed to config enhance multicast offload");
out: out:
pmo_exit();
return status; return status;
} }

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * Copyright (c) 2017-2018, 2020 The Linux Foundation. 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
@@ -34,8 +34,6 @@ QDF_STATUS pmo_tgt_enable_wow_wakeup_event(
struct wlan_pmo_tx_ops pmo_tx_ops; struct wlan_pmo_tx_ops pmo_tx_ops;
int vdev_id; int vdev_id;
pmo_enter();
psoc = pmo_vdev_get_psoc(vdev); psoc = pmo_vdev_get_psoc(vdev);
vdev_id = pmo_vdev_get_id(vdev); vdev_id = pmo_vdev_get_id(vdev);
@@ -53,7 +51,6 @@ QDF_STATUS pmo_tgt_enable_wow_wakeup_event(
if (status != QDF_STATUS_SUCCESS) if (status != QDF_STATUS_SUCCESS)
pmo_err("Failed to enable wow wakeup event"); pmo_err("Failed to enable wow wakeup event");
out: out:
pmo_exit();
return status; return status;
} }
@@ -102,7 +99,6 @@ QDF_STATUS pmo_tgt_send_wow_patterns_to_fw(
struct wlan_objmgr_psoc *psoc; struct wlan_objmgr_psoc *psoc;
struct wlan_pmo_tx_ops pmo_tx_ops; struct wlan_pmo_tx_ops pmo_tx_ops;
pmo_enter();
psoc = pmo_vdev_get_psoc(vdev); psoc = pmo_vdev_get_psoc(vdev);
vdev_ctx = pmo_vdev_get_priv(vdev); vdev_ctx = pmo_vdev_get_priv(vdev);
@@ -127,7 +123,6 @@ QDF_STATUS pmo_tgt_send_wow_patterns_to_fw(
if (user) if (user)
pmo_increment_wow_user_ptrn(vdev_ctx); pmo_increment_wow_user_ptrn(vdev_ctx);
out: out:
pmo_exit();
return status; return status;
} }
@@ -141,7 +136,6 @@ QDF_STATUS pmo_tgt_del_wow_pattern(
struct wlan_objmgr_psoc *psoc; struct wlan_objmgr_psoc *psoc;
struct wlan_pmo_tx_ops pmo_tx_ops; struct wlan_pmo_tx_ops pmo_tx_ops;
pmo_enter();
psoc = pmo_vdev_get_psoc(vdev); psoc = pmo_vdev_get_psoc(vdev);
vdev_ctx = pmo_vdev_get_priv(vdev); vdev_ctx = pmo_vdev_get_priv(vdev);
@@ -160,7 +154,6 @@ QDF_STATUS pmo_tgt_del_wow_pattern(
if (user) if (user)
pmo_decrement_wow_user_ptrn(vdev_ctx); pmo_decrement_wow_user_ptrn(vdev_ctx);
out: out:
pmo_exit();
return status; return status;
} }