Selaa lähdekoodia

qcacld-3.0: Decrease default timer waiting value for interface up

presently timer value is 250sec for wlan interface up from the upper layer,
which is too high.hence moving to 5sec.

Change-Id: Ia955bd12ab37f33c312c728d55c0019317a20acc
CRs-Fixed: 1104031
Hanumanth Reddy Pothula 8 vuotta sitten
vanhempi
sitoutus
42e714a329
2 muutettua tiedostoa jossa 3 lisäystä ja 4 poistoa
  1. 1 1
      core/hdd/inc/wlan_hdd_cfg.h
  2. 2 3
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/inc/wlan_hdd_cfg.h

@@ -1881,7 +1881,7 @@ enum hdd_dot11_mode {
 #define CFG_INTERFACE_CHANGE_WAIT_NAME    "gInterfaceChangeWait"
 #define CFG_INTERFACE_CHANGE_WAIT_MIN     (10)
 #define CFG_INTERFACE_CHANGE_WAIT_MAX     (500000)
-#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (15000)
+#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (5000)
 
 /*
  * <ini>

+ 2 - 3
core/hdd/src/wlan_hdd_main.c

@@ -2369,8 +2369,7 @@ static int __hdd_stop(struct net_device *dev)
 	if (hdd_check_for_opened_interfaces(hdd_ctx)) {
 		hdd_debug("Closing all modules from the hdd_stop");
 		qdf_mc_timer_start(&hdd_ctx->iface_change_timer,
-				   hdd_ctx->config->iface_change_wait_time
-				   * 50000);
+				   hdd_ctx->config->iface_change_wait_time);
 	}
 
 	EXIT();
@@ -9313,7 +9312,7 @@ int hdd_wlan_startup(struct device *dev)
 				1, PDEV_CMD);
 
 	qdf_mc_timer_start(&hdd_ctx->iface_change_timer,
-			   hdd_ctx->config->iface_change_wait_time * 5000);
+			   hdd_ctx->config->iface_change_wait_time);
 
 	hdd_start_complete(0);
 	goto success;