mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-10 12:52:37 -05:00
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:
parent
945f843326
commit
624240a83e
1 changed files with 4 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue