Parcourir la source

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
Rajeev Kumar il y a 7 ans
Parent
commit
4992b686c2
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      core/hdd/src/wlan_hdd_disa.c

+ 5 - 0
core/hdd/src/wlan_hdd_disa.c

@@ -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;