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
diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c
index 9fa411a..4715783 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 @@
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 @@
/**
* 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 @@
*
* 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;