summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-18 12:14:11 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-10-20 16:04:07 -0700
commit2f368192434a7ca56168bc95a7fca3e22b9e2ae0 (patch)
tree06e1c10a2c2176d6004977608a2161fa21eb8be5
parent414f7ea28f0434acbbffc87049c6e9ddd2b50e0f (diff)
qcacld-3.0: Properly export SME P2P APIs
There are currently several SME P2P APIs which do not have their prototypes exported in header files; instead sme_api.c has "extern" declarations for these APIs. This prevents the compiler from verifying that the implementations match the declarations, and causes a warning when the driver is built using -Wmissing-prototypes. To address this issue properly export all P2P APIs. Change-Id: I0389ad753993bf9a8a37d8d9ad5ec466b29c74df CRs-Fixed: 1075575
-rw-r--r--core/sme/inc/p2p_api.h2
-rw-r--r--core/sme/inc/sme_inside.h2
-rw-r--r--core/sme/src/common/sme_api.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/core/sme/inc/p2p_api.h b/core/sme/inc/p2p_api.h
index 971496f8632e..df3568694846 100644
--- a/core/sme/inc/p2p_api.h
+++ b/core/sme/inc/p2p_api.h
@@ -80,6 +80,8 @@ typedef struct sp2pContext {
uint32_t probeRspIeLength;
} tp2pContext, *tPp2pContext;
+QDF_STATUS sme_remain_on_chn_rsp(tpAniSirGlobal pMac, uint8_t *pMsg);
+QDF_STATUS sme_remain_on_chn_ready(tHalHandle hHal, uint8_t *pMsg);
QDF_STATUS sme_remain_on_channel(tHalHandle hHal, uint8_t sessionId,
uint8_t channel, uint32_t duration,
remainOnChanCallback callback,
diff --git a/core/sme/inc/sme_inside.h b/core/sme/inc/sme_inside.h
index b02bc7deaed1..f99ecdd4167d 100644
--- a/core/sme/inc/sme_inside.h
+++ b/core/sme/inc/sme_inside.h
@@ -271,6 +271,8 @@ QDF_STATUS csr_create_roam_scan_channel_list(tpAniSirGlobal pMac,
const eCsrBand eBand);
#endif
+QDF_STATUS p2p_process_remain_on_channel_cmd(tpAniSirGlobal pMac,
+ tSmeCmd *p2pRemainonChn);
ePhyChanBondState csr_convert_cb_ini_value_to_phy_cb_state(uint32_t cbIniValue);
void active_list_cmd_timeout_handle(void *userData);
void csr_process_set_dual_mac_config(tpAniSirGlobal mac, tSmeCmd *command);
diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c
index 2afb1456d881..0c6cf0acc201 100644
--- a/core/sme/src/common/sme_api.c
+++ b/core/sme/src/common/sme_api.c
@@ -73,10 +73,6 @@ extern QDF_STATUS pmc_prepare_command(tpAniSirGlobal pMac, uint32_t sessionId,
uint32_t size, tSmeCmd **ppCmd);
extern void pmc_release_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
extern void qos_release_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
-extern QDF_STATUS p2p_process_remain_on_channel_cmd(tpAniSirGlobal pMac,
- tSmeCmd *p2pRemainonChn);
-extern QDF_STATUS sme_remain_on_chn_rsp(tpAniSirGlobal pMac, uint8_t *pMsg);
-extern QDF_STATUS sme_remain_on_chn_ready(tHalHandle hHal, uint8_t *pMsg);
static QDF_STATUS init_sme_cmd_list(tpAniSirGlobal pMac);
static void sme_abort_command(tpAniSirGlobal pMac, tSmeCmd *pCommand,