From 1261c91ebc7a4468e03d21d689df7364fc6cc2af Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 7 Oct 2016 07:29:46 -0700 Subject: [PATCH] qcacld-3.0: Remove obsolete lim_is_scan_requested_ssid() We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. One such issue is function lim_is_scan_requested_ssid() is defined but unused. Delete this unused function. Change-Id: I52137b0a1e85d73f7567772228eb6994f9d16143 CRs-Fixed: 1075090 --- core/mac/src/pe/lim/lim_scan_result_utils.c | 41 --------------------- 1 file changed, 41 deletions(-) diff --git a/core/mac/src/pe/lim/lim_scan_result_utils.c b/core/mac/src/pe/lim/lim_scan_result_utils.c index ea2bb8d1d253..3f8c94def4e0 100644 --- a/core/mac/src/pe/lim/lim_scan_result_utils.c +++ b/core/mac/src/pe/lim/lim_scan_result_utils.c @@ -232,47 +232,6 @@ lim_collect_bss_description(tpAniSirGlobal pMac, return; } /*** end lim_collect_bss_description() ***/ -/** - * lim_is_scan_requested_ssid() - * - ***FUNCTION: - * This function is called during scan upon receiving - * Beacon/Probe Response frame to check if the received - * SSID is present in the list of requested SSIDs in scan - * - ***LOGIC: - * - ***ASSUMPTIONS: - * NA - * - ***NOTE: - * NA - * - * @param pMac - Pointer to Global MAC structure - * @param ssId - SSID Received in beacons/Probe responses that is compared - * against therequeusted SSID in scan list - * --------------------------------------------- - * - * @return bool - true if SSID is present in requested list, false otherwise - */ - -bool lim_is_scan_requested_ssid(tpAniSirGlobal pMac, tSirMacSSid *ssId) -{ - uint8_t i = 0; - - for (i = 0; i < pMac->lim.gpLimMlmScanReq->numSsid; i++) { - if (!qdf_mem_cmp((uint8_t *) ssId, - (uint8_t *) &pMac->lim. - gpLimMlmScanReq->ssId[i], - (uint8_t) (pMac->lim. - gpLimMlmScanReq->ssId[i]. - length + 1))) { - return true; - } - } - return false; -} - /** * lim_check_and_add_bss_description() * @mac_ctx: Pointer to Global MAC structure