wifi: wilc1000: cancel the connect operation during interface down
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 20 Jul 2022 16:03:05 +0000 (16:03 +0000)
committerKalle Valo <kvalo@kernel.org>
Wed, 27 Jul 2022 12:58:10 +0000 (15:58 +0300)
commitad3e683ae4dc311baea7a8724315b6d8d9a7aaa9
treeb27d0dc54de86983d44c6b757496daf88eb0ade7
parent12fb1ae537a416b77ac9cbaefa6dd9dacaa27ed0
wifi: wilc1000: cancel the connect operation during interface down

Cancel the ongoing connection request to avoid any issue if the
interface is set down before the connection request is completed.
host_int_handle_disconnect was already available, so renamed it and used
the same API for 'ndio_close' cb.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220720160302.231516-6-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/hif.c
drivers/net/wireless/microchip/wilc1000/hif.h
drivers/net/wireless/microchip/wilc1000/netdev.c