mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacld-3.0: Increase hdd disconnect wait time
wlan_hdd_disconnect wait time is 5 second. WMA_VDEV_STOP_REQUEST_TIMEOUT is 6 second.There have 1 sec gap. Which means if timeout happend, wlan_hdd_disconnect will exit before wma_vdev_resp_timer is invoked. wma_vdev_resp_timer will trigger SME to invoke callback hdd_dis_connect_handler to release vdev obj ref count. If unload driver during the time gap, vdev cannot destory successfully because hdd_dis_connect_handler haven't be called. rmmod will wait for wlan_hdd_disconnect exiting then unload driver. So increase hdd disconnect wait time. Make sure wlan_hdd_disconnect exit after lower layer timeout and hdd disconnect handler be called. Change-Id: I8fddae200ed675b93c0f300a9e28dbbfd3a976a6 CRs-Fixed: 2201448
This commit is contained in:
parent
5c673fc694
commit
7bf72b44c5
1 changed files with 5 additions and 2 deletions
|
|
@ -158,10 +158,13 @@
|
|||
#define ACS_IN_PROGRESS (0)
|
||||
|
||||
/** Maximum time(ms)to wait for disconnect to complete **/
|
||||
/* This value should be larger than the timeout used by WMA to wait for
|
||||
* stop vdev response from FW
|
||||
*/
|
||||
#ifdef QCA_WIFI_3_0_EMU
|
||||
#define WLAN_WAIT_TIME_DISCONNECT 5000
|
||||
#define WLAN_WAIT_TIME_DISCONNECT 7000
|
||||
#else
|
||||
#define WLAN_WAIT_TIME_DISCONNECT 5000
|
||||
#define WLAN_WAIT_TIME_DISCONNECT 7000
|
||||
#endif
|
||||
#define WLAN_WAIT_DISCONNECT_ALREADY_IN_PROGRESS 1000
|
||||
#define WLAN_WAIT_TIME_STOP_ROAM 4000
|
||||
|
|
|
|||
Loading…
Reference in a new issue