diff options
author | Guy Mishol | 2015-07-27 08:46:02 +0200 |
---|---|---|
committer | Kalle Valo | 2015-08-06 09:18:14 +0200 |
commit | d1c5409612ad25d8a35a49a89ad302fc797eeb8e (patch) | |
tree | 2d0af030f1a2276e5c5f99d37c5413a5bc277fcb /drivers/net/wireless/ti/wl18xx/acx.c | |
parent | mwifiex: corrections in PCIe event skb handling (diff) | |
download | kernel-qcow2-linux-d1c5409612ad25d8a35a49a89ad302fc797eeb8e.tar.gz kernel-qcow2-linux-d1c5409612ad25d8a35a49a89ad302fc797eeb8e.tar.xz kernel-qcow2-linux-d1c5409612ad25d8a35a49a89ad302fc797eeb8e.zip |
wl18xx: add dynamic fw traces
add option to dynamically configure the fw
which debug traces to open
Signed-off-by: Guy Mishol <guym@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/acx.c')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/acx.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/acx.c b/drivers/net/wireless/ti/wl18xx/acx.c index 67f2a0eec854..4be0409308cb 100644 --- a/drivers/net/wireless/ti/wl18xx/acx.c +++ b/drivers/net/wireless/ti/wl18xx/acx.c @@ -282,3 +282,30 @@ out: kfree(acx); return ret; } + +int wl18xx_acx_dynamic_fw_traces(struct wl1271 *wl) +{ + struct acx_dynamic_fw_traces_cfg *acx; + int ret; + + wl1271_debug(DEBUG_ACX, "acx dynamic fw traces config %d", + wl->dynamic_fw_traces); + + acx = kzalloc(sizeof(*acx), GFP_KERNEL); + if (!acx) { + ret = -ENOMEM; + goto out; + } + + acx->dynamic_fw_traces = cpu_to_le32(wl->dynamic_fw_traces); + + ret = wl1271_cmd_configure(wl, ACX_DYNAMIC_TRACES_CFG, + acx, sizeof(*acx)); + if (ret < 0) { + wl1271_warning("acx config dynamic fw traces failed: %d", ret); + goto out; + } +out: + kfree(acx); + return ret; +} |