wlan: Handle out of order batch scan commands
HDD to handle out of order batch scan commands from framework
Change-Id: I3fba943a20684c11a31691b8712d763e1cce0fee
CRs-Fixed: 563183
diff --git a/CORE/HDD/inc/wlan_hdd_main.h b/CORE/HDD/inc/wlan_hdd_main.h
index c507a2f..98487f5 100644
--- a/CORE/HDD/inc/wlan_hdd_main.h
+++ b/CORE/HDD/inc/wlan_hdd_main.h
@@ -759,6 +759,21 @@
};
typedef struct tHDDBatchScanRspList tHddBatchScanRsp;
+
+/*Batch Scan state*/
+typedef enum
+{
+ /*Batch scan is started this means WLS_BATCHING SET command is issued
+ from framework*/
+ eHDD_BATCH_SCAN_STATE_STARTED,
+
+ /*Batch scan is stopped this means WLS_BATCHING STOP command is issued
+ from framework*/
+ eHDD_BATCH_SCAN_STATE_STOPPED,
+
+ eHDD_BATCH_SCAN_STATE_MAX,
+} eHDD_BATCH_SCAN_STATE;
+
#endif
@@ -931,6 +946,8 @@
volatile v_BOOL_t hdd_wait_for_set_batch_scan_rsp;
/*Previous batch scan ID*/
v_U32_t prev_batch_id;
+ /*Batch scan state*/
+ eHDD_BATCH_SCAN_STATE batchScanState;
#endif
};