TDLS: TDLS Scan Coexistence Implementation

This commit introduces TDLS Link and Scan
Coexistence functionality.
Scan coexistence on the TDLS Link is supported
provided a single TDLS session is present, DUT
is not Buffer STA capable and the TDLS peer is
Buffer Sta capable.
This capability shall be enabled based on the
gEnableTDLSScanCoexistence parameter.

CRs-Fixed: 668619
Change-Id: I6dad95ce4f453d774b4f6bea99cccca46b95aa5f
diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c
index a2e6fae..8ee6f80 100644
--- a/CORE/HDD/src/wlan_hdd_tx_rx.c
+++ b/CORE/HDD/src/wlan_hdd_tx_rx.c
@@ -1916,7 +1916,11 @@
         pAdapterNode = pNext;
     }
 
-    if (pHddCtx->issplitscan_enabled)
+    /* If TDLSScanCoexistence is enabled, then the TDLS module shall take care
+     * of disabling the split scan and thus do not disable the same when the
+     * low TXRX condition is met.
+     */
+    if ((pHddCtx->isTdlsScanCoexistence == FALSE) && (pHddCtx->issplitscan_enabled))
     {
        VOS_TRACE( VOS_MODULE_ID_HDD_DATA, VOS_TRACE_LEVEL_ERROR,
                         "%s: Disable split scan", __func__);