From 2f368192434a7ca56168bc95a7fca3e22b9e2ae0 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 18 Oct 2016 12:14:11 -0700 Subject: 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 --- core/sme/inc/p2p_api.h | 2 ++ core/sme/inc/sme_inside.h | 2 ++ core/sme/src/common/sme_api.c | 4 ---- 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, -- cgit v1.2.3