qcacmn: Clear Key information from driver memory after disconnect
Currently the key information i.e the key, and the number of keys are not getting cleared on wifi link disconnection from wifi driver memory, which can lead to information disclosure. Clear the key information i.e the number of keys and keys from wifi driver memory to avoid any potential information disclore after wifi is turned off. Change-Id: I2a3ea56d4e876b48dd7a5e456ed7d139600fab01 CRs-Fixed: 2415421
This commit is contained in:

committed by
nshrivas

parent
9f4daf55f7
commit
f35d79a22b
@@ -3873,9 +3873,10 @@ static QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle,
|
|||||||
wmi_mtrace(WMI_VDEV_INSTALL_KEY_CMDID, cmd->vdev_id, 0);
|
wmi_mtrace(WMI_VDEV_INSTALL_KEY_CMDID, cmd->vdev_id, 0);
|
||||||
status = wmi_unified_cmd_send(wmi_handle, buf, len,
|
status = wmi_unified_cmd_send(wmi_handle, buf, len,
|
||||||
WMI_VDEV_INSTALL_KEY_CMDID);
|
WMI_VDEV_INSTALL_KEY_CMDID);
|
||||||
if (QDF_IS_STATUS_ERROR(status))
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
|
qdf_mem_zero(wmi_buf_data(buf), len);
|
||||||
wmi_buf_free(buf);
|
wmi_buf_free(buf);
|
||||||
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user