Merge "SCAN_OFFLOAD: Adding new ini variable for scan offload"
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h
index cbc1b8c..d61a066 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg.h
@@ -1783,6 +1783,14 @@
#define CFG_TRAFFIC_IDLE_TIMEOUT_MAX ( 10000 )
#define CFG_TRAFFIC_IDLE_TIMEOUT_DEFAULT ( 5000 )
+/*
+ * SCAN Offload
+ */
+#define CFG_SCAN_OFFLOAD_NAME "gEnableDirectedScanOffload"
+#define CFG_SCAN_OFFLOAD_DISABLE ( 0 )
+#define CFG_SCAN_OFFLOAD_ENABLE ( 1 )
+#define CFG_SCAN_OFFLOAD_DEFAULT ( CFG_SCAN_OFFLOAD_DISABLE )
+
/*---------------------------------------------------------------------------
Type declarations
-------------------------------------------------------------------------*/
@@ -2164,6 +2172,7 @@
v_U8_t enableTrafficMonitor;
v_U32_t trafficIdleTimeout;
v_BOOL_t enableVhtFor24GHzBand;
+ v_U8_t fScanOffload;
} hdd_config_t;
/*---------------------------------------------------------------------------
Function declarations and documenation
diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c
index c5d74ba..0a78212 100644
--- a/CORE/HDD/src/wlan_hdd_cfg.c
+++ b/CORE/HDD/src/wlan_hdd_cfg.c
@@ -2318,6 +2318,13 @@
CFG_ENABLE_VHT_FOR_24GHZ_MIN,
CFG_ENABLE_VHT_FOR_24GHZ_MAX),
#endif
+
+ REG_VARIABLE( CFG_SCAN_OFFLOAD_NAME, WLAN_PARAM_Integer,
+ hdd_config_t, fScanOffload,
+ VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
+ CFG_SCAN_OFFLOAD_DEFAULT,
+ CFG_SCAN_OFFLOAD_DISABLE,
+ CFG_SCAN_OFFLOAD_ENABLE ),
};
/*
diff --git a/firmware_bin/WCNSS_qcom_cfg.ini b/firmware_bin/WCNSS_qcom_cfg.ini
index 0a5beff..e50c542 100644
--- a/firmware_bin/WCNSS_qcom_cfg.ini
+++ b/firmware_bin/WCNSS_qcom_cfg.ini
@@ -392,6 +392,9 @@
gRrmNonOperChanMax=8
gRrmRandIntvl=100
+#Scan offload
+gEnableDirectedScanOffload=0
+
END
# Note: Configuration parser would not read anything past the END marker