Block scan during BTCOEX operations.

Framework issues BTCOEXMODE 1/2 signifying the critical period
where the WiFi has to acquire the antenna during the coex
operations with BT. Thus use the same indication to also
block off channel operations , VIZ scan.

Change-Id: I82bcbc52408fb42a6b37a4480bab0e6a7aa64be9
CRs-Fixed: 584636
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 0d78c10..779b735 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -4692,6 +4692,13 @@
     v_U8_t staId = 0;
     v_U8_t *staMac = NULL;
 
+    if (TRUE == pHddCtx->btCoexModeSet)
+    {
+        VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
+           FL("BTCoex Mode operation in progress, Do not allow scan"));
+        return VOS_FALSE;
+    }
+
     status = hdd_get_front_adapter ( pHddCtx, &pAdapterNode );
 
     while ( NULL != pAdapterNode && VOS_STATUS_SUCCESS == status )