Browse Source

qcacld-3.0: ACS fail-safe channel config indication

When ACS scan fails due to some reason, the default channel will
be configured based on ACS band and channel range config, but
the channel and band configs are not indicated to hostapd in a
proper way.

Add code for fail-safe channel and band config indication to
hostapd when ACS scan fails.

Change-Id: Ibbafbc7b853e753cee5563ab64c12c81c3fe54e2
CRs-Fixed: 2166815
wadesong 7 years ago
parent
commit
4879f42765
1 changed files with 5 additions and 1 deletions
  1. 5 1
      core/sap/src/sap_api_link_cntl.c

+ 5 - 1
core/sap/src/sap_api_link_cntl.c

@@ -310,8 +310,12 @@ QDF_STATUS wlansap_pre_start_bss_acs_scan_callback(tHalHandle hal_handle,
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
 			FL("CSR scan_status = eCSR_SCAN_ABORT/FAILURE (%d), choose default channel"),
 			scan_status);
-		sap_ctx->channel =
+		oper_channel =
 			sap_select_default_oper_chan(sap_ctx->acs_cfg);
+		sap_ctx->channel = oper_channel;
+		sap_ctx->acs_cfg->pri_ch = oper_channel;
+		sap_config_acs_result(hal_handle, sap_ctx,
+				      sap_ctx->acs_cfg->ht_sec_ch);
 		sap_ctx->sap_state = eSAP_ACS_CHANNEL_SELECTED;
 		sap_ctx->sap_status = eSAP_STATUS_SUCCESS;
 		goto close_session;