From dcf1fef9b35ccb0cf34a8f5a7dee2d25cfe1d3aa Mon Sep 17 00:00:00 2001 From: Ananya Barat Date: Mon, 27 Apr 2020 15:42:03 +0530 Subject: [PATCH] qcacmn: Correct the start frequency for 2G channel 14 in japan_op_class The function reg_freq_width_to_chan_op_class calculates the channel number and opclass to be filled in the ECSA IE. In this function, there is a check if (op_class_tbl->start_freq + FREQ_TO_CHAN_SCALE *op_class_tbl->channels[i] == freq) In case of channel 14 in Japan opclass, since the start_freq =2407, FREQ_TO_CHAN_SCALE=5 and channels[i] =14, this condition evaluates to false and chan_num and opclass are not filled. Fix this by setting the start_freq as 2414 as is done for the global_op_class table. Change-Id: I31b3720e4a74a3790275eb3d14b412b0366cbeba CRs-Fixed: 2673001 --- umac/regulatory/core/src/reg_opclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/regulatory/core/src/reg_opclass.c b/umac/regulatory/core/src/reg_opclass.c index d79d04343ec4..0637d189a0d2 100644 --- a/umac/regulatory/core/src/reg_opclass.c +++ b/umac/regulatory/core/src/reg_opclass.c @@ -224,7 +224,7 @@ static const struct reg_dmn_op_class_map_t japan_op_class[] = { {36, 40, 44, 48} }, {30, 25, BW20, BIT(BEHAV_NONE), 2407, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13} }, - {31, 25, BW20, BIT(BEHAV_NONE), 2407, + {31, 25, BW20, BIT(BEHAV_NONE), 2414, {14} }, {32, 20, BW20, BIT(BEHAV_NONE), 5000, {52, 56, 60, 64} },