qcacld-3.0: Rename pAddPeriodicTxPtrnParams
Per the Linux coding style both mixed-case names and so-called Hungarian notation are frowned upon, therefore replace the identifier pAddPeriodicTxPtrnParams everywhere it occurs. Change-Id: Id15f65781eb6ead662add691aa299df0ca60bc3f CRs-Fixed: 2371907
This commit is contained in:
@@ -1140,8 +1140,7 @@ QDF_STATUS wma_process_rmc_action_period_ind(tp_wma_handle wma)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
||||||
tSirAddPeriodicTxPtrn *
|
tSirAddPeriodicTxPtrn *pattern);
|
||||||
pAddPeriodicTxPtrnParams);
|
|
||||||
|
|
||||||
QDF_STATUS wma_process_del_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
QDF_STATUS wma_process_del_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
||||||
tSirDelPeriodicTxPtrn *
|
tSirDelPeriodicTxPtrn *
|
||||||
|
@@ -3514,15 +3514,14 @@ QDF_STATUS wma_process_rmc_action_period_ind(tp_wma_handle wma)
|
|||||||
#endif /* FEATURE_WLAN_RMC */
|
#endif /* FEATURE_WLAN_RMC */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wma_process_add_periodic_tx_ptrn_ind - add periodic tx ptrn
|
* wma_process_add_periodic_tx_ptrn_ind() - add periodic tx pattern
|
||||||
* @handle: wma handle
|
* @handle: wma handle
|
||||||
* @pAddPeriodicTxPtrnParams: tx ptrn params
|
* @pattern: tx pattern params
|
||||||
*
|
*
|
||||||
* Retrun: QDF status
|
* Return: QDF status
|
||||||
*/
|
*/
|
||||||
QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
||||||
tSirAddPeriodicTxPtrn *
|
tSirAddPeriodicTxPtrn *pattern)
|
||||||
pAddPeriodicTxPtrnParams)
|
|
||||||
{
|
{
|
||||||
tp_wma_handle wma_handle = (tp_wma_handle) handle;
|
tp_wma_handle wma_handle = (tp_wma_handle) handle;
|
||||||
struct periodic_tx_pattern *params_ptr;
|
struct periodic_tx_pattern *params_ptr;
|
||||||
@@ -3536,10 +3535,10 @@ QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!wma_find_vdev_by_addr(wma_handle,
|
if (!wma_find_vdev_by_addr(wma_handle,
|
||||||
pAddPeriodicTxPtrnParams->mac_address.bytes,
|
pattern->mac_address.bytes,
|
||||||
&vdev_id)) {
|
&vdev_id)) {
|
||||||
WMA_LOGE("%s: Failed to find vdev id for %pM", __func__,
|
WMA_LOGE("%s: Failed to find vdev id for %pM", __func__,
|
||||||
pAddPeriodicTxPtrnParams->mac_address.bytes);
|
pattern->mac_address.bytes);
|
||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3547,19 +3546,16 @@ QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
|||||||
if (!params_ptr)
|
if (!params_ptr)
|
||||||
return QDF_STATUS_E_NOMEM;
|
return QDF_STATUS_E_NOMEM;
|
||||||
|
|
||||||
params_ptr->ucPtrnId = pAddPeriodicTxPtrnParams->ucPtrnId;
|
params_ptr->ucPtrnId = pattern->ucPtrnId;
|
||||||
params_ptr->ucPtrnSize = pAddPeriodicTxPtrnParams->ucPtrnSize;
|
params_ptr->ucPtrnSize = pattern->ucPtrnSize;
|
||||||
params_ptr->usPtrnIntervalMs =
|
params_ptr->usPtrnIntervalMs = pattern->usPtrnIntervalMs;
|
||||||
pAddPeriodicTxPtrnParams->usPtrnIntervalMs;
|
qdf_mem_copy(¶ms_ptr->mac_address, &pattern->mac_address,
|
||||||
qdf_mem_copy(¶ms_ptr->mac_address,
|
sizeof(struct qdf_mac_addr));
|
||||||
&pAddPeriodicTxPtrnParams->mac_address,
|
qdf_mem_copy(params_ptr->ucPattern, pattern->ucPattern,
|
||||||
sizeof(struct qdf_mac_addr));
|
params_ptr->ucPtrnSize);
|
||||||
qdf_mem_copy(params_ptr->ucPattern,
|
|
||||||
pAddPeriodicTxPtrnParams->ucPattern,
|
|
||||||
params_ptr->ucPtrnSize);
|
|
||||||
|
|
||||||
status = wmi_unified_process_add_periodic_tx_ptrn_cmd(
|
status = wmi_unified_process_add_periodic_tx_ptrn_cmd(
|
||||||
wma_handle->wmi_handle, params_ptr, vdev_id);
|
wma_handle->wmi_handle, params_ptr, vdev_id);
|
||||||
|
|
||||||
qdf_mem_free(params_ptr);
|
qdf_mem_free(params_ptr);
|
||||||
return status;
|
return status;
|
||||||
@@ -3570,7 +3566,7 @@ QDF_STATUS wma_process_add_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
|||||||
* @handle: wma handle
|
* @handle: wma handle
|
||||||
* @pDelPeriodicTxPtrnParams: tx ptrn params
|
* @pDelPeriodicTxPtrnParams: tx ptrn params
|
||||||
*
|
*
|
||||||
* Retrun: QDF status
|
* Return: QDF status
|
||||||
*/
|
*/
|
||||||
QDF_STATUS wma_process_del_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
QDF_STATUS wma_process_del_periodic_tx_ptrn_ind(WMA_HANDLE handle,
|
||||||
tSirDelPeriodicTxPtrn *
|
tSirDelPeriodicTxPtrn *
|
||||||
|
Reference in New Issue
Block a user