mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Enable QPOWER only for STA modes
Currently sending qpower to FW in softap mode causes device to crash as qpower config is not supported. Enable QPOWER config in STA and P2P-CLI modes. Change-Id: Idb8b3ac79e6c93533b752ac42d6ab57bb0c86579 CRs-Fixed: 2003839
This commit is contained in:
parent
5f42892271
commit
91b7bb8a20
1 changed files with 6 additions and 0 deletions
|
|
@ -2217,6 +2217,12 @@ int hdd_set_qpower_config(hdd_context_t *hddctx, hdd_adapter_t *adapter,
|
|||
hdd_err("qpower is disabled in configuration");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (adapter->device_mode != QDF_STA_MODE &&
|
||||
adapter->device_mode != QDF_P2P_CLIENT_MODE) {
|
||||
hdd_info(FL("QPOWER only allowed in STA/P2P-Client modes:%d "),
|
||||
adapter->device_mode);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (qpower > PS_DUTY_CYCLING_QPOWER ||
|
||||
qpower < PS_LEGACY_NODEEPSLEEP) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue