From 34233e246e3aa6a1e5e3852856e74dfee4c5c528 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 6 Dec 2018 11:07:10 -0800 Subject: [PATCH] qcacld-3.0: Rename GET_DISA_TX_OPS_FROM_VDEV() The name GET_DISA_TX_OPS_FROM_VDEV() is misleading since the macro actually uses a psoc, so rename the macro to reflect the actual source of data. In addition update the macro parameter so that it is actually used. Change-Id: I1a895a677250d860920102ec0d25719312536231 CRs-Fixed: 2362598 --- components/disa/dispatcher/inc/wlan_disa_tgt_api.h | 2 +- components/disa/dispatcher/src/wlan_disa_tgt_api.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/disa/dispatcher/inc/wlan_disa_tgt_api.h b/components/disa/dispatcher/inc/wlan_disa_tgt_api.h index 39887079ecca..ad900deb14cf 100644 --- a/components/disa/dispatcher/inc/wlan_disa_tgt_api.h +++ b/components/disa/dispatcher/inc/wlan_disa_tgt_api.h @@ -28,7 +28,7 @@ struct wlan_objmgr_psoc; struct disa_encrypt_decrypt_req_params; struct disa_encrypt_decrypt_resp_params; -#define GET_DISA_TX_OPS_FROM_VDEV(vedv) \ +#define GET_DISA_TX_OPS_FROM_PSOC(psoc) \ (&disa_psoc_get_priv(psoc)->disa_tx_ops) /** diff --git a/components/disa/dispatcher/src/wlan_disa_tgt_api.c b/components/disa/dispatcher/src/wlan_disa_tgt_api.c index 5576ff1b601f..384916c0c44b 100644 --- a/components/disa/dispatcher/src/wlan_disa_tgt_api.c +++ b/components/disa/dispatcher/src/wlan_disa_tgt_api.c @@ -38,7 +38,7 @@ QDF_STATUS tgt_disa_encrypt_decrypt_req(struct wlan_objmgr_psoc *psoc, DISA_ENTER(); - disa_tx_ops = GET_DISA_TX_OPS_FROM_VDEV(psoc); + disa_tx_ops = GET_DISA_TX_OPS_FROM_PSOC(psoc); QDF_ASSERT(disa_tx_ops->disa_encrypt_decrypt_req); if (disa_tx_ops->disa_encrypt_decrypt_req) @@ -101,7 +101,7 @@ QDF_STATUS tgt_disa_register_ev_handlers(struct wlan_objmgr_psoc *psoc) { struct wlan_disa_tx_ops *disa_tx_ops; - disa_tx_ops = GET_DISA_TX_OPS_FROM_VDEV(psoc); + disa_tx_ops = GET_DISA_TX_OPS_FROM_PSOC(psoc); QDF_ASSERT(disa_tx_ops->disa_register_ev_handlers); @@ -121,7 +121,7 @@ QDF_STATUS tgt_disa_unregister_ev_handlers(struct wlan_objmgr_psoc *psoc) { struct wlan_disa_tx_ops *disa_tx_ops; - disa_tx_ops = GET_DISA_TX_OPS_FROM_VDEV(psoc); + disa_tx_ops = GET_DISA_TX_OPS_FROM_PSOC(psoc); QDF_ASSERT(disa_tx_ops->disa_unregister_ev_handlers);