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, 31 Dec 2019 15:44:28 +0000 (16:44 +0100)
commit3a57f8d90185d7d04dfd96da357e87c73cbdc165
tree24ca76fcbca14abc69fdcc0be3a21e40cb52422d
parent1e457b63c763078bbaf2facb99cec11a83502b53
staging: wilc1000: check if device is initialzied before changing vif

[ Upstream commit 6df6f3849bb8f317bf2d52711aacea4292237ede ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c