wlan: Add diag event for scan blocked by TDLS.
Add diag event for EVENT_TDLS_SCAN_BLOCK. This event indicates if
scan is blocked because of TDLS.
Change-Id: I00dd9d2a54cbe054b400b2d1cb74c0e14b9a13d7
CRs-Fixed: 934456
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index a5adaea..a116087 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -13213,15 +13213,15 @@
dev,
#endif
request);
- if(status <= 0)
+ if (status <= 0)
{
- if(!status)
+ if (!status)
hddLog(VOS_TRACE_LEVEL_ERROR, "%s: TDLS in progress."
"scan rejected %d", __func__, status);
else
hddLog(VOS_TRACE_LEVEL_ERROR, "%s: TDLS teardown is ongoing %d",
__func__, status);
-
+ hdd_wlan_block_scan_by_tdls();
return status;
}
#endif