Revert "Revert "Revert "qcacmn: Clear Key information from driver memory after disconnect"""
This reverts commit f37c55b9a775e98143aa559b119b546cd81c5ad2.
Reason for revert: NIAP kernel prebuilts are ready. So the change is no longer needed in this branch
Change-Id: Id4ec18ce18751a188ee34ca2bb399c2686b394b7
Signed-off-by: Sunil Ravi <sunilravi@google.com>
diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c
index 21411a7..c356108 100644
--- a/wmi/src/wmi_unified_tlv.c
+++ b/wmi/src/wmi_unified_tlv.c
@@ -3935,10 +3935,9 @@
status = wmi_unified_cmd_send(wmi_handle, buf, len,
WMI_VDEV_INSTALL_KEY_CMDID);
- if (QDF_IS_STATUS_ERROR(status)) {
- qdf_mem_zero(wmi_buf_data(buf), len);
+ if (QDF_IS_STATUS_ERROR(status))
wmi_buf_free(buf);
- }
+
return status;
}