OSDN Git Service

staging: wfx: simplify hif_scan() usage
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:15:32 +0000 (16:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:56:27 +0000 (15:56 +0100)
commit945ce30aa52beec7eb01f3bcaf564ef60c46554a
treec6e7be7cab1fc20a9e6e4709a8e00fd13dc7cc39
parent1a53df55346e1381406a6f4d161aa5acfa99a01c
staging: wfx: simplify hif_scan() usage

The structures hif_req_start_scan and hif_ssid_def come from hardware
API. It is not intended to be manipulated in upper layers of the driver.

So, this patch relocate handling of theses structures to hif_scan()
(the low level function). This change also allows to drop struct
wfx_scan_params.

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