Merge "wlan: Remove the ssidlen check in get_sta_stats" into wlan-driver.lnx.1.0
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index bf90fe1..33eeebd 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -18427,7 +18427,6 @@
{
hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR( dev );
hdd_station_ctx_t *pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
- int ssidlen = pHddStaCtx->conn_info.SSID.SSID.length;
tANI_U32 rate_flags;
hdd_context_t *pHddCtx = (hdd_context_t*) wiphy_priv(wiphy);
@@ -18466,11 +18465,9 @@
if (pAdapter->device_mode == WLAN_HDD_SOFTAP)
return wlan_hdd_get_sap_stats(pAdapter, mac, sinfo);
- if ((eConnectionState_Associated != pHddStaCtx->conn_info.connState) ||
- (0 == ssidlen))
+ if ((eConnectionState_Associated != pHddStaCtx->conn_info.connState))
{
- hddLog(VOS_TRACE_LEVEL_INFO, "%s: Not associated or"
- " Invalid ssidlen, %d", __func__, ssidlen);
+ hddLog(VOS_TRACE_LEVEL_INFO, "%s: Not associated", __func__);
/*To keep GUI happy*/
return 0;
}