From 1c38a47b6121b63f64b4178b57dca3f90acee347 Mon Sep 17 00:00:00 2001 From: Vulupala Shashank Reddy Date: Fri, 5 Feb 2021 18:10:21 +0530 Subject: [PATCH] qcacld-3.0: Update rssi and seqno as part of roam sync indication Customer tries to trigger quick connect (connection without scan) just after roaming and reading scan_cache_entry parameters. But currently the scan_cache_entry parameters followed by roam sync event are not filled properly. To Fix this fill Rssi from roam sync indication fixed parameters and fill seqno from frame mac header during roam sync indication. Change-Id: Iebe817ac996ecca3998bcf25e62304797a70ea2b CRs-Fixed: 2870742 --- core/mac/src/pe/lim/lim_api.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 95d20703dc06..6337d534b324 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -2150,6 +2150,7 @@ lim_roam_fill_bss_descr(struct mac_context *mac, sizeof(bss_desc_ptr->length) + ie_len); bss_desc_ptr->fProbeRsp = !roam_synch_ind_ptr->isBeacon; + bss_desc_ptr->rssi = roam_synch_ind_ptr->rssi; /* Copy Timestamp */ bss_desc_ptr->scansystimensec = qdf_get_monotonic_boottime_ns(); if (parsed_frm_ptr->he_op.oper_info_6g_present) { @@ -2186,6 +2187,11 @@ lim_roam_fill_bss_descr(struct mac_context *mac, qdf_mem_copy((uint8_t *) &bss_desc_ptr->bssId, (uint8_t *)roam_synch_ind_ptr->bssid.bytes, sizeof(tSirMacAddr)); + + qdf_mem_copy((uint8_t *)&bss_desc_ptr->seq_ctrl, + (uint8_t *)&mac_hdr->seqControl, + sizeof(tSirMacSeqCtl)); + bss_desc_ptr->received_time = (uint64_t)qdf_mc_timer_get_system_time(); if (parsed_frm_ptr->mdiePresent) {