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
This commit is contained in:
Jeff Johnson 2016-11-30 11:03:54 -08:00 • committed by qcabuildsw
commit 624240a83e

View file

@ -65,50 +65,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
@ -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;