From 6e7d87df887f86afe190aeec4eae034ed2d945b2 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Mon, 8 Jul 2019 17:09:46 +0530 Subject: [PATCH] qcacmn: Disable ext scan in driver Currently ext scan is enabled by default in driver which is increasing driver size significantly and ext scan is not getting used anymore. Disable ext scan with feature flag CONFIG_FEATURE_WLAN_EXTSCAN to reduce driver size and fix related compilation issue. Change-Id: Id2344e6ed21caefa459773bb6e891ffb1e70cb92 CRs-Fixed: 2491455 --- os_if/linux/qca_vendor.h | 3 ++- umac/scan/core/src/wlan_scan_main.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index ab103ea3ad96..0884b289898a 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -1783,6 +1783,8 @@ enum qca_wlan_vendor_attr_extscan_results { QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, }; +#endif + /** * enum qca_vendor_interop_issues_ap_type - interop issues type @@ -1826,7 +1828,6 @@ enum qca_vendor_attr_interop_issues_ap { QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 }; -#endif #ifdef WLAN_FEATURE_LINK_LAYER_STATS diff --git a/umac/scan/core/src/wlan_scan_main.h b/umac/scan/core/src/wlan_scan_main.h index f972cde69ec2..74a48e9bde94 100644 --- a/umac/scan/core/src/wlan_scan_main.h +++ b/umac/scan/core/src/wlan_scan_main.h @@ -246,6 +246,7 @@ struct pno_def_config { }; #endif +#ifdef FEATURE_WLAN_EXTSCAN /** * struct extscan_def_config - def configuration for EXTSCAN * @extscan_enabled: enable extscan @@ -261,6 +262,7 @@ struct extscan_def_config { uint32_t extscan_active_max_chn_time; uint32_t extscan_active_min_chn_time; }; +#endif /** * struct scan_default_params - default scan parameters to be used