wlan: Array out of bound due to invalid session Id

In background scanning, csrNeighborRoamIssueBgScanRequest
passes CSR_SESSION_ID_INVALID(0xFF) as argument-sessionId to
 csrScanRequest(). In csrRoamGetConnectState roamSession points
to sessions up to max 5. Invalid session id 0xFF results in page
fault error.
Fix this by adding session id validity check and return
appropriate error status to the calling function.

CRs-Fixed: 453007
2 files changed
tree: 6f5e4b4f8d7475691f3f901a782365f387a188de
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig