staging: wilc1000: New cfg packet format in handle_set_wfi_drv_handler
authorAditya Shankar <aditya.shankar@microchip.com>
Thu, 8 Jun 2017 05:07:23 +0000 (10:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 10:06:57 +0000 (12:06 +0200)
commit46949b48568b175be23a844f6e7703f4b4f2dd14
tree3af315ce3ce77d7991f3bbacf90e22c6e7afe479
parent38d0353c6e5134e1a1e06a72909aab0e6187e5cc
staging: wilc1000: New cfg packet format in handle_set_wfi_drv_handler

Change the config packet format used in handle_set_wfi_drv_handler()
to align the host driver with the new format used in the wilc firmware.

The change updates the format in which the host driver provides the
firmware with the drv_handler index and also uses two new
fields viz. "mode" and 'name" in the config packet along with this index
to directly provide details about the interface and its mode to the
firmware instead of having multiple if-else statements in the host driver
to decide which interface to configure.

This change requires users to move to the newer version of the wilc
firmware(14.02 or higher) available on the vendor tree on github or on the
linux-firmware project. The existing firmware files on the linux-firmware
project are very old and best not used.

Signed-off-by: Aditya Shankar <aditya.shankar@microchip.com>
Reviewed-by: Arend Van Spriel <arend.vanspriel@broadcom.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/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan_if.h