Selaa lähdekoodia

qcacmn: Scan Failure Event for NOL Violation

On NOL violation during scan start, FW aborts the scan request and sends
the scan failure event.

CRs-Fixed: 2328894
Change-Id: I5b33a8f02122226b8980daaeedb13d727266e7e7
Abhijit Pradhan 6 vuotta sitten
vanhempi
sitoutus
0f0e27b597

+ 2 - 0
umac/scan/dispatcher/inc/wlan_scan_public_structs.h

@@ -1042,6 +1042,7 @@ enum scan_event_type {
  * @SCAN_REASON_RUN_FAILED: run failed
  * @SCAN_REASON_TERMINATION_FUNCTION: termination function
  * @SCAN_REASON_MAX_OFFCHAN_RETRIES: max retries exceeded thresold
+ * @SCAN_REASON_DFS_VIOLATION: Scan start failure due to DFS violation.
  * @SCAN_REASON_MAX: invalid completion reason marker
  */
 enum scan_completion_reason {
@@ -1055,6 +1056,7 @@ enum scan_completion_reason {
 	SCAN_REASON_RUN_FAILED,
 	SCAN_REASON_TERMINATION_FUNCTION,
 	SCAN_REASON_MAX_OFFCHAN_RETRIES,
+	SCAN_REASON_DFS_VIOLATION,
 	SCAN_REASON_MAX,
 };
 

+ 1 - 0
umac/scan/dispatcher/src/wlan_scan_utils_api.c

@@ -78,6 +78,7 @@ util_scan_get_ev_reason_name(enum scan_completion_reason reason)
 		[SCAN_REASON_RUN_FAILED] = "RUN_FAILED",
 		[SCAN_REASON_TERMINATION_FUNCTION] = "TERMINATION_FUNCTION",
 		[SCAN_REASON_MAX_OFFCHAN_RETRIES] = "MAX_OFFCHAN_RETRIES",
+		[SCAN_REASON_DFS_VIOLATION] = "DFS_NOL_VIOLATION",
 	};
 
 	if (reason >= SCAN_REASON_MAX)