mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
net: wireless: bcmdhd: Call init_ioctl() only if was started properly
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
766aaa604c
commit
1720a91d03
|
|
@ -364,7 +364,8 @@ int wl_android_wifi_on(struct net_device *dev)
|
|||
sdioh_start(NULL, 0);
|
||||
ret = dhd_dev_reset(dev, FALSE);
|
||||
sdioh_start(NULL, 1);
|
||||
dhd_dev_init_ioctl(dev);
|
||||
if (!ret)
|
||||
dhd_dev_init_ioctl(dev);
|
||||
g_wifi_on = 1;
|
||||
}
|
||||
dhd_net_if_unlock(dev);
|
||||
|
|
@ -384,7 +385,7 @@ int wl_android_wifi_off(struct net_device *dev)
|
|||
|
||||
dhd_net_if_lock(dev);
|
||||
if (g_wifi_on) {
|
||||
dhd_dev_reset(dev, 1);
|
||||
ret = dhd_dev_reset(dev, TRUE);
|
||||
sdioh_stop(NULL);
|
||||
dhd_customer_gpio_wlan_ctrl(WLAN_RESET_OFF);
|
||||
g_wifi_on = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user