Explorar o código

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 hai 1 ano
pai
achega
5e7649fe1a
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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);