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
This commit is contained in:
Lincoln Tran 2021-06-15 14:33:30 -07:00 • committed by Madan Koyyalamudi
commit b043b5da0e

View file

@ -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 +=