From 70fa7bb88def77a821a351c6fcf93adb4801caff Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 5 Dec 2018 08:27:19 -0800 Subject: [PATCH] qcacld-3.0: Remove obsolete csr_api_scan.c macros The file csr_api_scan.c defines multiple macros, most of which are not actually used by the current version of the code, so remove the obsolete ones. Change-Id: Ic3c64dea55ab19bbf1f39b52eedca121aef5bd25 CRs-Fixed: 2361754 --- core/sme/src/csr/csr_api_scan.c | 40 +++++++++------------------------ 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 5c9f23ba22b9..25b25a2ee951 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -50,42 +50,22 @@ #include #include "wlan_reg_services_api.h" -/* Purpose of HIDDEN_TIMER - * When we remove hidden ssid from the profile i.e., forget the SSID via GUI - * that SSID shouldn't see in the profile For above requirement we used timer - * limit, logic is explained below Timer value is initialsed to current time - * when it receives corresponding probe response of hidden SSID (The probe - * request is received regularly till SSID in the profile. Once it is removed - * from profile probe request is not sent.) when we receive probe response for - * broadcast probe request, during update SSID with saved SSID we will diff - * current time with saved SSID time if it is greater than 1 min then we are - * not updating with old one - */ +static void csr_set_cfg_valid_channel_list(struct mac_context *mac, + uint8_t *pChannelList, + uint8_t NumChannels); -#define HIDDEN_TIMER (1*60*1000) -/* must be less than 100, represent the persentage of new RSSI */ -#define CSR_SCAN_RESULT_RSSI_WEIGHT 80 -#define MAX_ACTIVE_SCAN_FOR_ONE_CHANNEL 140 -#define MIN_ACTIVE_SCAN_FOR_ONE_CHANNEL 120 +static void csr_save_tx_power_to_cfg(struct mac_context *mac, + tDblLinkList *pList, + uint32_t cfgId); -#define MAX_ACTIVE_SCAN_FOR_ONE_CHANNEL_FASTREASSOC 30 -#define MIN_ACTIVE_SCAN_FOR_ONE_CHANNEL_FASTREASSOC 20 +static void csr_set_cfg_country_code(struct mac_context *mac, + uint8_t *countryCode); -#define PCL_ADVANTAGE 30 -#define PCL_RSSI_THRESHOLD -75 +static void csr_purge_channel_power(struct mac_context *mac, + tDblLinkList *pChannelList); -static void csr_set_cfg_valid_channel_list(struct mac_context *mac, uint8_t - *pChannelList, uint8_t NumChannels); -static void csr_save_tx_power_to_cfg(struct mac_context *mac, tDblLinkList *pList, - uint32_t cfgId); -static void csr_set_cfg_country_code(struct mac_context *mac, uint8_t *countryCode); -static void csr_purge_channel_power(struct mac_context *mac, tDblLinkList - *pChannelList); static bool csr_roam_is_valid_channel(struct mac_context *mac, uint8_t channel); -#define CSR_IS_SOCIAL_CHANNEL(channel) \ - (((channel) == 1) || ((channel) == 6) || ((channel) == 11)) - /* pResult is invalid calling this function. */ void csr_free_scan_result_entry(struct mac_context *mac, struct tag_csrscan_result *pResult)