qcacld-3.0: validate the green_ap_ctx before accessing it

qcacld-2.0 to qcacld-3.0 propagation

The green_ap_ctx is not checked for NULL pointer before accessing
it. This is leading to crash in FTM mode as green_ap_ctx is not
initialized.

CRs-Fixed: 1074982
Change-Id: I6b3cea999bfb44cfb6fa56aece6b423e638bfaa7
1 file changed
tree: 267d8e76b47202bbde4355f0d69a0512f08511d3
  1. core/
  2. target/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt