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
tree: 108a08c2aa0143e61c06435d16baf74aa527bc56
  1. components/
  2. core/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt