From cd02bae0a0fbab35c0a63866c598eef270a29773 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 12 Jul 2020 00:38:06 +0000 Subject: [PATCH] Fix connection on resume when CONFIG_ANDROID enabled --- os_dep/linux/os_intfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index aea29b5..1085d6c 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -3890,7 +3890,6 @@ static int netdev_close(struct net_device *pnetdev) if (pnetdev) rtw_netif_stop_queue(pnetdev); -#ifndef CONFIG_ANDROID /* s2. */ LeaveAllPowerSaveMode(padapter); rtw_disassoc_cmd(padapter, 500, RTW_CMDF_WAIT_ACK); @@ -3900,7 +3899,8 @@ static int netdev_close(struct net_device *pnetdev) rtw_free_assoc_resources_cmd(padapter, _TRUE, RTW_CMDF_WAIT_ACK); /* s2-4. */ rtw_free_network_queue(padapter, _TRUE); -#endif + // Close LED + rtw_led_control(padapter, LED_CTL_POWER_OFF); } #ifdef CONFIG_BR_EXT