wlan: Logging Enhancement in Connect/Disconnect.
In HDD Connect/Disconnect added INFO logs for printing:
1) CB mode selected
2) Disconnect ReasonCode
3) Connection State changes
All these above information will be logged as a part of
this gerrit.
Change-Id: I38556849b4f5072f0f5807953f85b70545ceed97
CRs-Fixed: 612312
(cherry picked from commit 3b001cf787966886471eeb815433ac68c9fbd2c3)
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index 77bf8cc..1861cc2 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -130,6 +130,8 @@
eConnectionState connState )
{
// save the new connection state
+ hddLog(LOG1, FL("ConnectionState Changed from oldState:%d to State:%d"),
+ pHddStaCtx->conn_info.connState,connState);
pHddStaCtx->conn_info.connState = connState;
}
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 3567772..cfe9b51 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5476,6 +5476,8 @@
(WLAN_HDD_GET_CTX(pAdapter))->cfg_ini->dot11Mode;
eHddDot11Mode hddDot11Mode = iniDot11Mode;
+ hddLog(LOG1, FL("Channel Bonding Mode Selected is %u"),
+ iniDot11Mode);
switch ( iniDot11Mode )
{
case eHDD_DOT11_MODE_AUTO:
@@ -5568,6 +5570,8 @@
vos_mem_zero((void *)(pRoamProfile->BSSIDs.bssid),WNI_CFG_BSSID_LEN);
}
+ hddLog(LOG1, FL("Connect to SSID: %s opertating Channel: %u"),
+ pRoamProfile->SSIDs.SSIDList->SSID.ssId, operatingChannel);
if ((IW_AUTH_WPA_VERSION_WPA == pWextState->wpaVersion) ||
(IW_AUTH_WPA_VERSION_WPA2 == pWextState->wpaVersion))
{
@@ -5635,6 +5639,7 @@
{
hdd_select_cbmode(pAdapter,operatingChannel);
}
+
/* change conn_state to connecting before sme_RoamConnect(), because sme_RoamConnect()
* has a direct path to call hdd_smeRoamCallback(), which will change the conn_state
* If direct path, conn_state will be accordingly changed to NotConnected or Associated
@@ -6575,6 +6580,7 @@
INIT_COMPLETION(pAdapter->disconnect_comp_var);
/*issue disconnect*/
+
status = sme_RoamDisconnect( WLAN_HDD_GET_HAL_CTX(pAdapter),
pAdapter->sessionId, reason);
@@ -6706,6 +6712,7 @@
}
}
#endif
+ hddLog(LOG1, FL("Disconnecting with reasoncode:%u"), reasonCode);
status = wlan_hdd_disconnect(pAdapter, reasonCode);
if ( 0 != status )
{