qcacld-3.0: Dont send add peer before peer is deleted in firmware

When IBSS peer is deleted, host send peer delete to firmware
and continue with delete in host. In this case we may hit the
situation that peer is not deleted in firmware and host tries to
add the peer again.

To fix this wait for peer delete resp before proceeding with host
cleanup

Change-Id: I500e4c4a840156295aa00125643f87e23b5168b8
CRs-Fixed: 2047244
diff --git a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h
index 9051fa2..a3a3a23 100644
--- a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h
+++ b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2012, 2014, 2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2012, 2014-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -46,6 +46,21 @@
 				tpPESession);
 tSirRetStatus lim_ibss_sta_add(tpAniSirGlobal, void *, tpPESession);
 tSirRetStatus lim_ibss_add_sta_rsp(tpAniSirGlobal, void *, tpPESession);
+
+/**
+ * lim_process_ibss_del_sta_rsp()- Handle ibss delete
+ * peer resp from firmware
+ *
+ * @mac_ptr: Pointer to Global MAC structure
+ * @lim_msg: delete sta response
+ * @pe_session: pe session
+ *
+ * Return: None
+ *
+ */
+void lim_process_ibss_del_sta_rsp(tpAniSirGlobal mac_ctx,
+	struct scheduler_msg *lim_msg,
+	tpPESession pe_session);
 tLimIbssPeerNode *lim_ibss_peer_find(tpAniSirGlobal pMac, tSirMacAddr macAddr);
 void lim_ibss_del_bss_rsp(tpAniSirGlobal, void *, tpPESession);
 void lim_ibss_del_bss_rsp_when_coalescing(tpAniSirGlobal, void *, tpPESession);