Commit 0c94df02 authored by Glen Lee's avatar Glen Lee Committed by Greg Kroah-Hartman

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 : 67e2a07e ("staging: wilc1000: move all of wilc_wlan_dev_t to struct wilc")
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 734fadce
...@@ -1588,6 +1588,8 @@ int wilc_wlan_init(struct net_device *dev) ...@@ -1588,6 +1588,8 @@ int wilc_wlan_init(struct net_device *dev)
PRINT_D(INIT_DBG, "Initializing WILC_Wlan ...\n"); PRINT_D(INIT_DBG, "Initializing WILC_Wlan ...\n");
wilc->quit = 0;
if (!wilc->hif_func->hif_init(wilc)) { if (!wilc->hif_func->hif_init(wilc)) {
ret = -EIO; ret = -EIO;
goto _fail_; goto _fail_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment