qcacmn: Modify max_bw for 240 MHz channels after copying to psoc
A kernel warning is observed when the reg_rules are sent to the cfg80211 module on a 320mhz supported radio. On a 320mhz supported radio, for the 5 GHz reg_rule of the 5490-5730 band, the max_bw initially comes from the target as 240 MHz. Since reg_modify_max_bw_for_240mhz_5g_chans is called before copying the reg_rules to psoc, the max_bw is set to 320 MHz. There is a warning condition the cfg80211 module to check if the max bandwidth is greater start and end frequency difference. This check causes the warning. To fix this issue, call reg_modify_max_bw_for_240mhz_5g_chans after copying the reg_rules to the psoc. Change-Id: I385971a2f6c849f7cdd17903ff33646f0fa9d47e CRs-Fixed: 3236069
This commit is contained in:
committad av
Madan Koyyalamudi
förälder
0365423471
incheckning
261715db9e
@@ -3368,12 +3368,12 @@ reg_fill_master_channels(struct cur_regulatory_info *regulat_info,
|
||||
sizeof(struct cur_reg_rule));
|
||||
curr_reg_rule_location = num_2g_reg_rules;
|
||||
if (num_5g_reg_rules) {
|
||||
reg_modify_max_bw_for_240mhz_5g_chans(regulat_info,
|
||||
reg_rule_5g);
|
||||
qdf_mem_copy(reg_rules->reg_rules +
|
||||
curr_reg_rule_location, reg_rule_5g,
|
||||
num_5g_reg_rules *
|
||||
sizeof(struct cur_reg_rule));
|
||||
reg_modify_max_bw_for_240mhz_5g_chans(regulat_info,
|
||||
reg_rule_5g);
|
||||
}
|
||||
}
|
||||
|
||||
|
Referens i nytt ärende
Block a user