From d93887d03ffe85fcc3fb266eab61e57cc0e30654 Mon Sep 17 00:00:00 2001 From: Vinod Kumar Myadam Date: Fri, 26 Aug 2022 12:10:30 +0530 Subject: [PATCH] qcacmn: Optimize log prints in reg_copy_ch_params In reg_copy_ch_params, logging all bandwidth except 320 MHz, leads to excessive logging. Change-Id: If9d9f8e65c4c0d58fb570d8e6cccc7a7ebd5ec26 CRs-Fixed: 3277099 --- umac/regulatory/core/src/reg_services_common.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index 03d6916675..5c1408c267 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -6010,10 +6010,6 @@ update_bw: static void reg_copy_ch_params(struct ch_params *ch_params, struct reg_channel_list chan_list) { - /* Taking only first set of chan params*/ - if (chan_list.chan_param[0].ch_width != CH_WIDTH_320MHZ) - reg_info("coud not find ch_params for 320MHz downgrading to %d", - chan_list.chan_param[0].ch_width); ch_params->center_freq_seg0 = chan_list.chan_param[0].center_freq_seg0; ch_params->center_freq_seg1 = chan_list.chan_param[0].center_freq_seg1; ch_params->mhz_freq_seg0 = chan_list.chan_param[0].mhz_freq_seg0;