diff --git a/drivers/staging/qca-wifi-host-cmn/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/drivers/staging/qca-wifi-host-cmn/umac/scan/dispatcher/src/wlan_scan_utils_api.c index de03b1eb334c..4c1d4a9270f0 100644 --- a/drivers/staging/qca-wifi-host-cmn/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/drivers/staging/qca-wifi-host-cmn/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -2167,7 +2167,7 @@ static uint32_t util_gen_new_ie(uint8_t *ie, uint32_t ielen, if (!(tmp_new[0] == WLAN_ELEMID_NONTX_BSSID_CAP || tmp_new[0] == WLAN_ELEMID_SSID || tmp_new[0] == WLAN_ELEMID_MULTI_BSSID_IDX || - ((tmp_new[0] == WLAN_ELEMID_EXTN_ELEM) && + ((tmp_new[0] == WLAN_ELEMID_EXTN_ELEM) && tmp_new[1] && (tmp_new[2] == WLAN_EXTN_ELEMID_NONINHERITANCE)))) { if ((pos + tmp_new[1] + MIN_IE_LEN) <= (new_ie + ielen)) {