From 9ffb043af4fdbcd6941237fc781b87953293b783 Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Fri, 3 Aug 2018 10:32:34 +0800 Subject: [PATCH] qcacld-3.0: Remove the ssidlen check in get_sta_stats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per protocol definition, the ssid length in OWE bss’s IE is zero when in OWE transition mode. And the api wlan_hdd_get_sta_stats thinks it is invalid ssidlen and returns directly. It causes the uplayer can not get stats info. Change-Id: I20eb7aa79ce25a4b66d9be093510eb414d4fca42 CRs-Fixed: 2285542 --- core/hdd/src/wlan_hdd_stats.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 4076144217b4..f7914c7c2de7 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -3956,7 +3956,6 @@ static int wlan_hdd_get_sta_stats(struct wiphy *wiphy, struct station_info *sinfo) { struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); - int ssidlen = sta_ctx->conn_info.SSID.SSID.length; uint8_t rate_flags; uint8_t mcs_index; @@ -3989,10 +3988,8 @@ static int wlan_hdd_get_sta_stats(struct wiphy *wiphy, enum data_rate_11ac_max_mcs vht_max_mcs; int32_t rcpi_value; - if ((eConnectionState_Associated != sta_ctx->conn_info.connState) || - (0 == ssidlen)) { - hdd_debug("Not associated or Invalid ssidlen, %d", - ssidlen); + if (eConnectionState_Associated != sta_ctx->conn_info.connState) { + hdd_debug("Not associated"); /*To keep GUI happy */ return 0; }