staging: wfx: allow to send commands to chip
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Thu, 19 Sep 2019 14:25:42 +0000 (14:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 08:46:10 +0000 (10:46 +0200)
commit4f8b7fabb15df3658564a98971fc67029be1815d
tree6817489a4dd84c269891c56763f99a5386ea40b1
parente16e7f0716a6ba9a690fc5229a6e35e00e03b805
staging: wfx: allow to send commands to chip

Chip has multiple input buffers and can handle multiple 802.11 frames
in parallel. However, other HIF command must be sent sequentially.
wsm_send_cmd() handles these requests.

This commit also add send_hif_cmd in debugfs. This file allows to send
arbitrary commands to chip. It can be used for debug and testing.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20190919142527.31797-12-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/Makefile
drivers/staging/wfx/bh.c
drivers/staging/wfx/debug.c
drivers/staging/wfx/debug.h
drivers/staging/wfx/hif_rx.c
drivers/staging/wfx/hif_tx.c [new file with mode: 0644]
drivers/staging/wfx/hif_tx.h [new file with mode: 0644]
drivers/staging/wfx/main.c
drivers/staging/wfx/wfx.h