qcacld-3.0: Fix wait for disconnect during connect req
Even when vdev is in disconnected state, during connect it tries to wait for disconnect which lead to 1 sec delay in connect. So call wait for disconnect only if vdev is not already disconnected. Change-Id: Ib7a9b4628b0e10f71bdebe4b74a70d648825d9d3 CRs-Fixed: 2609462
This commit is contained in:
@@ -19886,6 +19886,11 @@ static int wlan_hdd_wait_for_disconnect(mac_handle_t mac_handle,
|
|||||||
unsigned long rc;
|
unsigned long rc;
|
||||||
uint32_t wait_time = SME_DISCONNECT_TIMEOUT;
|
uint32_t wait_time = SME_DISCONNECT_TIMEOUT;
|
||||||
|
|
||||||
|
/* Return if already disconnected */
|
||||||
|
if (sta_ctx->conn_info.conn_state == eConnectionState_NotConnected ||
|
||||||
|
sta_ctx->conn_info.conn_state == eConnectionState_IbssDisconnected)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* If already in disconnecting state just wait for its completion */
|
/* If already in disconnecting state just wait for its completion */
|
||||||
if (sta_ctx->conn_info.conn_state == eConnectionState_Disconnecting)
|
if (sta_ctx->conn_info.conn_state == eConnectionState_Disconnecting)
|
||||||
goto wait_for_disconnect;
|
goto wait_for_disconnect;
|
||||||
@@ -19936,7 +19941,7 @@ static void wlan_hdd_wait_for_roaming(mac_handle_t mac_handle,
|
|||||||
struct hdd_context *hdd_ctx;
|
struct hdd_context *hdd_ctx;
|
||||||
unsigned long rc;
|
unsigned long rc;
|
||||||
|
|
||||||
if (adapter->device_mode != QDF_STA_MODE)
|
if (adapter->device_mode != QDF_STA_MODE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||||
|
Reference in New Issue
Block a user