a5d9bdcfe34097d27252d23a06ec4cb66c808e82

The hdd_roam_profile->pAddIEScan is updated to point to the default_scan_ie if nAddIEScanLength is 0. But if default_scan_ie is updated from userspace before every connect and the hdd_roam_profile->pAddIEScan pointer is not cleared on disconnect due to scan for ssid in progress(during back to back connect), then the nAddIEScanLength will not be 0, and hdd_roam_profile->pAddIEScan will still point to the default_scan_ie received from previous connect request, which is already freed when new default_scan_ie is received. This causes invalid memory access during csr_roam_copy_profile() during the scan for SSID of the second connect. So update the roam_profile_>pAddIEScan during connect start irrespective of the nAddIEScanLength. Change-Id: I33080048b27267a0af336096f9e33dfb071869eb CRs-Fixed: 2817188
This is CNSS WLAN Host Driver for products starting from iHelium
Description
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%