qcacld-3.0: Check sme session opened flag for opened interfaces
Sap context memory is allocated on adding softap interface.
If wlan interface is disabled after softap interface is added,
iface_idle_work is scheduled since DEVICE_IFACE_OPENED will
not be set. Memory leak will happen as sap context is not
freed in this case.
Fix is to check for DEVICE_IFACE_OPENED or SME_SESSION_OPENED
flag for opened interfaces.
Change-Id: I3585078135dc042222a92cf5c896ad26a086e506
CRs-Fixed: 2126666
1 file changed