From ea0df50852e44a49c3defb9071542aa34daed45d Mon Sep 17 00:00:00 2001 From: Abhishek Ambure Date: Mon, 2 Mar 2020 21:15:50 +0530 Subject: [PATCH] qcacld-3.0: Update roam count in LFR3 roaming User get BSS stats for the command response of GETBSSINFO. Driver saves BSS info of the connected AP in HDD's station context. For every association completion, driver updates BSS info stats. In LFR3 roaming, Roam sync state in the CSR layer is set to 1 if STA associates with new AP because of roaming. Thus for LFR3 roaming, driver uses roam sync state to update roam count while processing association completion. Change-Id: Ia75f4c7b049a0546b2922d890cb3c12f6f4513a2 CRs-Fixed: 2632421 --- core/hdd/src/wlan_hdd_assoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 6c794f921f..10f7b94d4a 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -928,7 +928,8 @@ static void hdd_save_bss_info(struct hdd_adapter *adapter, } else { hdd_sta_ctx->conn_info.conn_flag.ht_present = false; } - if (roam_info->reassoc) + if (roam_info->reassoc || + hdd_is_roam_sync_in_progress(roam_info)) hdd_sta_ctx->conn_info.roam_count++; if (roam_info->hs20vendor_ie.present) { hdd_sta_ctx->conn_info.conn_flag.hs20_present = true;