mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
qcacld-3.0: Add a check for WLM latency manager support
Currently there is no check for WLM latency manager support, while setting the latency level which may lead to undefined behavior. To address the above issue add a check for WLM latency manager support. Change-Id: I03aebc1a87a5a40265eea1189503d73f35472644 CRs-Fixed: 2746738
This commit is contained in:
parent
40edd826f0
commit
82dd7dea79
1 changed files with 3 additions and 0 deletions
|
|
@ -8056,6 +8056,9 @@ static int hdd_config_latency_level(struct hdd_adapter *adapter,
|
|||
uint16_t latency_level;
|
||||
QDF_STATUS status;
|
||||
|
||||
if (!hdd_is_wlm_latency_manager_supported(hdd_ctx))
|
||||
return -EINVAL;
|
||||
|
||||
latency_level = nla_get_u16(attr);
|
||||
switch (latency_level) {
|
||||
case QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
|
||||
|
|
|
|||
Loading…
Reference in a new issue