OSDN Git Service

staging: wfx: simplify hif_set_template_frame() usage
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:15:34 +0000 (16:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:56:30 +0000 (15:56 +0100)
commit094ecec9be6096960cb4ae6a6256759bbba7aa0a
treedc816e1647718aa3259292f59357358717690b93
parent397f36c1c786b70fa24a27fde7c425fcf34313fa
staging: wfx: simplify hif_set_template_frame() usage

The structure hif_mib_template_frame come from hardware API. It is not
intended to be manipulated in upper layers of the driver.

In add, the current code for hif_set_template_frame() is dumb. All the
difficult task is left to the caller. So, there is code to factorize
here.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-50-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_tx_mib.h
drivers/staging/wfx/scan.c
drivers/staging/wfx/sta.c