qcacld-3.0: Stop peer assoc confirm timer in case of peer assoc failure

As part of tdls peer assoc request, WMI_SERVICE_PEER_ASSOC_CONF is
checked and a timer of 6 sec is started. But, in case of any failure
for peer assoc in host, This is not stopped and waited for timer to
expire and sends the response with failure status.

Stop the peer assoc confirm timer and send the add sta response with
failure status in case of any failure in host.

Change-Id: If6ba6aa1297afaea1fd86bf406dcbb6e4e461d25
CRs-Fixed: 2345086
This commit is contained in:
Bala Venkatesh 2018-11-05 17:47:35 +05:30 committed by nshrivas
parent 92bd838132
commit fc0dfb7865
2 changed files with 3 additions and 6 deletions

View File

@ -237,12 +237,6 @@ enum hdd_driver_flags {
/** Maximum time(ms) to wait for target to be ready for suspend **/
#define WLAN_WAIT_TIME_READY_TO_SUSPEND 2000
/** Maximum time(ms) to wait for tdls add sta to complete **/
#define WAIT_TIME_TDLS_ADD_STA 1500
/** Maximum time(ms) to wait for tdls del sta to complete **/
#define WAIT_TIME_TDLS_DEL_STA 1500
/** Maximum time(ms) to wait for Link Establish Req to complete **/
#define WAIT_TIME_TDLS_LINK_ESTABLISH_REQ 1500

View File

@ -4950,6 +4950,9 @@ static void wma_add_tdls_sta(tp_wma_handle wma, tpAddStaParams add_sta)
wma_remove_peer(wma, add_sta->staMac,
add_sta->smesessionId, peer, false);
cdp_peer_add_last_real_peer(soc, pdev, vdev, &peer_id);
wma_remove_req(wma, add_sta->smesessionId,
WMA_PEER_ASSOC_CNF_START);
peer_assoc_cnf = false;
goto send_rsp;
}