qcacld-3.0: Rename struct hdd_wmm_qos_context field pAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct hdd_wmm_qos_context field
pAdapter to align with the Coding Style.
Change-Id: I375584d6cb58bd7fd51375ab769c3cc361ba28d4
CRs-Fixed: 2119757
diff --git a/core/hdd/inc/wlan_hdd_wmm.h b/core/hdd/inc/wlan_hdd_wmm.h
index e1501f5..d389335 100644
--- a/core/hdd/inc/wlan_hdd_wmm.h
+++ b/core/hdd/inc/wlan_hdd_wmm.h
@@ -119,7 +119,7 @@
* of contexts
* @handle: identifer which uniquely identifies this context to userspace
* @qosFlowID: identifier which uniquely identifies this flow to SME
- * @pAdapter: adapter upon which this flow was configured
+ * @adapter: adapter upon which this flow was configured
* @acType: access category for this flow
* @lastStatus: the status of the last operation performed on this flow by SME
* @wmmAcSetupImplicitQos: work structure used for deferring implicit QoS work
@@ -131,7 +131,7 @@
struct list_head node;
uint32_t handle;
uint32_t qosFlowId;
- struct hdd_adapter *pAdapter;
+ struct hdd_adapter *adapter;
sme_ac_enum_type acType;
hdd_wlan_wmm_status_e lastStatus;
struct work_struct wmmAcSetupImplicitQos;
diff --git a/core/hdd/src/wlan_hdd_wmm.c b/core/hdd/src/wlan_hdd_wmm.c
index 6f1d240..eeb5772 100644
--- a/core/hdd/src/wlan_hdd_wmm.c
+++ b/core/hdd/src/wlan_hdd_wmm.c
@@ -122,7 +122,7 @@
*/
static void hdd_wmm_enable_tl_uapsd(struct hdd_wmm_qos_context *pQosContext)
{
- struct hdd_adapter *pAdapter = pQosContext->pAdapter;
+ struct hdd_adapter *pAdapter = pQosContext->adapter;
sme_ac_enum_type acType = pQosContext->acType;
struct hdd_wmm_ac_status *pAc = &pAdapter->hddWmmStatus.wmmAcStatus[acType];
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
@@ -199,7 +199,7 @@
*/
static void hdd_wmm_disable_tl_uapsd(struct hdd_wmm_qos_context *pQosContext)
{
- struct hdd_adapter *pAdapter = pQosContext->pAdapter;
+ struct hdd_adapter *pAdapter = pQosContext->adapter;
sme_ac_enum_type acType = pQosContext->acType;
struct hdd_wmm_ac_status *pAc = &pAdapter->hddWmmStatus.wmmAcStatus[acType];
QDF_STATUS status;
@@ -242,7 +242,7 @@
return;
}
/* get pointer to the adapter context */
- pAdapter = pQosContext->pAdapter;
+ pAdapter = pQosContext->adapter;
/* take the wmmLock since we're manipulating the context list */
mutex_lock(&pAdapter->hddWmmStatus.wmmLock);
@@ -297,7 +297,7 @@
wrqu.data.length = strlen(buf);
/* get pointer to the adapter */
- pAdapter = pQosContext->pAdapter;
+ pAdapter = pQosContext->adapter;
/* send the event */
hdd_debug("Sending [%s]", buf);
@@ -329,7 +329,7 @@
uint32_t currentTrafficCnt = 0;
sme_ac_enum_type acType = pQosContext->acType;
- pAdapter = pQosContext->pAdapter;
+ pAdapter = pQosContext->adapter;
if ((NULL == pAdapter) ||
(WLAN_HDD_ADAPTER_MAGIC != pAdapter->magic)) {
hdd_err("invalid pAdapter: %pK", pAdapter);
@@ -387,11 +387,11 @@
uint32_t inactivityTime)
{
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
- struct hdd_adapter *pAdapter = pQosContext->pAdapter;
+ struct hdd_adapter *pAdapter = pQosContext->adapter;
sme_ac_enum_type acType = pQosContext->acType;
struct hdd_wmm_ac_status *pAc;
- pAdapter = pQosContext->pAdapter;
+ pAdapter = pQosContext->adapter;
pAc = &pAdapter->hddWmmStatus.wmmAcStatus[acType];
qdf_status = qdf_mc_timer_init(&pAc->wmmInactivityTimer,
@@ -438,7 +438,7 @@
static QDF_STATUS
hdd_wmm_disable_inactivity_timer(struct hdd_wmm_qos_context *pQosContext)
{
- struct hdd_adapter *pAdapter = pQosContext->pAdapter;
+ struct hdd_adapter *pAdapter = pQosContext->adapter;
sme_ac_enum_type acType = pQosContext->acType;
struct hdd_wmm_ac_status *pAc = &pAdapter->hddWmmStatus.wmmAcStatus[acType];
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
@@ -498,7 +498,7 @@
return QDF_STATUS_E_FAILURE;
}
- pAdapter = pQosContext->pAdapter;
+ pAdapter = pQosContext->adapter;
acType = pQosContext->acType;
pAc = &pAdapter->hddWmmStatus.wmmAcStatus[acType];
@@ -1008,7 +1008,7 @@
return;
}
- pAdapter = pQosContext->pAdapter;
+ pAdapter = pQosContext->adapter;
hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
if (wlan_hdd_validate_context(hdd_ctx))
@@ -1763,7 +1763,7 @@
}
pQosContext->acType = acType;
- pQosContext->pAdapter = pAdapter;
+ pQosContext->adapter = pAdapter;
pQosContext->qosFlowId = 0;
pQosContext->handle = HDD_WMM_HANDLE_IMPLICIT;
pQosContext->magic = HDD_WMM_CTX_MAGIC;
@@ -2172,7 +2172,7 @@
HDD_WMM_UP_TO_AC_MAP_SIZE - 1, hdd_wmm_up_to_ac_map[0]);
pQosContext->acType = hdd_wmm_up_to_ac_map[0];
}
- pQosContext->pAdapter = pAdapter;
+ pQosContext->adapter = pAdapter;
pQosContext->qosFlowId = 0;
pQosContext->magic = HDD_WMM_CTX_MAGIC;
pQosContext->is_inactivity_timer_running = false;