summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/sdio.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2014-12-23 14:44:10 +0100
committerKalle Valo <kvalo@codeaurora.org>2015-01-06 19:54:25 +0100
commit11cd07a9694cbd4d06361d6f46b735a47daa9a77 (patch)
tree96d4b4c945bd274e2496ea5ec860697ff7c65408 /drivers/net/wireless/mwifiex/sdio.c
parentmwifiex: move debug_data dump function to common utililty file (diff)
downloadlinux-11cd07a9694cbd4d06361d6f46b735a47daa9a77.tar.xz
linux-11cd07a9694cbd4d06361d6f46b735a47daa9a77.zip
mwifiex: save driver information to file when firmware dump
This patch adds support to dump driver information to a file when firmware dump happens. This information can be used to root casue FW crash. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sdio.c')
-rw-r--r--drivers/net/wireless/mwifiex/sdio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c
index 933dae137850..6bdfe67eabab 100644
--- a/drivers/net/wireless/mwifiex/sdio.c
+++ b/drivers/net/wireless/mwifiex/sdio.c
@@ -2023,6 +2023,8 @@ static void mwifiex_sdio_fw_dump_work(struct work_struct *work)
u32 memory_size;
static char *env[] = { "DRIVER=mwifiex_sdio", "EVENT=fw_dump", NULL };
+ mwifiex_dump_drv_info(adapter);
+
if (!card->supports_fw_dump)
return;