diff options
| author | Yeshwanth Sriram Guntuka <ysriramg@codeaurora.org> | 2018-01-04 15:58:10 +0530 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2018-01-04 04:21:02 -0800 |
| commit | 222c2ff0cede19d2a6fa5b8c5a1dd08c8780c899 (patch) | |
| tree | 5ae890ec11a4647f588916b7f10f4df17ca4556d | |
| parent | f082696919b1911a7c6dd940ed7ecd233f3ad38a (diff) | |
qcacld-3.0: Add debug prints in csr_scan_validate_scan_result
Add prints to debug scenario in which
csr_scan_validate_scan_result returns false.
Change-Id: I5566677c8f3f4c8512a2cb601171a5e8fc3e2e47
CRs-Fixed: 2156024
| -rw-r--r-- | core/sme/src/csr/csr_api_scan.c | 10 | ||||
| -rw-r--r-- | core/sme/src/csr/csr_util.c | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index d5b8a59cdeae..486f58443245 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -5365,10 +5365,14 @@ static bool csr_scan_validate_scan_result(tpAniSirGlobal pMac, return false; valid = csr_scan_is_bss_allowed(pMac, pBssDesc, pIes); - if (valid) + if (valid) { *ppIes = pIes; - else + } else { qdf_mem_free(pIes); + sme_debug("Scan result invalid due to dot11 mode mismatch"); + } + } else { + sme_debug("Scan result invalid"); } return valid; } diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 067d1717b4a2..5484298ba638 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -1373,6 +1373,7 @@ QDF_STATUS csr_get_parsed_bss_description_ies(tHalHandle hHal, if (!QDF_IS_STATUS_SUCCESS(status)) { qdf_mem_free(*ppIEStruct); *ppIEStruct = NULL; + sme_debug("parse bss description ies failed"); } } else { sme_err("failed to allocate memory"); |
