wl18xx: add dynamic fw traces
PATCH 1/1 wl18xx: add dynamic fw traces
add option to dynamically configure the fw
which debug traces to open
Signed-off-by Guy Mishol <[email protected]>
--- drivers/net/wireless/ti/wl18xx/acx.c | 23 ++++++++++++++ drivers/net/wireless/ti/wl18xx/acx.h | 13 +++++++- drivers/net/wireless/ti/wl18xx/debugfs.c | 48 ++++++++++++++++++++++++++++++ drivers/net/wireless/ti/wl18xx/main.c | 5 +++ drivers/net/wireless/ti/wlcore/wlcore.h | 3 ++ 5 files changed, 91 insertions(+), 1 deletions(-)
drivers/net/wireless/ti/wl18xx/acx.c +23 -0
@@ -280,3 +280,26 @@ out: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; +}
drivers/net/wireless/ti/wl18xx/acx.h +12 -1
@@ -35,7 +35,8 @@ enum {ACX_PEER_CAP =0x0056 ,ACX_INTERRUPT_NOTIFY =0x0057 ,ACX_RX_BA_FILTER =0x0058 , - ACX_AP_SLEEP_CFG = 0x0059 +ACX_AP_SLEEP_CFG =0x0059 , + ACX_DYNAMIC_TRACES_CFG = 0x005A, };/* numbers of bits the length field takes (add 1 for the actual number) */
@@ -406,6 +407,15 @@ struct acx_ap_sleep_cfg {u8 idle_conn_thresh; } __packed; +/* +* ACX_DYNAMIC_TRACES_CFG +* configure the FW dynamic traces +*/ +struct acx_dynamic_fw_traces_cfg { +struct acx_header header; +__le32 dynamic_fw_traces; +} __packed; +int wl18xx_acx_host_if_cfg_bitmap (struct wl1271 *wl,u32 host_cfg_bitmap,u32 sdio_blk_size,u32 extra_mem_blks,u32 len_field_size);
@@ -419,5 +429,6 @@ int wl18xx_acx_set_peer_cap(struct wl1271 *wl,int wl18xx_acx_interrupt_notify_config (struct wl1271 *wl,bool action);int wl18xx_acx_rx_ba_filter (struct wl1271 *wl,bool action);int wl18xx_acx_ap_sleep (struct wl1271 *wl); +int wl18xx_acx_dynamic_fw_traces (struct wl1271 *wl);#endif /* __WL18XX_ACX_H__ */
drivers/net/wireless/ti/wl18xx/debugfs.c +48 -0
60 lines not on this page · raw message
drivers/net/wireless/ti/wl18xx/main.c +5 -0
@@ -1137,6 +1137,11 @@ static int wl18xx_hw_init(struct wl1271 *wl)if (ret <0 )return ret; +/* set the dynamic fw traces bitmap */ + ret =wl18xx_acx_dynamic_fw_traces (wl); +if (ret <0 ) +return ret; +if (checksum_param) { ret =wl18xx_acx_set_checksum_state (wl);if (ret !=0 )
drivers/net/wireless/ti/wlcore/wlcore.h +3 -0
@@ -522,6 +522,9 @@ struct wl1271 {/* the current dfs region */ enum nl80211_dfs_regions dfs_region;bool radar_debug_mode; + +/* dynamic fw traces */ +u32 dynamic_fw_traces; };int wlcore_probe (struct wl1271 *wl,struct platform_device *pdev);
Signature · 1 line
1.7.9
Quoted 4 lines · Guy Mishol
add option to dynamically configure the fw
which debug traces to openSigned-off-by Guy Mishol <[email protected]>
Failed to apply, please rebase:
Applying: wl18xx: add dynamic fw traces
fatal: sha1 information is lacking or useless (drivers/net/wireless/ti/wl18xx/acx.c).
Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge.
Patch failed at 0001 wl18xx: add dynamic fw traces
Signature · 1 line
Kalle Valo