Ver Fonte

qcacld-3.0: Rename hdd_station_ctx staDebugState field

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

Change-Id: Iab6712fac703b0a610226805a83349406e4109c9
CRs-Fixed: 2132661
Jeff Johnson há 7 anos atrás
pai
commit
8380f231b3
2 ficheiros alterados com 8 adições e 8 exclusões
  1. 2 2
      core/hdd/inc/wlan_hdd_main.h
  2. 6 6
      core/hdd/src/wlan_hdd_cfg80211.c

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

@@ -640,7 +640,7 @@ struct hdd_mon_set_ch_info {
  *    @ibss_enc_key_installed is %true)
  * @ibss_peer_info: information about the ibss peer
  * @hdd_reassoc_scenario: is station in the middle of reassociation?
- * @staDebugState: STA context debug variable
+ * @sta_debug_state: STA context debug variable
  * @broadcast_staid: STA ID assigned for broadcast frames
  * @ch_info: monitor mode channel information
  * @ndp_ctx: NAN data path context
@@ -659,7 +659,7 @@ struct hdd_station_ctx {
 	tCsrRoamSetKey ibss_enc_key;
 	tSirPeerInfoRspParams ibss_peer_info;
 	bool hdd_reassoc_scenario;
-	int staDebugState;
+	int sta_debug_state;
 	uint8_t broadcast_staid;
 	struct hdd_mon_set_ch_info ch_info;
 #if defined(WLAN_FEATURE_NAN_DATAPATH) && !defined(WLAN_FEATURE_NAN_CONVERGENCE)

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

@@ -17004,7 +17004,7 @@ int wlan_hdd_try_disconnect(struct hdd_adapter *adapter)
 		} else if (0 != status) {
 			hdd_err("sme_roam_disconnect failure, status: %d",
 				(int)status);
-			sta_ctx->staDebugState = status;
+			sta_ctx->sta_debug_state = status;
 			result = -EINVAL;
 			goto disconnected;
 		}
@@ -17013,8 +17013,8 @@ int wlan_hdd_try_disconnect(struct hdd_adapter *adapter)
 			&adapter->disconnect_comp_var,
 			msecs_to_jiffies(WLAN_WAIT_TIME_DISCONNECT));
 		if (!rc && (QDF_STATUS_CMD_NOT_QUEUED != status)) {
-			hdd_err("Sme disconnect event timed out session Id: %d staDebugState: %d",
-				adapter->sessionId, sta_ctx->staDebugState);
+			hdd_err("Sme disconnect event timed out session Id: %d sta_debug_state: %d",
+				adapter->sessionId, sta_ctx->sta_debug_state);
 			result = -ETIMEDOUT;
 		}
 	} else if (eConnectionState_Disconnecting ==
@@ -17022,8 +17022,8 @@ int wlan_hdd_try_disconnect(struct hdd_adapter *adapter)
 		rc = wait_for_completion_timeout(&adapter->disconnect_comp_var,
 				msecs_to_jiffies(WLAN_WAIT_TIME_DISCONNECT));
 		if (!rc) {
-			hdd_err("Disconnect event timed out session Id: %d staDebugState: %d",
-				adapter->sessionId, sta_ctx->staDebugState);
+			hdd_err("Disconnect event timed out session Id: %d sta_debug_state: %d",
+				adapter->sessionId, sta_ctx->sta_debug_state);
 			result = -ETIMEDOUT;
 		}
 	}
@@ -17420,7 +17420,7 @@ static int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason)
 		hdd_debug("Already disconnected or connect was in sme/roam pending list and removed by disconnect");
 	} else if (0 != status) {
 		hdd_err("csr_roam_disconnect failure, status: %d", (int)status);
-		sta_ctx->staDebugState = status;
+		sta_ctx->sta_debug_state = status;
 		result = -EINVAL;
 		goto disconnected;
 	}