summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/init.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2014-12-23 13:44:10 (GMT)
committerKalle Valo <kvalo@codeaurora.org>2015-01-06 18:54:25 (GMT)
commit11cd07a9694cbd4d06361d6f46b735a47daa9a77 (patch)
tree96d4b4c945bd274e2496ea5ec860697ff7c65408 /drivers/net/wireless/mwifiex/init.c
parentbb5097fec91efd3253d2b769ba2ccd9f8d67a5d6 (diff)
downloadlinux-11cd07a9694cbd4d06361d6f46b735a47daa9a77.tar.xz
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 520ad4a..a3dd601 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);
}