summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Kumar Khandavalli <c_arunku@qti.qualcomm.com>2013-12-13 16:24:33 +0530
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-26 21:24:30 -0700
commitfa8aea10d7d1f8d7c13ccf971c65d91fbcec9655 (patch)
tree4b046494ee3af0505cbe7e5e8348e2881d05e6fd
parentbda79a893dfcd1746632b789125e7650359ed856 (diff)
wlan: HDD layer logging enchancement (Phase-1).
Added logs which should get printed when we are returning indefinitely in HDD connect path. Change-Id: I08cf84d8c94b980e0bcf9d6327589e17a16824e9 CRs-Fixed: 589205
-rw-r--r--CORE/HDD/src/wlan_hdd_assoc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index d5c697c93e91..99638ca4ecb5 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -3264,7 +3264,11 @@ static tANI_S32 hdd_ProcessGENIE(hdd_adapter_t *pAdapter,
// Validity checks
if ((gen_ie_len < VOS_MIN(DOT11F_IE_RSN_MIN_LEN, DOT11F_IE_WPA_MIN_LEN)) ||
(gen_ie_len > VOS_MAX(DOT11F_IE_RSN_MAX_LEN, DOT11F_IE_WPA_MAX_LEN)) )
+ {
+ hddLog(LOGE, "%s: Invalid DOT11F IE Length passed :%d",
+ __func__, gen_ie_len);
return -EINVAL;
+ }
// Type check
if ( gen_ie[0] == DOT11F_EID_RSN)
{
@@ -3272,6 +3276,8 @@ static tANI_S32 hdd_ProcessGENIE(hdd_adapter_t *pAdapter,
if ((gen_ie_len < DOT11F_IE_RSN_MIN_LEN ) ||
(gen_ie_len > DOT11F_IE_RSN_MAX_LEN) )
{
+ hddLog(LOGE, "%s: Invalid DOT11F RSN IE length :%d",
+ __func__, gen_ie_len);
return -EINVAL;
}
// Skip past the EID byte and length byte
@@ -3305,10 +3311,12 @@ static tANI_S32 hdd_ProcessGENIE(hdd_adapter_t *pAdapter,
{
if ( pBssid == NULL)
{
+ hddLog(LOGE, "%s: pBssid passed is NULL", __func__);
break;
}
if ( hdd_IsMACAddrNULL( (u_char *) pBssid->ether_addr_octet , 6))
{
+ hddLog(LOGE, "%s: Invalid MAC adrr", __func__);
break;
}
updatePMKCache = TRUE;
@@ -3337,6 +3345,8 @@ static tANI_S32 hdd_ProcessGENIE(hdd_adapter_t *pAdapter,
if ((gen_ie_len < DOT11F_IE_WPA_MIN_LEN ) ||
(gen_ie_len > DOT11F_IE_WPA_MAX_LEN))
{
+ hddLog(LOGE, "%s: Invalid DOT11F WPA IE length :%d",
+ __func__, gen_ie_len);
return -EINVAL;
}
// Skip past the EID byte and length byte - and four byte WiFi OUI