mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
Merge "qcacmn: Consider gindoor_channel_support ini to decide ap_power_type" into wlan-cmn.driver.lnx.2.0.8.r3-rel
This commit is contained in:
commit
61487f101e
1 changed files with 10 additions and 3 deletions
|
|
@ -774,11 +774,18 @@ enum reg_6g_ap_type reg_decide_6g_ap_pwr_type(struct wlan_objmgr_pdev *pdev)
|
|||
return REG_VERY_LOW_POWER_AP;
|
||||
}
|
||||
|
||||
if (reg_is_afc_available(pdev))
|
||||
if (reg_is_afc_available(pdev)) {
|
||||
ap_pwr_type = REG_STANDARD_POWER_AP;
|
||||
else if (pdev_priv_obj->reg_6g_superid != FCC1_6G &&
|
||||
pdev_priv_obj->reg_6g_superid != FCC1_6G_CL)
|
||||
} else if (pdev_priv_obj->indoor_chan_enabled) {
|
||||
if (pdev_priv_obj->reg_rules.num_of_6g_ap_reg_rules[REG_INDOOR_AP])
|
||||
ap_pwr_type = REG_INDOOR_AP;
|
||||
else
|
||||
ap_pwr_type = REG_VERY_LOW_POWER_AP;
|
||||
} else if (pdev_priv_obj->reg_rules.num_of_6g_ap_reg_rules[REG_VERY_LOW_POWER_AP]) {
|
||||
ap_pwr_type = REG_VERY_LOW_POWER_AP;
|
||||
}
|
||||
reg_debug("indoor_chan_enabled %d ap_pwr_type %d",
|
||||
pdev_priv_obj->indoor_chan_enabled, ap_pwr_type);
|
||||
|
||||
reg_set_ap_pwr_and_update_chan_list(pdev, ap_pwr_type);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue