Fix for the tdls discovery attempts one less than ini

Change the pre increment of discovery attempts to post increment
while checking for discovery attempte count in update_peer_cb
for discovering unknown peer.

CRs-Fixed: 468576
Change-Id: I7130fc8aa3ca44c64ed56121a39ee056234dfb40
diff --git a/CORE/HDD/src/wlan_hdd_tdls.c b/CORE/HDD/src/wlan_hdd_tdls.c
index dfea415..676666a 100644
--- a/CORE/HDD/src/wlan_hdd_tdls.c
+++ b/CORE/HDD/src/wlan_hdd_tdls.c
@@ -350,7 +350,7 @@
                     if (curr_peer->tx_pkt >=
                             pHddTdlsCtx->threshold_config.tx_packet_n) {
 
-                        if (++curr_peer->discovery_attempt <
+                        if (curr_peer->discovery_attempt++ <
                                  pHddTdlsCtx->threshold_config.discovery_tries_n) {
                             VOS_TRACE( VOS_MODULE_ID_HDD, TDLS_LOG_LEVEL, "TDLS UNKNOWN discover ");
                             wlan_hdd_tdls_pre_setup(pHddTdlsCtx, curr_peer);