summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2016-12-21 19:33:57 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-09 23:29:33 -0800
commit05660b57059d851a56254836ffdfb41345639fd4 (patch)
tree0cd7dce60d47700c132d73319317e22a0997a231
parentd6b4e9d5f44f1edf527652372db9118a2f80183a (diff)
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
-rw-r--r--core/hdd/inc/wlan_hdd_cfg.h2
-rw-r--r--core/hdd/src/wlan_hdd_main.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h
index 28db9d890ec4..bd118074f4c0 100644
--- a/core/hdd/inc/wlan_hdd_cfg.h
+++ b/core/hdd/inc/wlan_hdd_cfg.h
@@ -760,7 +760,7 @@ typedef enum {
#define CFG_INTERFACE_CHANGE_WAIT_NAME "gInterfaceChangeWait"
#define CFG_INTERFACE_CHANGE_WAIT_MIN (10)
#define CFG_INTERFACE_CHANGE_WAIT_MAX (10000)
-#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (50)
+#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (5000)
#define CFG_SHORT_PREAMBLE_NAME "gShortPreamble"
#define CFG_SHORT_PREAMBLE_MIN WNI_CFG_SHORT_PREAMBLE_STAMIN
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 294c6b87f8e3..5a4b7595faa0 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -1997,8 +1997,7 @@ static int __hdd_stop(struct net_device *dev)
if (hdd_check_for_opened_interfaces(hdd_ctx)) {
hdd_info("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();
@@ -8285,7 +8284,7 @@ int hdd_wlan_startup(struct device *dev)
}
qdf_mc_timer_start(&hdd_ctx->iface_change_timer,
- hdd_ctx->config->iface_change_wait_time * 5000);
+ hdd_ctx->config->iface_change_wait_time);
if (hdd_ctx->config->goptimize_chan_avoid_event) {
status = sme_enable_disable_chanavoidind_event(