wlan: Modify the split scan logic to query active connected session state before every scan command

The current implementation of split scan logic splits the scan commands
to perform scans on individual channels if there active connected
sessions present. It does not handle the case where a sessions have
transitioned from connected to disconnected state during the split scan
operation. This cause the device to continue to split the scan commands
even though there are no active connected sessions leading to longer
scan completion times. The change modifies the split scan logic to query
the connected state of the sessions before initiating every scan split
operation. If there are no connected sessions present then it continues
to perform the scan operation on all the specified channels in one
single sweep instead of breaking them up. The change also modifies the
triggering of the timer to initiate the next scan command immediately if
there are no connected sessions present.

Change-Id: I8747c03927224fb9f1d1713b5f94cb34a2fd7777
CR-Fixed: 415261
1 file changed
tree: 8a24c1862bf2da84b4d76e0ece79530dc5d00cd9
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Kconfig
  5. Makefile