From 79d6e5e1517db2b1f3c4d205ea0167e64fcc2370 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 7 Mar 2019 22:26:19 -0800 Subject: [PATCH] qcacld-3.0: Rename HDD identifier pTspec The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename HDD identifier pTspec to be compliant. Change-Id: I977162fecb0fd0c3a3e48cfa38df3414b0601ad1 CRs-Fixed: 2412188 --- core/hdd/inc/wlan_hdd_wmm.h | 4 ++-- core/hdd/src/wlan_hdd_wmm.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_wmm.h b/core/hdd/inc/wlan_hdd_wmm.h index 815b60979d78..14cf5b29f854 100644 --- a/core/hdd/inc/wlan_hdd_wmm.h +++ b/core/hdd/inc/wlan_hdd_wmm.h @@ -347,13 +347,13 @@ bool hdd_wmm_is_acm_allowed(uint8_t vdev_id); * * @adapter : [in] pointer to adapter context * @handle : [in] handle to uniquely identify a TS - * @pTspec : [in] pointer to the traffic spec + * @tspec : [in] pointer to the traffic spec * * Return: HDD_WLAN_WMM_STATUS_* */ hdd_wlan_wmm_status_e hdd_wmm_addts(struct hdd_adapter *adapter, uint32_t handle, - struct sme_qos_wmmtspecinfo *pTspec); + struct sme_qos_wmmtspecinfo *tspec); /** * hdd_wmm_delts() - Function which will delete a traffic spec at the diff --git a/core/hdd/src/wlan_hdd_wmm.c b/core/hdd/src/wlan_hdd_wmm.c index 1aae43ed8336..1174ccaec688 100644 --- a/core/hdd/src/wlan_hdd_wmm.c +++ b/core/hdd/src/wlan_hdd_wmm.c @@ -2301,13 +2301,13 @@ bool hdd_wmm_is_acm_allowed(uint8_t vdev_id) * * @adapter : [in] pointer to adapter context * @handle : [in] handle to uniquely identify a TS - * @pTspec : [in] pointer to the traffic spec + * @tspec : [in] pointer to the traffic spec * * Return: HDD_WLAN_WMM_STATUS_* */ hdd_wlan_wmm_status_e hdd_wmm_addts(struct hdd_adapter *adapter, uint32_t handle, - struct sme_qos_wmmtspecinfo *pTspec) + struct sme_qos_wmmtspecinfo *tspec) { struct hdd_wmm_qos_context *qos_context; hdd_wlan_wmm_status_e status = HDD_WLAN_WMM_STATUS_SETUP_SUCCESS; @@ -2337,7 +2337,7 @@ hdd_wlan_wmm_status_e hdd_wmm_addts(struct hdd_adapter *adapter, * params. Allow it */ smeStatus = sme_qos_modify_req(mac_handle, - pTspec, qos_context->qosFlowId); + tspec, qos_context->qosFlowId); /* need to check the return value and act appropriately */ switch (smeStatus) { @@ -2389,11 +2389,11 @@ hdd_wlan_wmm_status_e hdd_wmm_addts(struct hdd_adapter *adapter, /* we assume the tspec has already been validated by the caller */ qos_context->handle = handle; - if (pTspec->ts_info.up < HDD_WMM_UP_TO_AC_MAP_SIZE) - qos_context->acType = hdd_wmm_up_to_ac_map[pTspec->ts_info.up]; + if (tspec->ts_info.up < HDD_WMM_UP_TO_AC_MAP_SIZE) + qos_context->acType = hdd_wmm_up_to_ac_map[tspec->ts_info.up]; else { hdd_err("ts_info.up (%d) larger than max value (%d), use default acType (%d)", - pTspec->ts_info.up, + tspec->ts_info.up, HDD_WMM_UP_TO_AC_MAP_SIZE - 1, hdd_wmm_up_to_ac_map[0]); qos_context->acType = hdd_wmm_up_to_ac_map[0]; } @@ -2411,10 +2411,10 @@ hdd_wlan_wmm_status_e hdd_wmm_addts(struct hdd_adapter *adapter, #ifndef WLAN_MDM_CODE_REDUCTION_OPT smeStatus = sme_qos_setup_req(mac_handle, adapter->vdev_id, - pTspec, + tspec, hdd_wmm_sme_callback, qos_context, - pTspec->ts_info.up, + tspec->ts_info.up, &qos_context->qosFlowId); hdd_debug("sme_qos_setup_req returned %d flowid %d",