mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Fix reg rule parsing order
Currently, reg rules are processed in the order of LPI, SP, VLP. The order from halphy is SP, LPI, VLP. Update the processing order so correct reg rules are passed north. Change-Id: I5bb22a1dcd3f1c95d8f4498b03d6cc6eedcfe44c CRs-fixed: 2874752
This commit is contained in:
parent
bb967d4ed1
commit
c1cb73bf0e
1 changed files with 44 additions and 13 deletions
|
|
@ -12053,7 +12053,7 @@ static QDF_STATUS extract_reg_chan_list_ext_update_event_tlv(
|
|||
wmi_unified_t wmi_handle, uint8_t *evt_buf,
|
||||
struct cur_regulatory_info *reg_info, uint32_t len)
|
||||
{
|
||||
uint32_t i, j;
|
||||
uint32_t i;
|
||||
WMI_REG_CHAN_LIST_CC_EXT_EVENTID_param_tlvs *param_buf;
|
||||
wmi_reg_chan_list_cc_event_ext_fixed_param *ext_chan_list_event_hdr;
|
||||
wmi_regulatory_rule_ext_struct *ext_wmi_reg_rule;
|
||||
|
|
@ -12278,23 +12278,53 @@ static QDF_STATUS extract_reg_chan_list_ext_update_event_tlv(
|
|||
ext_wmi_reg_rule);
|
||||
ext_wmi_reg_rule += num_5g_reg_rules;
|
||||
|
||||
for (i = 0; i < REG_CURRENT_MAX_AP_TYPE; i++) {
|
||||
reg_info->reg_rules_6g_ap_ptr[i] =
|
||||
create_ext_reg_rules_from_wmi(num_6g_reg_rules_ap[i],
|
||||
reg_info->reg_rules_6g_ap_ptr[REG_STANDARD_POWER_AP] =
|
||||
create_ext_reg_rules_from_wmi(num_6g_reg_rules_ap
|
||||
[REG_STANDARD_POWER_AP],
|
||||
ext_wmi_reg_rule);
|
||||
ext_wmi_reg_rule += num_6g_reg_rules_ap[REG_STANDARD_POWER_AP];
|
||||
|
||||
ext_wmi_reg_rule += num_6g_reg_rules_ap[i];
|
||||
reg_info->reg_rules_6g_ap_ptr[REG_INDOOR_AP] =
|
||||
create_ext_reg_rules_from_wmi(num_6g_reg_rules_ap
|
||||
[REG_INDOOR_AP],
|
||||
ext_wmi_reg_rule);
|
||||
ext_wmi_reg_rule += num_6g_reg_rules_ap[REG_INDOOR_AP];
|
||||
|
||||
reg_info->reg_rules_6g_ap_ptr[REG_VERY_LOW_POWER_AP] =
|
||||
create_ext_reg_rules_from_wmi(num_6g_reg_rules_ap
|
||||
[REG_VERY_LOW_POWER_AP],
|
||||
ext_wmi_reg_rule);
|
||||
ext_wmi_reg_rule += num_6g_reg_rules_ap[REG_VERY_LOW_POWER_AP];
|
||||
|
||||
for (i = 0; i < REG_MAX_CLIENT_TYPE; i++) {
|
||||
reg_info->reg_rules_6g_client_ptr[REG_STANDARD_POWER_AP][i] =
|
||||
create_ext_reg_rules_from_wmi(
|
||||
num_6g_reg_rules_client
|
||||
[REG_STANDARD_POWER_AP][i],
|
||||
ext_wmi_reg_rule);
|
||||
|
||||
ext_wmi_reg_rule +=
|
||||
num_6g_reg_rules_client[REG_STANDARD_POWER_AP][i];
|
||||
}
|
||||
|
||||
for (j = 0; j < REG_CURRENT_MAX_AP_TYPE; j++) {
|
||||
for (i = 0; i < REG_MAX_CLIENT_TYPE; i++) {
|
||||
reg_info->reg_rules_6g_client_ptr[j][i] =
|
||||
create_ext_reg_rules_from_wmi(
|
||||
num_6g_reg_rules_client[j][i],
|
||||
ext_wmi_reg_rule);
|
||||
for (i = 0; i < REG_MAX_CLIENT_TYPE; i++) {
|
||||
reg_info->reg_rules_6g_client_ptr[REG_INDOOR_AP][i] =
|
||||
create_ext_reg_rules_from_wmi(
|
||||
num_6g_reg_rules_client[REG_INDOOR_AP][i],
|
||||
ext_wmi_reg_rule);
|
||||
|
||||
ext_wmi_reg_rule += num_6g_reg_rules_client[j][i];
|
||||
}
|
||||
ext_wmi_reg_rule += num_6g_reg_rules_client[REG_INDOOR_AP][i];
|
||||
}
|
||||
|
||||
for (i = 0; i < REG_MAX_CLIENT_TYPE; i++) {
|
||||
reg_info->reg_rules_6g_client_ptr[REG_VERY_LOW_POWER_AP][i] =
|
||||
create_ext_reg_rules_from_wmi(
|
||||
num_6g_reg_rules_client
|
||||
[REG_VERY_LOW_POWER_AP][i],
|
||||
ext_wmi_reg_rule);
|
||||
|
||||
ext_wmi_reg_rule +=
|
||||
num_6g_reg_rules_client[REG_VERY_LOW_POWER_AP][i];
|
||||
}
|
||||
|
||||
reg_info->client_type = ext_chan_list_event_hdr->client_type;
|
||||
|
|
@ -12332,6 +12362,7 @@ static QDF_STATUS extract_reg_chan_list_ext_update_event_tlv(
|
|||
reg_info->domain_code_6g_super_id =
|
||||
ext_chan_list_event_hdr->domain_code_6g_super_id;
|
||||
|
||||
wmi_debug("super domain id %d", reg_info->domain_code_6g_super_id);
|
||||
wmi_debug("processed regulatory extended channel list");
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue