wlan: Check if cancel ROC is started before canceling existing ROC

If ROC is in progress and an new ROC session is requested, as part
of new ROC request the existing ROC need to be canceled. But
while canceling existing ROC the driver doesnot check if cancel ROC
has already started, which may lead to resume link called twice and
in this case gLimResumeLink callback is not set to NULL.

Thus next time when ROC is called the finish scan request is not
sent to firmware assuming finish scan is already sent as
gLimResumeLink callback is not NULL. This leads to back to back
init scan request to firmware which cause crash.

Check if cancel ROC is started before canceling existing ROC.

CRs-Fixed: 887489
Change-Id: I5ee609713d27bcf383d35893a10c20b5d27635a4
1 file changed
tree: 026b4b4c180630199c5cfb292ee9fa3836b702dd
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile