wlan:Add frame logging query command in connect timeout
Add mgmt frame query command in connect and assocfailure timeout.
Change-Id: I3a4ad709109c8cb11559eaceb649a65d8ad55c58
CRs-Fixed: 828137
diff --git a/CORE/HDD/inc/wlan_hdd_wext.h b/CORE/HDD/inc/wlan_hdd_wext.h
index c15445d..569fdaa 100644
--- a/CORE/HDD/inc/wlan_hdd_wext.h
+++ b/CORE/HDD/inc/wlan_hdd_wext.h
@@ -274,6 +274,12 @@
WEXT_SCAN_PENDING_MAX
} hdd_scan_pending_option_e;
+enum
+{
+ WLAN_HDD_GET_FRAME_LOG_CMD_CLEAR = 1<<0,
+ WLAN_HDD_GET_FRAME_LOG_CMD_SEND_AND_CLEAR = 1<<1,
+};
+
/*
* This structure contains the interface level (granularity)
* configuration information in support of wireless extensions.
@@ -455,6 +461,7 @@
int hdd_setBand(struct net_device *dev, u8 ui_band);
int hdd_setBand_helper(struct net_device *dev, const char *command);
+VOS_STATUS wlan_hdd_get_frame_logs(hdd_adapter_t *pAdapter, v_U8_t flag);
#endif // __WEXT_IW_H__
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index 73b8c88..8d289ee 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -66,6 +66,7 @@
#include "sme_Api.h"
#include "wlan_hdd_hostapd.h"
#include "vos_utils.h"
+#include <wlan_hdd_wext.h>
v_BOOL_t mibIsDot11DesiredBssTypeInfrastructure( hdd_adapter_t *pAdapter );
@@ -1876,6 +1877,9 @@
MAC_ADDR_ARRAY(pWextState->req_bssId),
roamResult, roamStatus);
+ wlan_hdd_get_frame_logs(pAdapter,
+ WLAN_HDD_GET_FRAME_LOG_CMD_SEND_AND_CLEAR);
+
/* Set connection state to eConnectionState_NotConnected only when CSR
* has completed operation - with a ASSOCIATION_FAILURE status
*/
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 351befe..8886adc 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -11037,6 +11037,8 @@
hdd_station_ctx_t *pHddStaCtx;
pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
+ wlan_hdd_get_frame_logs(pAdapter, WLAN_HDD_GET_FRAME_LOG_CMD_CLEAR);
+
if (HDD_WMM_USER_MODE_NO_QOS ==
(WLAN_HDD_GET_CTX(pAdapter))->cfg_ini->WmmMode)
{
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 8872172..4c3a7d1 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -385,12 +385,6 @@
MCC_TOO_CLOSE_MARGIN_CFG_PARAM,
};
-enum
-{
- WLAN_HDD_GET_FRAME_LOG_CMD_CLEAR = 1<<0,
- WLAN_HDD_GET_FRAME_LOG_CMD_SEND_AND_CLEAR = 1<<1,
-};
-
int hdd_validate_mcc_config(hdd_adapter_t *pAdapter, v_UINT_t staId,
v_UINT_t arg1, v_UINT_t arg2, v_UINT_t arg3);
@@ -926,7 +920,7 @@
{
/* the caller presumably timed out so there is nothing we can do */
spin_unlock(&hdd_context_lock);
- hddLog(VOS_TRACE_LEVEL_ERROR,
+ hddLog(VOS_TRACE_LEVEL_WARN,
"%s: Invalid context, pAdapter [%p] magic [%08x]",
__func__, pAdapter, pGetFrameLogCtx->magic);
return;