diff options
| author | Jeff Johnson <jjohnson@codeaurora.org> | 2016-10-07 07:47:45 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-10-17 21:57:16 -0700 |
| commit | 5bd0c4991d1378da640b93c3352f7aeebd21f1f2 (patch) | |
| tree | b1a39dfecfebdff19b60e8cfe5c06281e48b9f90 | |
| parent | aeebe65c3d01373e6ff4d3848ba2e1339a19e55b (diff) | |
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
| -rw-r--r-- | core/mac/src/pe/sch/sch_beacon_process.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c index 9fa411a2be14..47157835a681 100644 --- a/core/mac/src/pe/sch/sch_beacon_process.c +++ b/core/mac/src/pe/sch/sch_beacon_process.c @@ -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; |
