wlan: Fix for potential buffer overflow and null pointer references.

Static analyser is reporting errors for array bound
checking and null pointer references.
To resolve this
1. Check for condition array index shouldn't exceed
   WNI_CFG_VALID_CHANNEL_LIST_LEN before accessing
   ChannelList array.
2. Check for NULL condition wherever necessary.

Change-Id: Idd0a23a8180dddabfdd353c0861899411aecfa16
CRs-Fixed: 534624
3 files changed
tree: 6fa97c65b3e59cca244be45ceec5f4ce1cb1416b
  1. CORE/
  2. firmware_bin/
  3. prima/
  4. riva/
  5. Android.mk
  6. Kbuild
  7. Kconfig