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
This commit is contained in:
Ananya Barat 2020-04-27 15:42:03 +05:30 • committed by nshrivas
commit dcf1fef9b3

View file

@ -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} },