qcacld-3.0: Fix whunt SAP start failed for wrong channel

Need initialize local var con_ch_freq before use.

Change-Id: I9f770dace7710019bd7d693b6c3b6ba3bdc43af1
CRs-Fixed: 2551516
This commit is contained in:
Jianmin Zhu 2019-10-23 18:14:47 +08:00 committed by nshrivas
parent a7e2cf9fd5
commit c71151b3f7

View File

@ -764,8 +764,8 @@ sap_validate_chan(struct sap_context *sap_context,
con_ch);
if (sap_context->cc_switch_mode !=
QDF_MCC_TO_SCC_SWITCH_FORCE_PREFERRED_WITHOUT_DISCONNECTION) {
uint32_t con_ch_freq;
uint32_t con_ch_freq =
wlan_reg_chan_to_freq(mac_ctx->pdev, con_ch);
if (QDF_IS_STATUS_ERROR(
policy_mgr_valid_sap_conc_channel_check(
mac_ctx->psoc, &con_ch_freq,