]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: check if device is initialzied before changing vif
authorAdham Abozaeid <adham.abozaeid@microchip.com>
Mon, 28 Oct 2019 18:40:26 +0000 (18:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:02:35 +0000 (09:02 +0100)
commit4c11a6984d2ab5004a55d9ab72134504b28e1f31
treeaa5abcea854fe900eddae34ad47654e8db9a5fe5
parent45f745a9131293a29185c3f46a81e7bd97b10322
staging: wilc1000: check if device is initialzied before changing vif

When killing hostapd, the interface is closed which deinitializes the
device, then change virtual interface is called.
This change checks if the device is initialized before sending the
interface change command to the device

Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Link: https://lore.kernel.org/r/20191028184019.31194-1-adham.abozaeid@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c