wlan: Dont allow Channel switch if link is already suspended
If channel change is received win non zero switch count, a timer
is started and actual channel is channged after timer expire.
It may happen that the scan has already started before this channel
switch timer expire.
There is no handling in timer callback to check if driver is
already in scan state and thus it may send finish scan req once
channel change is completed as link is in suspended state due to
scan in progress.
This leads to change in scan states and scan is stuck.
As part of the fix drop change channel req if link is in
suspended state.
CRs-Fixed: 916864
Change-Id: I288503eb1d570c2848d7fc64015d31d24b9887a1
1 file changed