mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: memset mac_context on mac close
on mac_close, current global mac_context is not getting memset to zero, so when new mac_open occures this global mac_context contains the previous configuration which leads to undefined behaviour. Initially during load time, driver type is set as production in global mac context, on change of the con_mod to FTM, this driver type is chnaged to MFG, now again if the con_mode is changed to MISSION mode or MONITOR mode this driver type should be updated to production, but since during mac_close, mac_ctx is not memset to zero, this driver type is not getting updated and having the previous value as MFG, because of this in pe mc process handler, message is not getting processed leading to mem leak at stop modules. Change-Id: I342ad5c9bd4b710c668d8121f41f5ffd98d2c221 CRs-Fixed: 2349670
This commit is contained in:
parent
ca0fbb7d93
commit
c90aaa122d
1 changed files with 1 additions and 0 deletions
|
|
@ -194,6 +194,7 @@ QDF_STATUS mac_close(mac_handle_t mac_handle)
|
|||
wlan_objmgr_psoc_release_ref(mac->psoc, WLAN_LEGACY_MAC_ID);
|
||||
mac->mlme_cfg = NULL;
|
||||
mac->psoc = NULL;
|
||||
qdf_mem_zero(mac, sizeof(*mac));
|
||||
mac_free_context_buffer();
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue