mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Ignore LFR3 ROAM SYNCH indication if disconnect in progress
Currently, WMA is not checking whether the south bound disconnect (deauth/disassoc from AP) is in progress before processing LFR3 Roam synch indication which leads to FW out of sync with host. Fix is to ignore LFR3 Roam Synch Indication if south bound disconnect is in progress in host. Change-Id: If3c78139cf1d1d0aa0f977bd2cbdca53c7b1a81c CRs-Fixed: 2019702
This commit is contained in:
parent
072e561f35
commit
a6e3ebad43
2 changed files with 15 additions and 2 deletions
|
|
@ -1995,6 +1995,14 @@ QDF_STATUS pe_roam_synch_callback(tpAniSirGlobal mac_ctx,
|
|||
lim_log(mac_ctx, LOGE, FL("LFR3:session is not in STA mode"));
|
||||
return status;
|
||||
}
|
||||
/*
|
||||
* If deauth from AP already in progress, ignore Roam Synch Indication
|
||||
* from firmware.
|
||||
*/
|
||||
if (session_ptr->limSmeState != eLIM_SME_LINK_EST_STATE) {
|
||||
lim_log(mac_ctx, LOGE, FL("LFR3: Not in Link est state"));
|
||||
return status;
|
||||
}
|
||||
status = lim_roam_fill_bss_descr(mac_ctx, roam_sync_ind_ptr, bss_desc);
|
||||
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
||||
lim_log(mac_ctx, LOGE, FL("LFR3:Failed to fill Bss Descr"));
|
||||
|
|
|
|||
|
|
@ -2387,8 +2387,13 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event,
|
|||
goto cleanup_label;
|
||||
}
|
||||
qdf_mem_zero(bss_desc_ptr, sizeof(tSirBssDescription) + ie_len);
|
||||
wma->pe_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
||||
roam_synch_ind_ptr, bss_desc_ptr);
|
||||
if (QDF_IS_STATUS_ERROR(wma->pe_roam_synch_cb(
|
||||
(tpAniSirGlobal)wma->mac_context,
|
||||
roam_synch_ind_ptr, bss_desc_ptr))) {
|
||||
WMA_LOGE("LFR3: PE roam synch cb failed");
|
||||
status = -EBUSY;
|
||||
goto cleanup_label;
|
||||
}
|
||||
wma_roam_update_vdev(wma, roam_synch_ind_ptr);
|
||||
wma->csr_roam_synch_cb((tpAniSirGlobal)wma->mac_context,
|
||||
roam_synch_ind_ptr, bss_desc_ptr, SIR_ROAM_SYNCH_PROPAGATION);
|
||||
|
|
|
|||
Loading…
Reference in a new issue