1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 15:14:02 +00:00

Fix connection on resume when CONFIG_ANDROID enabled

This commit is contained in:
kimocoder 2020-07-12 00:38:06 +00:00
parent 4339edf38f
commit cd02bae0a0

View File

@ -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