summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2019-02-18 17:05:23 +0800
committerbings <bings@codeaurora.org>2019-02-27 16:36:01 +0800
commitde53a4bc574d8888fcf11ee330dd5896b7c75d9c (patch)
tree14c862655fa542f5e1a018f26c99f7a487cd2510
parent5c0f5b708cc1b3b5fcc40ffef150d1af65b3bc17 (diff)
qcacld-2.0: Remove the ssidlen check in get_sta_stats
propagation from qcacld-3.0 to qcacld-2.0 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: 2406181
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 0dd96ff5452a..7fac77f2e08d 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -27019,7 +27019,6 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
{
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_U8 rate_flags;
hdd_context_t *pHddCtx = (hdd_context_t*) wiphy_priv(wiphy);
@@ -27069,11 +27068,9 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
return wlan_hdd_get_sap_stats(pAdapter, 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;
}