summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_wlan.c
diff options
context:
space:
mode:
authorGlen Lee2016-01-25 08:35:05 +0100
committerGreg Kroah-Hartman2016-02-04 00:25:40 +0100
commit0c94df023602803fe4eaeb655510f5230b245beb (patch)
tree67e065978f5010ff60da24a3ccc3b5390b47758a /drivers/staging/wilc1000/wilc_wlan.c
parentstaging: wilc1000: remove over-commenting (diff)
downloadkernel-qcow2-linux-0c94df023602803fe4eaeb655510f5230b245beb.tar.gz
kernel-qcow2-linux-0c94df023602803fe4eaeb655510f5230b245beb.tar.xz
kernel-qcow2-linux-0c94df023602803fe4eaeb655510f5230b245beb.zip
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 : 67e2a07ed800 ("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>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan.c')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c
index 0b62cc5df488..07627b6ef8ec 100644
--- a/drivers/staging/wilc1000/wilc_wlan.c
+++ b/drivers/staging/wilc1000/wilc_wlan.c
@@ -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_;