staging: wilc1000: fix bug when changing virtual interface

This patch fixes a bug connection error when changing virtual interface to p2p.
Variable quit needs to be set 0 when wilc is reinitialized again.

Fixes : 67e2a07ed8 ("staging: wilc1000: move all of wilc_wlan_dev_t to struct wilc")
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Glen Lee 2016-01-25 16:35:05 +09:00 committed by Greg Kroah-Hartman
parent 734fadce60
commit 0c94df0236
1 changed files with 2 additions and 0 deletions

View File

@ -1588,6 +1588,8 @@ int wilc_wlan_init(struct net_device *dev)
PRINT_D(INIT_DBG, "Initializing WILC_Wlan ...\n");
wilc->quit = 0;
if (!wilc->hif_func->hif_init(wilc)) {
ret = -EIO;
goto _fail_;