Bläddra i källkod

qcacld-3.0: Increase the hdd scan timeout to double of csr scan timeout

During frequent suspend/resume there is a possibility of csr scan timer
and hdd scan timer are racing eaching other. Increase the hdd scan timer
value to double of the csr scan timer value to reduce the race allowing
hdd to abort the scan incase of timeout.

Change-Id: I03995498df692dc92dc87e8ef1fc8fd316965df0
CRs-Fixed: 2151994
Arunk Khandavalli 7 år sedan
förälder
incheckning
a4563d206d
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      core/hdd/src/wlan_hdd_scan.h

+ 3 - 3
core/hdd/src/wlan_hdd_scan.h

@@ -38,11 +38,11 @@
 /* (30 Mins) */
 #define MIN_TIME_REQUIRED_FOR_NEXT_BUG_REPORT (30 * 60 * 1000)
 
-/* HDD Scan inactivity timeout set to 10 seconds
- * more than the CSR CMD Timeout
+/* HDD Scan inactivity timeout set to double
+ * of the CSR CMD Timeout.
  */
 #define HDD_SCAN_INACTIVITY_TIMEOUT \
-	(CSR_ACTIVE_SCAN_LIST_CMD_TIMEOUT + (10*1000))
+	(CSR_ACTIVE_SCAN_LIST_CMD_TIMEOUT * 2)
 
 int hdd_scan_context_init(struct hdd_context *hdd_ctx);
 void hdd_scan_context_destroy(struct hdd_context *hdd_ctx);