summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-11-30 11:03:54 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-11-30 17:12:11 -0800
commitb26137824330f3ff25e0e52668abd4ea2f049d36 (patch)
tree93487175d7664d66093d261fce2b5b8f64b0494e
parent81ddf7b49b7916e343f24e3d246ae1f38e5b723d (diff)
qcacld-3.0: Fix -Wmissing-prototypes in sch_api.c
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code in sch_api.c that is generating warnings. To address these warnings: 1) remove unused/obsolete functions sch_get_cfp_count() and sch_get_cfp_dur_remaining(). 2) make local function lim_remove_p2p_ie_from_add_ie() static. Change-Id: I9d211c920cef24fe2a105c6620b4fac5221b2ebc CRs-Fixed: 1095738
-rw-r--r--core/mac/src/pe/sch/sch_api.c52
1 files changed, 4 insertions, 48 deletions
diff --git a/core/mac/src/pe/sch/sch_api.c b/core/mac/src/pe/sch/sch_api.c
index 1debe34dfa74..ef8153e5aa74 100644
--- a/core/mac/src/pe/sch/sch_api.c
+++ b/core/mac/src/pe/sch/sch_api.c
@@ -67,50 +67,6 @@
/* -------------------------------------------------------------------- */
/**
- * sch_get_cfp_count
- *
- * FUNCTION:
- * Function used by other Sirius modules to read CFPcount
- *
- * LOGIC:
- *
- * ASSUMPTIONS:
- *
- * NOTE:
- *
- * @param None
- * @return None
- */
-
-uint8_t sch_get_cfp_count(tpAniSirGlobal pMac)
-{
- return pMac->sch.schObject.gSchCFPCount;
-}
-
-/* -------------------------------------------------------------------- */
-/**
- * sch_get_cfp_dur_remaining
- *
- * FUNCTION:
- * Function used by other Sirius modules to read CFPDuration remaining
- *
- * LOGIC:
- *
- * ASSUMPTIONS:
- *
- * NOTE:
- *
- * @param None
- * @return None
- */
-
-uint16_t sch_get_cfp_dur_remaining(tpAniSirGlobal pMac)
-{
- return pMac->sch.schObject.gSchCFPDurRemaining;
-}
-
-/* -------------------------------------------------------------------- */
-/**
* sch_init_globals
*
* FUNCTION:
@@ -331,10 +287,10 @@ tSirRetStatus sch_send_beacon_req(tpAniSirGlobal pMac, uint8_t *beaconPayload,
return retCode;
}
-uint32_t lim_remove_p2p_ie_from_add_ie(tpAniSirGlobal pMac,
- tpPESession psessionEntry,
- uint8_t *addIeWoP2pIe,
- uint32_t *addnIELenWoP2pIe)
+static uint32_t lim_remove_p2p_ie_from_add_ie(tpAniSirGlobal pMac,
+ tpPESession psessionEntry,
+ uint8_t *addIeWoP2pIe,
+ uint32_t *addnIELenWoP2pIe)
{
uint32_t left = psessionEntry->addIeParams.probeRespDataLen;
uint8_t *ptr = psessionEntry->addIeParams.probeRespData_buff;