qcacld-3.0: Fix STA can't disconnect with AP issue

pe_roam_synch_callback creates new pe session and initializes
the varible bssIdx with add_bss_params->bssIdx which is not
initialized. When beacon miss event happens, it can't disconnect
with the AP because the session is not found for bssidx zero.

Change-Id: I44b79fe7ee0a8fc4ecc6f41e2574c203b0755827
CRs-Fixed: 2094326
This commit is contained in:
Paul Zhang 2017-08-17 17:13:35 +08:00 • committed by snandini
commit fda3a59222

View file

@ -2168,6 +2168,8 @@ QDF_STATUS pe_roam_synch_callback(tpAniSirGlobal mac_ctx,
ft_session_ptr->bRoamSynchInProgress = false;
return status;
}
add_bss_params->bssIdx = roam_sync_ind_ptr->roamedVdevId;
ft_session_ptr->bssIdx = (uint8_t) add_bss_params->bssIdx;
curr_sta_ds->bssId = add_bss_params->bssIdx;