qcacld-3.0: Rename pHddCtx in wlan_hdd_debugfs.c
The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename pHddCtx to align with the Coding Style. Change-Id: Iaa57767de3f21a4774ce307b21beeb5c814479c4 CRs-Fixed: 2103660
This commit is contained in:
@@ -303,7 +303,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
|
|||||||
loff_t *ppos)
|
loff_t *ppos)
|
||||||
{
|
{
|
||||||
struct hdd_adapter *pAdapter;
|
struct hdd_adapter *pAdapter;
|
||||||
struct hdd_context *pHddCtx;
|
struct hdd_context *hdd_ctx;
|
||||||
tSirAddPeriodicTxPtrn *addPeriodicTxPtrnParams;
|
tSirAddPeriodicTxPtrn *addPeriodicTxPtrnParams;
|
||||||
tSirDelPeriodicTxPtrn *delPeriodicTxPtrnParams;
|
tSirDelPeriodicTxPtrn *delPeriodicTxPtrnParams;
|
||||||
|
|
||||||
@@ -324,12 +324,12 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
|
hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
|
||||||
ret = wlan_hdd_validate_context(pHddCtx);
|
ret = wlan_hdd_validate_context(hdd_ctx);
|
||||||
if (0 != ret)
|
if (0 != ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (!wlan_hdd_validate_modules_state(pHddCtx))
|
if (!wlan_hdd_validate_modules_state(hdd_ctx))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (!sme_is_feature_supported_by_fw(WLAN_PERIODIC_TX_PTRN)) {
|
if (!sme_is_feature_supported_by_fw(WLAN_PERIODIC_TX_PTRN)) {
|
||||||
@@ -395,7 +395,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
|
|||||||
&pAdapter->macAddressCurrent);
|
&pAdapter->macAddressCurrent);
|
||||||
|
|
||||||
/* Delete pattern */
|
/* Delete pattern */
|
||||||
status = sme_del_periodic_tx_ptrn(pHddCtx->hHal,
|
status = sme_del_periodic_tx_ptrn(hdd_ctx->hHal,
|
||||||
delPeriodicTxPtrnParams);
|
delPeriodicTxPtrnParams);
|
||||||
if (QDF_STATUS_SUCCESS != status) {
|
if (QDF_STATUS_SUCCESS != status) {
|
||||||
hdd_err("sme_del_periodic_tx_ptrn() failed!");
|
hdd_err("sme_del_periodic_tx_ptrn() failed!");
|
||||||
@@ -467,7 +467,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Add pattern */
|
/* Add pattern */
|
||||||
status = sme_add_periodic_tx_ptrn(pHddCtx->hHal,
|
status = sme_add_periodic_tx_ptrn(hdd_ctx->hHal,
|
||||||
addPeriodicTxPtrnParams);
|
addPeriodicTxPtrnParams);
|
||||||
if (QDF_STATUS_SUCCESS != status) {
|
if (QDF_STATUS_SUCCESS != status) {
|
||||||
hdd_err("sme_add_periodic_tx_ptrn() failed!");
|
hdd_err("sme_add_periodic_tx_ptrn() failed!");
|
||||||
|
Reference in New Issue
Block a user