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) if (pnetdev)
rtw_netif_stop_queue(pnetdev); rtw_netif_stop_queue(pnetdev);
#ifndef CONFIG_ANDROID
/* s2. */ /* s2. */
LeaveAllPowerSaveMode(padapter); LeaveAllPowerSaveMode(padapter);
rtw_disassoc_cmd(padapter, 500, RTW_CMDF_WAIT_ACK); 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); rtw_free_assoc_resources_cmd(padapter, _TRUE, RTW_CMDF_WAIT_ACK);
/* s2-4. */ /* s2-4. */
rtw_free_network_queue(padapter, _TRUE); rtw_free_network_queue(padapter, _TRUE);
#endif // Close LED
rtw_led_control(padapter, LED_CTL_POWER_OFF);
} }
#ifdef CONFIG_BR_EXT #ifdef CONFIG_BR_EXT