Bläddra i källkod

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
Jianmin Zhu 5 år sedan
förälder
incheckning
c71151b3f7
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      core/sap/src/sap_fsm.c

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

@@ -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,