From b503722801a03578232468db45cb4d41783e32f5 Mon Sep 17 00:00:00 2001 From: sheenam monga Date: Mon, 7 Jun 2021 22:32:36 +0530 Subject: [PATCH] qcacmn: Don't mark ie invalid based on HT IE Currently, host comapres HT Ie with htcap_cmn_ie structure size but returns err in case ie len is different from structure len which may break the iteration and can lead to scan entry creation failure. Fix is not to break the loop and perform action based on other Ie to avoid Ie parse failure which leads to scan entry creation failure. Change-Id: I93f0d67ae0f7ea8bb5dbeabc895b5c3d1ae43a73 CRs-Fixed: 2965729 --- umac/scan/dispatcher/src/wlan_scan_utils_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index 8fcc675d008b..fb3f7376aab7 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -1029,10 +1029,10 @@ util_scan_populate_bcn_ie_list(struct wlan_objmgr_pdev *pdev, scan_params->erp = ((struct erp_ie *)ie)->value; break; case WLAN_ELEMID_HTCAP_ANA: - if (ie->ie_len != sizeof(struct htcap_cmn_ie)) - goto err; - scan_params->ie_list.htcap = + if (ie->ie_len == sizeof(struct htcap_cmn_ie)) { + scan_params->ie_list.htcap = (uint8_t *)&(((struct htcap_ie *)ie)->ie); + } break; case WLAN_ELEMID_RSN: /*