From 8e9beaef6b7c02fb951f067788360446265fc9f4 Mon Sep 17 00:00:00 2001 From: Om Prakash Tripathi Date: Fri, 27 Apr 2018 14:35:39 +0530 Subject: [PATCH] qcacmn: Change IE parse failure prints to debug level In some environments its found that IE's received are not as expected and console gets flooded with pare failure prints. Move these prints to debug level. Change-Id: Ic25bdff65f340f47179a7ac6dd79731b80c805ff CRs-Fixed: 2232553 --- umac/scan/core/src/wlan_scan_cache_db.c | 6 +++--- umac/scan/dispatcher/src/wlan_scan_utils_api.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_cache_db.c b/umac/scan/core/src/wlan_scan_cache_db.c index adc357f7e887..8271348a0bb3 100644 --- a/umac/scan/core/src/wlan_scan_cache_db.c +++ b/umac/scan/core/src/wlan_scan_cache_db.c @@ -741,7 +741,7 @@ QDF_STATUS scm_handle_bcn_probe(struct scheduler_msg *msg) if (qdf_nbuf_len(bcn->buf) <= (sizeof(struct wlan_frame_hdr) + offsetof(struct wlan_bcn_frame, ie))) { - scm_err("invalid beacon/probe length"); + scm_debug("invalid beacon/probe length"); status = QDF_STATUS_E_INVAL; goto free_nbuf; } @@ -751,7 +751,7 @@ QDF_STATUS scm_handle_bcn_probe(struct scheduler_msg *msg) qdf_nbuf_len(bcn->buf), bcn->frm_type, bcn->rx_data); if (!scan_list || qdf_list_empty(scan_list)) { - scm_err("failed to unpack frame"); + scm_debug("failed to unpack frame"); status = QDF_STATUS_E_INVAL; goto free_nbuf; } @@ -760,7 +760,7 @@ QDF_STATUS scm_handle_bcn_probe(struct scheduler_msg *msg) for (i = 0; i < list_count; i++) { status = qdf_list_remove_front(scan_list, &next_node); if (QDF_IS_STATUS_ERROR(status) || next_node == NULL) { - scm_err("failed to unpack frame"); + scm_debug("failed to unpack frame"); status = QDF_STATUS_E_INVAL; goto free_nbuf; } diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index 8449836e365f..88141223f036 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -483,7 +483,7 @@ util_scan_populate_bcn_ie_list(struct scan_cache_entry *scan_params) } if (ie_len < ie->ie_len) { - scm_err("Incomplete corrupted IE:%x", + scm_debug("Incomplete corrupted IE:%x", ie->ie_id); return QDF_STATUS_E_INVAL; } @@ -898,7 +898,7 @@ util_scan_unpack_beacon_frame(struct wlan_objmgr_pdev *pdev, uint8_t *frame, frame, frame_len); status = util_scan_populate_bcn_ie_list(scan_entry); if (QDF_IS_STATUS_ERROR(status)) { - scm_err("failed to parse beacon IE"); + scm_debug("failed to parse beacon IE"); qdf_mem_free(scan_entry->raw_frame.ptr); qdf_mem_free(scan_entry); qdf_mem_free(scan_list);