瀏覽代碼

qcacmn: Memset master channel list 6 GHz AP structure

EIRP Power value in master channel list for power type VLP
is filled with garbage values even though VLP rules are not present.
Due to this, best power mode selection algorithm selects VLP as
best power mode and fails while setting frequency.

To fix this, memset the master channel list 6 GHz AP.

Change-Id: I21bfd69445aeb4756474ad452be0099498e9d5a6
CRs-Fixed: 3574999
Divya R 1 年之前
父節點
當前提交
5e7649fe1a
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      umac/regulatory/core/src/reg_build_chan_list.c

+ 7 - 1
umac/regulatory/core/src/reg_build_chan_list.c

@@ -4628,9 +4628,15 @@ __reg_process_master_chan_list_ext(struct cur_regulatory_info *regulat_info)
 		mas_chan_list_6g_ap[i] =
 			this_mchan_params->mas_chan_list_6g_ap[i];
 
-		for (j = 0; j < REG_MAX_CLIENT_TYPE; j++)
+		qdf_mem_zero(mas_chan_list_6g_ap[i],
+			     NUM_6GHZ_CHANNELS * sizeof(struct regulatory_channel));
+
+		for (j = 0; j < REG_MAX_CLIENT_TYPE; j++) {
 			mas_chan_list_6g_client[i][j] =
 				this_mchan_params->mas_chan_list_6g_client[i][j];
+			qdf_mem_zero(mas_chan_list_6g_client[i][j],
+				     NUM_6GHZ_CHANNELS * sizeof(struct regulatory_channel));
+		}
 	}
 
 	reg_init_channel_map(regulat_info->dfs_region);