From efc8142ca33292653c3e6bf760cbef1e93bde756 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 6 Mar 2017 15:33:52 -0800 Subject: 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 --- core/hdd/src/wlan_hdd_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3