瀏覽代碼

qcacmn: Initialize eirp and psd in reg_get_eirp_for_non_sp

Initialize eirp and psd in reg_get_eirp_for_non_sp to fix WHUNT failure.

Change-Id: Id2f9ca8b658648dd50d47647270ac05fd5f330c9
CRs-Fixed: 3196444
Hariharan Basuthkar 3 年之前
父節點
當前提交
1e745ce16a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      umac/regulatory/core/src/reg_services_common.c

+ 1 - 1
umac/regulatory/core/src/reg_services_common.c

@@ -8628,7 +8628,7 @@ reg_get_eirp_for_non_sp(struct wlan_objmgr_pdev *pdev, qdf_freq_t freq,
 	reg_find_txpower_from_6g_list(freq, master_chan_list, &txpower);
 
 	if (is_psd) {
-		int16_t eirp, psd;
+		int16_t eirp = 0, psd = 0;
 
 		reg_get_6g_chan_psd_eirp_power(freq, master_chan_list, &psd);
 		reg_psd_2_eirp(pdev, psd, bw, &eirp);