mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Set AP power mode back to LPI
When starting SAP, the AP power type is decided based on certain conditions. After turning off the SAP, the power type is no longer valid, so reset it back to default. Change-Id: I472da2e02b58017dab4855fc83cd4e15b24b7b08 CRs-fixed: 2934622
This commit is contained in:
parent
f9264f6d82
commit
e99d08060b
1 changed files with 8 additions and 0 deletions
|
|
@ -1971,6 +1971,14 @@ QDF_STATUS policy_mgr_decr_active_session(struct wlan_objmgr_psoc *psoc,
|
|||
pm_ctx->dp_cbacks.hdd_disable_rx_ol_in_concurrency(false);
|
||||
};
|
||||
|
||||
if ((mode == QDF_SAP_MODE || mode == QDF_P2P_GO_MODE) &&
|
||||
(policy_mgr_mode_specific_connection_count(psoc, PM_SAP_MODE,
|
||||
NULL) == 0) &&
|
||||
(policy_mgr_mode_specific_connection_count(psoc, PM_P2P_GO_MODE,
|
||||
NULL) == 0))
|
||||
wlan_reg_set_ap_pwr_and_update_chan_list(pm_ctx->pdev,
|
||||
REG_INDOOR_AP);
|
||||
|
||||
/* Disable RPS if SAP interface has come up */
|
||||
if (policy_mgr_mode_specific_connection_count(psoc, PM_SAP_MODE, NULL)
|
||||
== 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue