From 9dab73797c1effca3fbec4b75582a65d57bbaf53 Mon Sep 17 00:00:00 2001 From: Lihua Liu Date: Wed, 16 Sep 2020 15:55:36 +0800 Subject: [PATCH] qcacld-3.0: Clear reassoc_scenario flag when ASSOCIATION_COMPLETION Currently, sta_ctx->hdd_reassoc_scenario is set when ROAM_FT_START and cleared when ROAM_SET_KEY_COMPLETE. But for some roaming case, no KEY exchange happen after roaming complete. Then this flag is not cleared, which cause failure to get station stats in wlan_hdd_get_sta_stats, such as RSSI info. To address this, clear sta_ctx->hdd_reassoc_scenario when handling ROAM_ASSOCIATION_COMPLETION. Change-Id: I0b96246afe227023fd52df93f27bed23ffd7cb1c CRs-Fixed: 2763178 --- core/hdd/src/wlan_hdd_assoc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 6ef1898cb307..bc2bfb51937d 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -4496,6 +4496,12 @@ hdd_sme_roam_callback(void *context, struct csr_roam_info *roam_info, } else { wlan_hdd_ft_set_key_delay(hdd_ctx->mac_handle, adapter); } + if (sta_ctx->ft_carrier_on) { + sta_ctx->hdd_reassoc_scenario = false; + hdd_debug("hdd_reassoc_scenario set to: %d session: %d", + sta_ctx->hdd_reassoc_scenario, + adapter->vdev_id); + } qdf_ret_status = hdd_association_completion_handler(adapter, roam_info, roam_id, roam_status,