summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2017-03-06 15:33:52 -0800
committerPrakash Dhavali <pdhavali@codeaurora.org>2017-03-09 21:08:31 -0800
commitefc8142ca33292653c3e6bf760cbef1e93bde756 (patch)
treebab5183326710ff8fbe4c80e68cbfdc8bf07eebe
parent4cc8eab65200bc9a1a26a669c11e8997d30b55a3 (diff)
qcacld-3.0: Correctly handle update of scan IEs
Excessive logging of the following error message was observed: __wlan_hdd_cfg80211_scan: Update scan IEs with default Scan IEs failed This message was being printed because wlan_hdd_update_scan_ies() returns an error code when no default scan IEs have been configured. But this is a valid scenario, so modify wlan_hdd_update_scan_ies() to return success (0) when no default IEs have been configured. Change-Id: I4b9dc1d38d38d326861b7c95d13b891cb0d0c522 CRs-Fixed: 2013531
-rw-r--r--core/hdd/src/wlan_hdd_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index 91d50ae51fb4..06a709d9f89d 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -1424,7 +1424,7 @@ static int wlan_hdd_update_scan_ies(hdd_adapter_t *adapter,
uint16_t elem_len;
if (!scan_info->default_scan_ies_len || !scan_info->default_scan_ies)
- return -EINVAL;
+ return 0;
while (rem_len >= 2) {
current_ie = temp_ie;