Ver código fonte

qcacld-3.0: Rename hdd_context isWiphySuspended field

Per the Linux coding style "mixed-case names are frowned upon" so
rename field isWiphySuspended in struct hdd_context.

Change-Id: If32333fe2cf5a4494e0f631909ebc1e16d679269
CRs-Fixed: 2135909
Jeff Johnson 7 anos atrás
pai
commit
214671b36b

+ 1 - 1
core/hdd/inc/wlan_hdd_main.h

@@ -1534,7 +1534,7 @@ struct hdd_context {
 	qdf_spinlock_t sched_scan_lock;
 
 	/* Flag keeps track of wiphy suspend/resume */
-	bool isWiphySuspended;
+	bool is_wiphy_suspended;
 
 	/* Indicates about pending sched_scan results */
 	bool isSchedScanUpdatePending;

+ 4 - 4
core/hdd/src/wlan_hdd_main.c

@@ -6464,7 +6464,7 @@ static void hdd_bus_bw_work_handler(struct work_struct *work)
 	if (wlan_hdd_validate_context(hdd_ctx))
 		return;
 
-	if (hdd_ctx->isWiphySuspended)
+	if (hdd_ctx->is_wiphy_suspended)
 		goto restart_timer;
 
 	for (status = hdd_get_front_adapter(hdd_ctx, &adapterNode);
@@ -9512,9 +9512,9 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode)
 	cds_set_module_stop_in_progress(true);
 
 	active_threads = cds_return_external_threads_count();
-	if (active_threads > 0 || hdd_ctx->isWiphySuspended) {
+	if (active_threads > 0 || hdd_ctx->is_wiphy_suspended) {
 		hdd_warn("External threads %d wiphy suspend %d",
-			 active_threads, hdd_ctx->isWiphySuspended);
+			 active_threads, hdd_ctx->is_wiphy_suspended);
 
 		cds_print_external_threads();
 
@@ -9683,7 +9683,7 @@ static void hdd_state_info_dump(char **buf_ptr, uint16_t *size)
 	hdd_debug("size of buffer: %d", *size);
 
 	len += scnprintf(buf + len, *size - len,
-		"\n isWiphySuspended %d", hdd_ctx->isWiphySuspended);
+		"\n is_wiphy_suspended %d", hdd_ctx->is_wiphy_suspended);
 	len += scnprintf(buf + len, *size - len,
 		"\n is_scheduler_suspended %d",
 		hdd_ctx->is_scheduler_suspended);

+ 5 - 5
core/hdd/src/wlan_hdd_power.c

@@ -1288,7 +1288,7 @@ QDF_STATUS hdd_wlan_shutdown(void)
 	if (hdd_ctx->is_scheduler_suspended) {
 		scheduler_resume();
 		hdd_ctx->is_scheduler_suspended = false;
-		hdd_ctx->isWiphySuspended = false;
+		hdd_ctx->is_wiphy_suspended = false;
 	}
 #ifdef QCA_CONFIG_SMP
 	if (true == hdd_ctx->is_ol_rx_thread_suspended) {
@@ -1656,9 +1656,9 @@ static int __wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy)
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_HDD,
 			 TRACE_CODE_HDD_CFG80211_RESUME_WLAN,
-			 NO_SESSION, hdd_ctx->isWiphySuspended));
+			 NO_SESSION, hdd_ctx->is_wiphy_suspended));
 	qdf_spin_lock(&hdd_ctx->sched_scan_lock);
-	hdd_ctx->isWiphySuspended = false;
+	hdd_ctx->is_wiphy_suspended = false;
 	if (true != hdd_ctx->isSchedScanUpdatePending) {
 		qdf_spin_unlock(&hdd_ctx->sched_scan_lock);
 		hdd_debug("Return resume is not due to PNO indication");
@@ -1903,8 +1903,8 @@ next_adapter:
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_HDD,
 			 TRACE_CODE_HDD_CFG80211_SUSPEND_WLAN,
-			 NO_SESSION, hdd_ctx->isWiphySuspended));
-	hdd_ctx->isWiphySuspended = true;
+			 NO_SESSION, hdd_ctx->is_wiphy_suspended));
+	hdd_ctx->is_wiphy_suspended = true;
 
 	pld_request_bus_bandwidth(hdd_ctx->parent_dev, PLD_BUS_WIDTH_NONE);
 

+ 1 - 1
core/hdd/src/wlan_hdd_regulatory.c

@@ -713,7 +713,7 @@ void hdd_reg_notifier(struct wiphy *wiphy,
 		return;
 	}
 
-	if (hdd_ctx->isWiphySuspended == true) {
+	if (hdd_ctx->is_wiphy_suspended == true) {
 		hdd_err("%s: system/cfg80211 is already suspend", __func__);
 		return;
 	}