Browse Source

qcacld-3.0: Rename HDD identifier wmmAcAccessNeeded

The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcAccessNeeded to be compliant.

Change-Id: I45a447f0a0a464d543a9da06cf0da1e9854a32f1
CRs-Fixed: 2414511
Jeff Johnson 6 years ago
parent
commit
12ccaf6a14
2 changed files with 8 additions and 8 deletions
  1. 2 2
      core/hdd/inc/wlan_hdd_wmm.h
  2. 6 6
      core/hdd/src/wlan_hdd_wmm.c

+ 2 - 2
core/hdd/inc/wlan_hdd_wmm.h

@@ -133,7 +133,7 @@ struct hdd_wmm_qos_context {
 /**
  * struct hdd_wmm_ac_status - WMM related per-AC state & status info
  * @is_access_required - does the AP require access to this AC?
- * @wmmAcAccessNeeded - does the worker thread need to acquire access to
+ * @is_access_needed - does the worker thread need to acquire access to
  *	this AC?
  * @wmmAcAccessPending - is implicit QoS negotiation currently taking place?
  * @wmmAcAccessFailed - has implicit QoS negotiation already failed?
@@ -154,7 +154,7 @@ struct hdd_wmm_qos_context {
  */
 struct hdd_wmm_ac_status {
 	bool is_access_required;
-	bool wmmAcAccessNeeded;
+	bool is_access_needed;
 	bool wmmAcAccessPending;
 	bool wmmAcAccessFailed;
 	bool wmmAcAccessGranted;

+ 6 - 6
core/hdd/src/wlan_hdd_wmm.c

@@ -1042,7 +1042,7 @@ static void __hdd_wmm_do_implicit_qos(struct hdd_wmm_qos_context *qos_context)
 
 	hdd_debug("adapter %pK ac_type %d", adapter, ac_type);
 
-	if (!ac->wmmAcAccessNeeded) {
+	if (!ac->is_access_needed) {
 		hdd_err("AC %d doesn't need service", ac_type);
 		qos_context->magic = 0;
 		qdf_mem_free(qos_context);
@@ -1050,7 +1050,7 @@ static void __hdd_wmm_do_implicit_qos(struct hdd_wmm_qos_context *qos_context)
 	}
 
 	ac->wmmAcAccessPending = true;
-	ac->wmmAcAccessNeeded = false;
+	ac->is_access_needed = false;
 
 	memset(&qosInfo, 0, sizeof(qosInfo));
 
@@ -1516,7 +1516,7 @@ QDF_STATUS hdd_wmm_adapter_init(struct hdd_adapter *adapter)
 	for (ac_type = 0; ac_type < WLAN_MAX_AC; ac_type++) {
 		ac_status = &adapter->hdd_wmm_status.ac_status[ac_type];
 		ac_status->is_access_required = false;
-		ac_status->wmmAcAccessNeeded = false;
+		ac_status->is_access_needed = false;
 		ac_status->wmmAcAccessPending = false;
 		ac_status->wmmAcAccessFailed = false;
 		ac_status->wmmAcAccessGranted = false;
@@ -1549,7 +1549,7 @@ QDF_STATUS hdd_wmm_adapter_clear(struct hdd_adapter *adapter)
 	for (ac_type = 0; ac_type < WLAN_MAX_AC; ac_type++) {
 		ac_status = &adapter->hdd_wmm_status.ac_status[ac_type];
 		ac_status->is_access_required = false;
-		ac_status->wmmAcAccessNeeded = false;
+		ac_status->is_access_needed = false;
 		ac_status->wmmAcAccessPending = false;
 		ac_status->wmmAcAccessFailed = false;
 		ac_status->wmmAcAccessGranted = false;
@@ -1917,7 +1917,7 @@ QDF_STATUS hdd_wmm_acquire_access(struct hdd_adapter *adapter,
 		return QDF_STATUS_SUCCESS;
 	}
 	/* do we already have an implicit QoS request pending for this AC? */
-	if ((adapter->hdd_wmm_status.ac_status[ac_type].wmmAcAccessNeeded) ||
+	if ((adapter->hdd_wmm_status.ac_status[ac_type].is_access_needed) ||
 	    (adapter->hdd_wmm_status.ac_status[ac_type].wmmAcAccessPending)) {
 		/* request already pending so we need to wait for that
 		 * response
@@ -1959,7 +1959,7 @@ QDF_STATUS hdd_wmm_acquire_access(struct hdd_adapter *adapter,
 		  "%s: Need to schedule implicit QoS for TL AC %d, adapter is %pK",
 		  __func__, ac_type, adapter);
 
-	adapter->hdd_wmm_status.ac_status[ac_type].wmmAcAccessNeeded = true;
+	adapter->hdd_wmm_status.ac_status[ac_type].is_access_needed = true;
 
 	qos_context = qdf_mem_malloc(sizeof(*qos_context));
 	if (NULL == qos_context) {