summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/init.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/init.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/init.c')
-rw-r--r--drivers/net/wireless/mwifiex/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c
index 520ad4a3018b..a3dd601a495a 100644
--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
@@ -411,6 +411,11 @@ mwifiex_adapter_cleanup(struct mwifiex_adapter *adapter)
entry->mem_size = 0;
}
+ if (adapter->drv_info_dump) {
+ vfree(adapter->drv_info_dump);
+ adapter->drv_info_size = 0;
+ }
+
if (adapter->sleep_cfm)
dev_kfree_skb_any(adapter->sleep_cfm);
}