소스 검색

qcacld-3.0: Rename sendDeauthBeforeCon

The Linux Coding Style frowns upon mixed-case names, so rename all
instances of sendDeauthBeforeCon to align with the Coding Style.

Change-Id: Iac2ed0dbaa9c4d2bfb103813d63ab0d7a79ff868
CRs-Fixed: 2138016
Jeff Johnson 7 년 전
부모
커밋
1ad3fbd339

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

@@ -13870,7 +13870,7 @@ struct hdd_config {
 	bool ignore_peer_erp_info;
 	uint8_t multicast_host_fw_msgs;
 	uint8_t conc_system_pref;
-	bool sendDeauthBeforeCon;
+	bool send_deauth_before_con;
 	bool tso_enable;
 	bool lro_enable;
 	bool flow_steering_enable;

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

@@ -3545,7 +3545,7 @@ struct reg_table_entry g_registry_table[] = {
 #endif /* DHCP_SERVER_OFFLOAD */
 
 	REG_VARIABLE(CFG_ENABLE_DEAUTH_BEFORE_CONNECTION, WLAN_PARAM_Integer,
-		struct hdd_config, sendDeauthBeforeCon,
+		struct hdd_config, send_deauth_before_con,
 		VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
 		CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT,
 		CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN,
@@ -8716,7 +8716,8 @@ QDF_STATUS hdd_set_sme_config(struct hdd_context *hdd_ctx)
 
 	cds_set_multicast_logging(hdd_ctx->config->multicast_host_fw_msgs);
 
-	smeConfig->csrConfig.sendDeauthBeforeCon = pConfig->sendDeauthBeforeCon;
+	smeConfig->csrConfig.send_deauth_before_con =
+		pConfig->send_deauth_before_con;
 
 	smeConfig->csrConfig.max_scan_count =
 			hdd_ctx->config->max_scan_count;

+ 3 - 3
core/mac/src/pe/lim/lim_link_monitoring_algo.c

@@ -392,13 +392,13 @@ lim_tear_down_link_with_ap(tpAniSirGlobal pMac, uint8_t sessionId,
 			     pStaDs->staAddr, sizeof(tSirMacAddr));
 
 	/*
-	* if sendDeauthBeforeCon is enabled and reasoncode is
+	* if send_deauth_before_con is enabled and reasoncode is
 	* Beacon Missed Store the MAC of AP in the flip flop
 	* buffer. This MAC will be used to send Deauth before
 	* connection, if we connect to same AP after HB failure.
 	*/
-	if (pMac->roam.configParam.sendDeauthBeforeCon &&
-		eSIR_BEACON_MISSED == reasonCode) {
+	if (pMac->roam.configParam.send_deauth_before_con &&
+	    eSIR_BEACON_MISSED == reasonCode) {
 		int apCount = pMac->lim.gLimHeartBeatApMacIndex;
 
 		if (pMac->lim.gLimHeartBeatApMacIndex)

+ 2 - 2
core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c

@@ -2998,10 +2998,10 @@ static void lim_process_switch_channel_join_req(
 	lim_apply_configuration(mac_ctx, session_entry);
 
 	/*
-	* If sendDeauthBeforeCon is enabled, Send Deauth first to AP if last
+	* If send_deauth_before_con is enabled, Send Deauth first to AP if last
 	* disconnection was caused by HB failure.
 	*/
-	if (mac_ctx->roam.configParam.sendDeauthBeforeCon) {
+	if (mac_ctx->roam.configParam.send_deauth_before_con) {
 		int apCount;
 
 		for (apCount = 0; apCount < 2; apCount++) {

+ 1 - 1
core/sme/inc/csr_api.h

@@ -1285,7 +1285,7 @@ typedef struct tagCsrConfigParam {
 	uint8_t conc_custom_rule1;
 	uint8_t conc_custom_rule2;
 	uint8_t is_sta_connection_in_5gz_enabled;
-	bool sendDeauthBeforeCon;
+	bool send_deauth_before_con;
 
 	/* 802.11p enable */
 	bool enable_dot11p;

+ 1 - 1
core/sme/inc/csr_internal.h

@@ -587,7 +587,7 @@ struct csr_config {
 	uint8_t conc_custom_rule2;
 	uint8_t is_sta_connection_in_5gz_enabled;
 	struct roam_ext_params roam_params;
-	bool sendDeauthBeforeCon;
+	bool send_deauth_before_con;
 	bool early_stop_scan_enable;
 	int8_t early_stop_scan_min_threshold;
 	int8_t early_stop_scan_max_threshold;

+ 4 - 4
core/sme/src/csr/csr_api_roam.c

@@ -2804,8 +2804,8 @@ QDF_STATUS csr_change_default_config_param(tpAniSirGlobal pMac,
 			pParam->conc_custom_rule2;
 		pMac->roam.configParam.is_sta_connection_in_5gz_enabled =
 			pParam->is_sta_connection_in_5gz_enabled;
-		pMac->roam.configParam.sendDeauthBeforeCon =
-			pParam->sendDeauthBeforeCon;
+		pMac->roam.configParam.send_deauth_before_con =
+			pParam->send_deauth_before_con;
 
 		pMac->enable_dot11p = pParam->enable_dot11p;
 		pMac->roam.configParam.early_stop_scan_enable =
@@ -3117,8 +3117,8 @@ QDF_STATUS csr_get_config_param(tpAniSirGlobal pMac, tCsrConfigParam *pParam)
 	pParam->conc_custom_rule2 = cfg_params->conc_custom_rule2;
 	pParam->is_sta_connection_in_5gz_enabled =
 		cfg_params->is_sta_connection_in_5gz_enabled;
-	pParam->sendDeauthBeforeCon =
-		cfg_params->sendDeauthBeforeCon;
+	pParam->send_deauth_before_con =
+		cfg_params->send_deauth_before_con;
 	pParam->max_scan_count = pMac->scan.max_scan_count;
 	pParam->first_scan_bucket_threshold =
 		pMac->first_scan_bucket_threshold;