staging: wilc1000: wilc_set_wfi_drv_handler: pass vif index
authorGlen Lee <glen.lee@atmel.com>
Mon, 21 Dec 2015 05:18:44 +0000 (14:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:21:09 +0000 (13:21 -0800)
commit31f0f697dddd739a0581ca373d53b648ba50c00b
tree2aef30e4f847035d1ef23194a753b0d812a364d3
parenteb9939b76007ab6dfa14f6664e6cf4deda9c56cd
staging: wilc1000: wilc_set_wfi_drv_handler: pass vif index

Pass index of vif instead of hif_drv. wilc_get_vif_idx is used to get correct
index of vif.
In the handler function handle_set_wfi_drv_handler, use vif instead of hif_drv,
and use hif_drv_handler->handler instead of hif_drv when deinitialize wilc
device.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c