wlan: Kernel Panic due to null pointer dereference.

Currently in csrIsSessionClientAndConnected function,
device mode is acessed from roamprofile without checking
if roamprofile exist or not.
As a part of fix added check to ensure that device mode
is obtained only when a valid roamprofile is available.

Change-Id: Iff2c05dfc88669f9689280342af422576ea78da0
CRs-Fixed: 714231
1 file changed
tree: ec78e960abfbdff9d6538829e98d63190dce6e69
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile