wlan: check if tdls exists when tdls peer timer expires.

when wlan_hdd_tdls_initiator_wait_cb gets called, the tdls peer
might not exists as there is a chance that the peer may get deleted
as part of disconnection.

So check if tdls exists before accessing the peer in
wlan_hdd_tdls_initiator_wait_cb.

Change-Id: I90a7a765997bf3641bf2c8de2f3c9e5068e89122
CRs-Fixed: 906303
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 12ed8ab..34d39f1 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -16420,6 +16420,16 @@
                         if (pTdlsPeer->is_responder == 0)
                         {
                             v_U8_t staId = (v_U8_t)pTdlsPeer->staId;
+                            tdlsConnInfo_t *tdlsInfo;
+
+                            tdlsInfo = wlan_hdd_get_conn_info(pHddCtx, staId);
+
+                            /* Initialize initiator wait callback */
+                            vos_timer_init(
+                                    &pTdlsPeer->initiatorWaitTimeoutTimer,
+                                    VOS_TIMER_TYPE_SW,
+                                    wlan_hdd_tdls_initiator_wait_cb,
+                                    tdlsInfo);
 
                             wlan_hdd_tdls_timer_restart(pAdapter,
                                                         &pTdlsPeer->initiatorWaitTimeoutTimer,