summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2019-03-01 15:29:34 +0800
committerbings <bings@codeaurora.org>2019-03-01 16:45:59 +0800
commitbc9afd11e6af0a8a7b1d9ff0c56eda6f38ced8bb (patch)
tree227907e13d39ab6393143b34111b072618acf260
parent1cfd87c31c01aaa971eb88c9f06e2bf08a172cc7 (diff)
qcacld-2.0: Reset Hpcs when all params of setHpcsParams are 0
When all params of setHpcsParams are 0, wlan FW should reset Hpcs. Change-Id: I3daa227470ff348f812087ff638b590c26f718b2 CRs-Fixed: 2382532
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index d65b2bc7bd73..6a33021f37ed 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -9156,8 +9156,13 @@ static int __iw_set_var_ints_getnone(struct net_device *dev,
return -EINVAL;
}
- if (apps_args[0] < 0 || apps_args[0] > 1 || apps_args[1] < 0
- || apps_args[2] <= 10000 || apps_args[3] < 0 || apps_args[4] < 0
+ if ((0 == apps_args[0]) && (0 == apps_args[1])
+ && (0 == apps_args[2]) && (0 == apps_args[3])
+ && (0 == apps_args[4]) && (0 == apps_args[5])) {
+ hddLog(LOGE, FL("setHpcsParams: reset params"));
+ } else if (apps_args[0] < 0 || apps_args[0] > 1
+ || apps_args[1] < 0 || apps_args[2] <= 10000
+ || apps_args[3] < 0 || apps_args[4] < 0
|| apps_args[5] < 10000) {
hddLog(LOGE, FL("setHpcsParams: Invalid values"));
return -EINVAL;