summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex/util.c
diff options
context:
space:
mode:
authorGanapathi Bhat <gbhat@marvell.com>2018-05-24 16:36:28 +0530
committerKalle Valo <kvalo@codeaurora.org>2018-05-29 10:22:01 +0300
commit618fd1ed17d4cf193d85747c04a8b836b8fc107e (patch)
tree00de6c36118fd5a3d103ead40bd1cbda64179cf4 /drivers/net/wireless/marvell/mwifiex/util.c
parenta53e8f3edaa0f28458f37dc5654e1912a8a00f26 (diff)
downloadop-kernel-dev-618fd1ed17d4cf193d85747c04a8b836b8fc107e.zip
op-kernel-dev-618fd1ed17d4cf193d85747c04a8b836b8fc107e.tar.gz
mwifiex: avoid exporting mwifiex_send_cmd
This is a follow-up patch for commit 21c5c83ce833 ("mwifiex: support sysfs initiated device coredump"). Let us avoid exporting mwifiex_send_cmd and instead use a utility function mwifiex_fw_dump_event to achive the work. Signed-off-by: Ganapathi Bhat <gbhat@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/util.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/util.c b/drivers/net/wireless/marvell/mwifiex/util.c
index 51ccf10..6dd2128 100644
--- a/drivers/net/wireless/marvell/mwifiex/util.c
+++ b/drivers/net/wireless/marvell/mwifiex/util.c
@@ -757,3 +757,10 @@ void *mwifiex_alloc_dma_align_buf(int rx_len, gfp_t flags)
return skb;
}
EXPORT_SYMBOL_GPL(mwifiex_alloc_dma_align_buf);
+
+void mwifiex_fw_dump_event(struct mwifiex_private *priv)
+{
+ mwifiex_send_cmd(priv, HostCmd_CMD_FW_DUMP_EVENT, HostCmd_ACT_GEN_SET,
+ 0, NULL, true);
+}
+EXPORT_SYMBOL_GPL(mwifiex_fw_dump_event);
OpenPOWER on IntegriCloud