mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Fix -Wmissing-prototypes in sch_beacon_process
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in sch_beacon_process. Change-Id: I9227f77bb7710a32d24072bb4961cd8db77acb8a CRs-Fixed: 1075090
This commit is contained in:
parent
aeebe65c3d
commit
5bd0c4991d
1 changed files with 12 additions and 9 deletions
|
|
@ -300,9 +300,12 @@ static void __sch_beacon_process_no_session(tpAniSirGlobal pMac,
|
|||
lim_handle_ibss_coalescing(pMac, pBeacon, pRxPacketInfo,
|
||||
psessionEntry);
|
||||
}
|
||||
/* If station(STA/BT-STA/BT-AP/IBSS) mode, Always save the beacon in the scan results, if atleast one session is active */
|
||||
/* sch_beacon_processNoSession will be called only when there is atleast one session active, so not checking */
|
||||
/* it again here. */
|
||||
/* If station(STA/BT-STA/BT-AP/IBSS) mode, Always save the
|
||||
* beacon in the scan results, if atleast one session is
|
||||
* active. sch_beacon_process_no_session will be called only
|
||||
* when there is atleast one session active, so not checking
|
||||
* it again here.
|
||||
*/
|
||||
lim_check_and_add_bss_description(pMac, pBeacon, pRxPacketInfo, false,
|
||||
false);
|
||||
return;
|
||||
|
|
@ -310,14 +313,14 @@ static void __sch_beacon_process_no_session(tpAniSirGlobal pMac,
|
|||
|
||||
/**
|
||||
* get_operating_channel_width() - Get operating channel width
|
||||
* @pStaDs - station entry.
|
||||
* @stads - station entry.
|
||||
*
|
||||
* This function returns the oeprating channgl width based on
|
||||
* This function returns the operating channel width based on
|
||||
* the supported channel width entry.
|
||||
*
|
||||
* Return: tSirMacHTChannelWidth on success
|
||||
*/
|
||||
tSirMacHTChannelWidth get_operating_channel_width(tpDphHashNode stads)
|
||||
static tSirMacHTChannelWidth get_operating_channel_width(tpDphHashNode stads)
|
||||
{
|
||||
tSirMacHTChannelWidth ch_width = eHT_CHANNEL_WIDTH_20MHZ;
|
||||
|
||||
|
|
@ -489,9 +492,9 @@ sch_bcn_process_sta(tpAniSirGlobal mac_ctx,
|
|||
*
|
||||
* Return: none
|
||||
*/
|
||||
void update_nss(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds,
|
||||
tpSchBeaconStruct beacon, tpPESession session_entry,
|
||||
tpSirMacMgmtHdr mgmt_hdr)
|
||||
static void update_nss(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds,
|
||||
tpSchBeaconStruct beacon, tpPESession session_entry,
|
||||
tpSirMacMgmtHdr mgmt_hdr)
|
||||
{
|
||||
if (sta_ds->vhtSupportedRxNss != (beacon->OperatingMode.rxNSS + 1)) {
|
||||
sta_ds->vhtSupportedRxNss = beacon->OperatingMode.rxNSS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue