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_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 8a2e3ce..8cd8c77 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -3152,16 +3152,38 @@
else if (strncmp(command, "BTCOEXMODE", 10) == 0 )
{
char *dhcpPhase;
- dhcpPhase = command + 12;
+ dhcpPhase = command + 11;
if ('1' == *dhcpPhase)
{
+ VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
+ FL("BTCOEXMODE %d"), *dhcpPhase);
+
+ pHddCtx->btCoexModeSet = TRUE;
+
+ /* Firmware failing to process DHCP START/STOP indications.
+ * So, for now commentig below code, once issue is resolved,
+ * follwing will be uncommented.
+ */
+ #if 0
sme_DHCPStartInd(pHddCtx->hHal, pAdapter->device_mode,
pAdapter->macAddressCurrent.bytes);
+ #endif
}
else if ('2' == *dhcpPhase)
{
+ VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
+ FL("BTCOEXMODE %d"), *dhcpPhase);
+
+ pHddCtx->btCoexModeSet = FALSE;
+
+ /* Firmware failing to process DHCP START/STOP indications.
+ * So, for now commentig below code, once issue is resolved,
+ * follwing will be uncommented.
+ */
+ #if 0
sme_DHCPStopInd(pHddCtx->hHal, pAdapter->device_mode,
pAdapter->macAddressCurrent.bytes);
+ #endif
}
}
else if (strncmp(command, "SCAN-ACTIVE", 11) == 0)