qcacld-3.0: Remove the ssidlen check in get_sta_stats
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user