瀏覽代碼

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
Jeff Johnson 8 年之前
父節點
當前提交
b7a168b658
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/hdd/src/wlan_hdd_scan.c

+ 1 - 1
core/hdd/src/wlan_hdd_scan.c

@@ -1443,7 +1443,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;