From b043b5da0e4165e7d04673fd3067654f11d25ebc Mon Sep 17 00:00:00 2001 From: Lincoln Tran Date: Tue, 15 Jun 2021 14:33:30 -0700 Subject: [PATCH] qcacmn: Change the 6G reg rules when appending Currently, when appending the 6G reg rules to the reg rules list, the index is decided by the current AP power type. However, the reg rules sent to user space should not be influenced by what mode the SAP is operating in. Update the logic to always use LPI reg rules. Change-Id: Iac4cddb2dc1d73ce35bdbe6365ea14af26656bbf CRs-fixed: 2969456 --- umac/regulatory/core/src/reg_build_chan_list.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/umac/regulatory/core/src/reg_build_chan_list.c b/umac/regulatory/core/src/reg_build_chan_list.c index 0f517dd0ad53..c3f5408bed42 100644 --- a/umac/regulatory/core/src/reg_build_chan_list.c +++ b/umac/regulatory/core/src/reg_build_chan_list.c @@ -1216,11 +1216,10 @@ static void reg_append_6g_reg_rules_in_pdev( struct wlan_regulatory_pdev_priv_obj *pdev_priv_obj) { struct reg_rule_info *pdev_reg_rules; - enum reg_6g_ap_type cur_pwr_type; + enum reg_6g_ap_type cur_pwr_type = REG_INDOOR_AP; uint8_t num_reg_rules; pdev_reg_rules = &pdev_priv_obj->reg_rules; - cur_pwr_type = pdev_priv_obj->reg_cur_6g_ap_pwr_type; num_reg_rules = pdev_reg_rules->num_of_reg_rules; pdev_reg_rules->num_of_reg_rules +=