소스 검색

qcacld-3.0: Copy the sap channel list to acs cfg chan list

Copy the sap channel list that is obtained after filtering
the channel list from all the checks like SRD, DFS
to maintain the sync between the ACS module, and the sap
channel select logic.

Change-Id: I78a835f700ab34fa81b9b748e6ad28ca3b726650
CRs-Fixed: 2513628
gaurank kathpalia 5 년 전
부모
커밋
5ffac61a8a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      core/sap/src/sap_fsm.c

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

@@ -3435,12 +3435,17 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx,
 	} else {
 		*freq_list = NULL;
 		qdf_mem_free(list);
+		return QDF_STATUS_SUCCESS;
 	}
 
 	for (loop_count = 0; loop_count < ch_count; loop_count++) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
 			FL("channel frequency: %d"), list[loop_count]);
+		sap_ctx->acs_cfg->ch_list[loop_count] =
+			wlan_reg_freq_to_chan(mac_ctx->pdev, list[loop_count]);
 	}
+	sap_ctx->acs_cfg->ch_list_count = ch_count;
+
 	return QDF_STATUS_SUCCESS;
 }
 #endif