diff options
| author | Ajay Singh <ajay.kathat@microchip.com> | 2022-07-20 16:03:05 +0000 |
|---|---|---|
| committer | Kalle Valo <kvalo@kernel.org> | 2022-07-27 15:58:10 +0300 |
| commit | ad3e683ae4dc311baea7a8724315b6d8d9a7aaa9 (patch) | |
| tree | b27d0dc54de86983d44c6b757496daf88eb0ade7 /drivers/net/wireless/microchip/wilc1000/netdev.c | |
| parent | 12fb1ae537a416b77ac9cbaefa6dd9dacaa27ed0 (diff) | |
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
Diffstat (limited to 'drivers/net/wireless/microchip/wilc1000/netdev.c')
| -rw-r--r-- | drivers/net/wireless/microchip/wilc1000/netdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index 7879446f282f..2de5838a4426 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -780,6 +780,7 @@ static int wilc_mac_close(struct net_device *ndev) if (vif->ndev) { netif_stop_queue(vif->ndev); + wilc_handle_disconnect(vif); wilc_deinit_host_int(vif->ndev); } |