mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Reject DISA test vendor command if power save is enabled
DISA encrypt/decrypt test is not supported by FW when power save is enabled. Add check to reject DISA encrypt/decrypt vendor test command if power save is enabled. Change-Id: Ia83036f957a3298288d312f836d40284344ce8e8 CRs-Fixed: 2240880
This commit is contained in:
parent
071a4c6d71
commit
4992b686c2
1 changed files with 5 additions and 0 deletions
|
|
@ -444,6 +444,11 @@ static int __wlan_hdd_cfg80211_encrypt_decrypt_msg(struct wiphy *wiphy,
|
|||
|
||||
adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
||||
|
||||
if (hdd_ctx->config->is_ps_enabled) {
|
||||
hdd_debug("DISA is not supported when PS is enabled");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = hdd_encrypt_decrypt_msg(adapter, hdd_ctx, data, data_len);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue