wlan: SAP: Fix for NULL dereference exception

Deferencing a pointer without checking for its value
was leading to driver crash. And also there was broken condition
due to a variable that has been used in the condition without
any value assigned.

CRs-fixed: 464467
Change-Id: I624344d6bf3780f4746bb3e385a376b6c510c177
2 files changed
tree: 387c183378d781c99cb48ba48c179b64a10db029
  1. CORE/
  2. firmware_bin/
  3. prima/
  4. riva/
  5. Android.mk
  6. Kbuild
  7. Kconfig