Browse Source

qcacld-3.0: Rename hdd_context enableSapSuspend field

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

Change-Id: I8f5321fa57c01a36df72dec17499969d0848e3dd
CRs-Fixed: 2140344
Jeff Johnson 7 years ago
parent
commit
60cbd2db9c
3 changed files with 5 additions and 5 deletions
  1. 1 1
      core/hdd/inc/wlan_hdd_cfg.h
  2. 2 2
      core/hdd/src/wlan_hdd_cfg.c
  3. 2 2
      core/hdd/src/wlan_hdd_power.c

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

@@ -13878,7 +13878,7 @@ struct hdd_config {
 	uint8_t SapSccChanAvoidance;
 #endif /* FEATURE_WLAN_FORCE_SAP_SCC */
 
-	bool enableSapSuspend;
+	bool enable_sap_suspend;
 
 #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
 	uint8_t extWowGotoSuspend;

+ 2 - 2
core/hdd/src/wlan_hdd_cfg.c

@@ -3434,7 +3434,7 @@ struct reg_table_entry g_registry_table[] = {
 #endif /* FEATURE_WLAN_FORCE_SAP_SCC */
 
 	REG_VARIABLE(CFG_ENABLE_SAP_SUSPEND, WLAN_PARAM_Integer,
-		     struct hdd_config, enableSapSuspend,
+		     struct hdd_config, enable_sap_suspend,
 		     VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
 		     CFG_ENABLE_SAP_SUSPEND_DEFAULT,
 		     CFG_ENABLE_SAP_SUSPEND_MIN,
@@ -6540,7 +6540,7 @@ void hdd_cfg_print(struct hdd_context *hdd_ctx)
 		  hdd_ctx->config->enableSelfRecovery);
 
 	hdd_debug("Name = [gEnableSapSuspend] Value = [%u]",
-		  hdd_ctx->config->enableSapSuspend);
+		  hdd_ctx->config->enable_sap_suspend);
 
 #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
 	hdd_debug("Name = [gExtWoWgotoSuspend] Value = [%u]",

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

@@ -1763,7 +1763,7 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
 				wlan_hdd_inc_suspend_stats(hdd_ctx,
 							   SUSPEND_FAIL_RADAR);
 				return -EAGAIN;
-			} else if (!hdd_ctx->config->enableSapSuspend) {
+			} else if (!hdd_ctx->config->enable_sap_suspend) {
 				/* return -EOPNOTSUPP if SAP does not support
 				 * suspend
 				 */
@@ -1771,7 +1771,7 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
 				return -EOPNOTSUPP;
 			}
 		} else if (QDF_P2P_GO_MODE == adapter->device_mode) {
-			if (!hdd_ctx->config->enableSapSuspend) {
+			if (!hdd_ctx->config->enable_sap_suspend) {
 				/* return -EOPNOTSUPP if GO does not support
 				 * suspend
 				 */