Skip to contentSkip to conversation

wifi: wlcore: Remove unused wl12xx_cmd_start_fwlog

PATCH New [email protected] 1 participant 1 message Jun 22, 2025 TI wilink wireless drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: wlcore: Remove unused wl12xx_cmd_start_fwlog

From: "Dr. David Alan Gilbert" <[email protected]>

wl12xx_cmd_start_fwlog() was added in 2011 by
commit 95dac04f8813 ("wl12xx: Support routing FW logs to the host") but has remained unused.

Remove it.

(I can see the 'stop' is used, and the 'config' is used, so I assume the 'start' isn't normally needed).

---
 drivers/net/wireless/ti/wlcore/cmd.c | 26 --------------------------
 drivers/net/wireless/ti/wlcore/cmd.h |  1 -
 2 files changed, 27 deletions(-)
drivers/net/wireless/ti/wlcore/cmd.c +0 -26
index cd8ad0fe59cc..fa3a3f71dd15 100644
@@ -1804,32 +1804,6 @@ int wl12xx_cmd_config_fwlog(struct wl1271 *wl)
 	return ret;
 }
 
-int wl12xx_cmd_start_fwlog(struct wl1271 *wl)
-{
-	struct wl12xx_cmd_start_fwlog *cmd;
-	int ret = 0;
-
-	wl1271_debug(DEBUG_CMD, "cmd start firmware logger");
-
-	cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
-	if (!cmd) {
-		ret = -ENOMEM;
-		goto out;
-	}
-
-	ret = wl1271_cmd_send(wl, CMD_START_FWLOGGER, cmd, sizeof(*cmd), 0);
-	if (ret < 0) {
-		wl1271_error("failed to send start firmware logger command");
-		goto out_free;
-	}
-
-out_free:
-	kfree(cmd);
-
-out:
-	return ret;
-}
-
 int wl12xx_cmd_stop_fwlog(struct wl1271 *wl)
 {
 	struct wl12xx_cmd_stop_fwlog *cmd;
drivers/net/wireless/ti/wlcore/cmd.h +0 -1
index 4c2f2608ef3b..d16afb35f9ee 100644
@@ -81,7 +81,6 @@ int wlcore_cmd_regdomain_config_locked(struct wl1271 *wl);
 int wlcore_cmd_generic_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif,
 			   u8 feature, u8 enable, u8 value);
 int wl12xx_cmd_config_fwlog(struct wl1271 *wl);
-int wl12xx_cmd_start_fwlog(struct wl1271 *wl);
 int wl12xx_cmd_stop_fwlog(struct wl1271 *wl);
 int wl12xx_cmd_channel_switch(struct wl1271 *wl,
 			      struct wl12xx_vif *wlvif,
Signature · 1 line
2.49.0