diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2017-03-24 22:30:57 -0700 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-31 16:01:35 -0700 |
| commit | 7fa310f9de31cd96b1070de1674ccca9e1c37e17 (patch) | |
| tree | 14ca3f4823439475b743bc5122861a90841935e8 | |
| parent | 4930b6be1d576d6ca469a6cdcf5d6f0eee20a9f5 (diff) | |
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
| -rw-r--r-- | core/hdd/inc/wlan_hdd_p2p.h | 39 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_p2p.c | 4 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_wext.c | 2 |
3 files changed, 23 insertions, 22 deletions
diff --git a/core/hdd/inc/wlan_hdd_p2p.h b/core/hdd/inc/wlan_hdd_p2p.h index 4164a10d81bc..10da3b285316 100644 --- a/core/hdd/inc/wlan_hdd_p2p.h +++ b/core/hdd/inc/wlan_hdd_p2p.h @@ -27,13 +27,12 @@ #ifndef __P2P_H #define __P2P_H -/**=========================================================================== - \file wlan_hdd_p2p.h - - \brief Linux HDD P2P include file - - ==========================================================================*/ +/** + * DOC: wlan_hdd_p2p.h + * + * Linux HDD P2P include file + */ #define ACTION_FRAME_TX_TIMEOUT 2000 #define WAIT_CANCEL_REM_CHAN 1000 #define WAIT_REM_CHAN_READY 1000 @@ -75,20 +74,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; @@ -96,7 +97,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, diff --git a/core/hdd/src/wlan_hdd_p2p.c b/core/hdd/src/wlan_hdd_p2p.c index 924b63fbbebd..870248944421 100644 --- a/core/hdd/src/wlan_hdd_p2p.c +++ b/core/hdd/src/wlan_hdd_p2p.c @@ -100,7 +100,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 @@ -2597,7 +2597,7 @@ int hdd_set_p2p_ps(struct net_device *dev, void *msgData) tHalHandle hHal = WLAN_HDD_GET_HAL_CTX(pAdapter); QDF_STATUS status = QDF_STATUS_SUCCESS; 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; diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 5e194573617e..78c8b8ba24d5 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -10335,7 +10335,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)", |
