CHROMIUM: Fix command disallow issue during LE scan operation

In case of controller exception as part of HOST recovery flow
HCI_LE_SCAN_CHANGE_IN_PROGRESS state is not clear due to which
host initiates LE scan disable instead of LE scan enable. As
result command disallowed was sent to host by the controller
because there is no on going LE scan operation.

Now as part of host recovery procedure scan state shall be cleared
in case any scan operation is in progress and reset the scan progress
count.

BUG=b:129854152
TEST=All sanity test cases are passed on Atlas

Change-Id: I7ae6b78f3c8fcdb15b19ad19d006617cd5ca876a
Signed-off-by: Amit K Bag <amit.k.bag@intel.com>
Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1569052
Commit-Ready: Yoni Shavit <yshavit@chromium.org>
Tested-by: Amit K Bag <amit.k.bag@intel.corp-partner.google.com>
Reviewed-by: Amit K Bag <amit.k.bag@intel.corp-partner.google.com>
Reviewed-by: Yoni Shavit <yshavit@chromium.org>
(cherry picked from commit 7d5b5e70d79751a2361a8c09742135f77de05993)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1584093
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Chethan Tumkur Narayan <chethan.tumkur.narayan@intel.corp-partner.google.com>
Tested-by: Chethan Tumkur Narayan <chethan.tumkur.narayan@intel.corp-partner.google.com>
Commit-Queue: Yoni Shavit <yshavit@chromium.org>
1 file changed