瀏覽代碼

qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_p2p.h

Fix kernel checkpatch warnings in wlan_hdd_p2p.h.

Change-Id: Ic9217ecf3a137ced528bf7dac9f6401a05fafda4
CRs-Fixed: 2024274
Srinivas Girigowda 8 年之前
父節點
當前提交
5d5fdc5c31
共有 3 個文件被更改,包括 18 次插入17 次删除
  1. 15 14
      core/hdd/inc/wlan_hdd_p2p.h
  2. 2 2
      core/hdd/src/wlan_hdd_p2p.c
  3. 1 1
      core/hdd/src/wlan_hdd_wext.c

+ 15 - 14
core/hdd/inc/wlan_hdd_p2p.h

@@ -33,7 +33,6 @@
  *
  * Linux HDD P2P include file
  */
-
 #define ACTION_FRAME_TX_TIMEOUT 2000
 #define WAIT_CANCEL_REM_CHAN    1000
 #define WAIT_REM_CHAN_READY     1000
@@ -74,20 +73,22 @@
 #define ACTION_FRAME_ACK_WAIT 300
 
 #ifdef WLAN_FEATURE_P2P_DEBUG
-typedef enum { P2P_NOT_ACTIVE,
-	       P2P_GO_NEG_PROCESS,
-	       P2P_GO_NEG_COMPLETED,
-	       P2P_CLIENT_CONNECTING_STATE_1,
-	       P2P_GO_COMPLETED_STATE,
-	       P2P_CLIENT_CONNECTED_STATE_1,
-	       P2P_CLIENT_DISCONNECTED_STATE,
-	       P2P_CLIENT_CONNECTING_STATE_2,
-	       P2P_CLIENT_COMPLETED_STATE} tP2PConnectionStatus;
-
-extern tP2PConnectionStatus global_p2p_connection_status;
+enum p2p_connection_status {
+	P2P_NOT_ACTIVE,
+	P2P_GO_NEG_PROCESS,
+	P2P_GO_NEG_COMPLETED,
+	P2P_CLIENT_CONNECTING_STATE_1,
+	P2P_GO_COMPLETED_STATE,
+	P2P_CLIENT_CONNECTED_STATE_1,
+	P2P_CLIENT_DISCONNECTED_STATE,
+	P2P_CLIENT_CONNECTING_STATE_2,
+	P2P_CLIENT_COMPLETED_STATE
+};
+
+extern enum p2p_connection_status global_p2p_connection_status;
 #endif
 
-typedef struct p2p_app_setP2pPs {
+struct p2p_app_set_ps {
 	uint8_t opp_ps;
 	uint32_t ctWindow;
 	uint8_t count;
@@ -95,7 +96,7 @@ typedef struct p2p_app_setP2pPs {
 	uint32_t interval;
 	uint32_t single_noa_duration;
 	uint8_t psSelection;
-} p2p_app_setP2pPs_t;
+};
 
 int wlan_hdd_cfg80211_remain_on_channel(struct wiphy *wiphy,
 					struct wireless_dev *wdev,

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

@@ -110,7 +110,7 @@ const char *p2p_action_frame_type[] = { "GO Negotiation Request",
  * and also not make any complicating the code
  * just for debugging log
  */
-tP2PConnectionStatus global_p2p_connection_status = P2P_NOT_ACTIVE;
+enum p2p_connection_status global_p2p_connection_status = P2P_NOT_ACTIVE;
 
 #endif
 #define MAX_TDLS_ACTION_FRAME_TYPE 11
@@ -2180,7 +2180,7 @@ int hdd_set_p2p_ps(struct net_device *dev, void *msgData)
 {
 	hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
 	tP2pPsConfig NoA;
-	p2p_app_setP2pPs_t *pappNoA = (p2p_app_setP2pPs_t *) msgData;
+	struct p2p_app_set_ps *pappNoA = (struct p2p_app_set_ps *) msgData;
 
 	NoA.opp_ps = pappNoA->opp_ps;
 	NoA.ctWindow = pappNoA->ctWindow;

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

@@ -10623,7 +10623,7 @@ static int __iw_set_var_ints_getnone(struct net_device *dev,
 
 	case WE_P2P_NOA_CMD:
 	{
-		p2p_app_setP2pPs_t p2pNoA;
+		struct p2p_app_set_ps p2pNoA;
 
 		if (pAdapter->device_mode != QDF_P2P_GO_MODE) {
 			hdd_err("Setting NoA is not allowed in Device mode %s(%d)",