Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 582ceb2a authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

cnss2: Check device ID before sending fw_log_mode request



FW log mode request is only needed for QCA6290 chip set.
Check device ID before sending this request through QMI.

CRs-Fixed: 2055455
Change-Id: I0139e8862ad2b86e0fd7373be27776e9f6df446b
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 4eadb93b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -529,6 +529,9 @@ int cnss_set_fw_log_mode(struct device *dev, uint8_t fw_log_mode)
{
	struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev);

	if (plat_priv->device_id == QCA6174_DEVICE_ID)
		return 0;

	return cnss_wlfw_ini_send_sync(plat_priv, fw_log_mode);
}
EXPORT_SYMBOL(cnss_set_fw_log_mode);