Explorar o código

qcacld-3.0: Handle the channel selection failure case for ACS mode

In case of auto channel selction failure, clean exit does not happens
which results as scan completion event timeout in start bss API.

Add appropriate  API call with channel selection failure
case.

Change-Id: I66a81f586234adb5a0edc4c85cfbaa221424217f
CRs-Fixed: 2006960
Ashish Kumar Dhanotiya %!s(int64=8) %!d(string=hai) anos
pai
achega
48c6b6e708
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      core/sap/src/sap_fsm.c

+ 2 - 0
core/sap/src/sap_fsm.c

@@ -3788,6 +3788,8 @@ static QDF_STATUS sap_fsm_state_ch_select(ptSapContext sap_ctx,
 		sap_ctx->sapsMachine = eSAP_DISCONNECTED;
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
 		FL("Cannot start BSS, ACS Fail"));
+		sap_signal_hdd_event(sap_ctx, NULL, eSAP_START_BSS_EVENT,
+					(void *)eSAP_STATUS_FAILURE);
 	} else if (msg == eSAP_HDD_STOP_INFRA_BSS) {
 		sap_ctx->sapsMachine = eSAP_DISCONNECTED;
 		sap_signal_hdd_event(sap_ctx, NULL, eSAP_START_BSS_EVENT,