mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: Initialize roam result and status
Initialize roam result and status in
csr_roam_process_results and
csr_roam_process_start_bss_success to
prevent use of uninitiazed variables.
Change-Id: I06b3026db4bc70b3631c9348101cc8ca691a8b26
CRs-Fixed: 2702076
This commit is contained in:
parent
713edccefb
commit
1d5015befb
1 changed files with 7 additions and 13 deletions
|
|
@ -6857,8 +6857,8 @@ static void csr_roam_process_start_bss_success(struct mac_context *mac_ctx,
|
|||
struct bss_description *bss_desc = NULL;
|
||||
struct csr_roam_info *roam_info;
|
||||
struct start_bss_rsp *start_bss_rsp = NULL;
|
||||
eRoamCmdStatus roam_status;
|
||||
eCsrRoamResult roam_result;
|
||||
eRoamCmdStatus roam_status = eCSR_ROAM_INFRA_IND;
|
||||
eCsrRoamResult roam_result = eCSR_ROAM_RESULT_INFRA_STARTED;
|
||||
tSirMacAddr bcast_mac = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
QDF_STATUS status;
|
||||
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
|
||||
|
|
@ -6931,10 +6931,6 @@ static void csr_roam_process_start_bss_success(struct mac_context *mac_ctx,
|
|||
* handler of eSIR_SME_JOINED_NEW_BSS will trigger the connection start
|
||||
* indication in Vista
|
||||
*/
|
||||
if (CSR_IS_INFRA_AP(profile)) {
|
||||
roam_status = eCSR_ROAM_INFRA_IND;
|
||||
roam_result = eCSR_ROAM_RESULT_INFRA_STARTED;
|
||||
}
|
||||
roam_info->staId = (uint8_t)start_bss_rsp->staId;
|
||||
if (CSR_IS_NDI(profile)) {
|
||||
csr_roam_update_ndp_return_params(mac_ctx,
|
||||
|
|
@ -7582,11 +7578,12 @@ static bool csr_roam_process_results(struct mac_context *mac_ctx, tSmeCmd *cmd,
|
|||
struct csr_roam_info *roam_info;
|
||||
uint32_t session_id = cmd->vdev_id;
|
||||
struct csr_roam_session *session = CSR_GET_SESSION(mac_ctx, session_id);
|
||||
struct csr_roam_profile *profile = &cmd->u.roamCmd.roamProfile;
|
||||
eRoamCmdStatus roam_status;
|
||||
eCsrRoamResult roam_result;
|
||||
struct csr_roam_profile *profile;
|
||||
eRoamCmdStatus roam_status = eCSR_ROAM_INFRA_IND;
|
||||
eCsrRoamResult roam_result = eCSR_ROAM_RESULT_INFRA_START_FAILED;
|
||||
struct start_bss_rsp *start_bss_rsp = NULL;
|
||||
|
||||
profile = &cmd->u.roamCmd.roamProfile;
|
||||
if (!session) {
|
||||
sme_err("session %d not found ", session_id);
|
||||
return false;
|
||||
|
|
@ -7607,10 +7604,7 @@ static bool csr_roam_process_results(struct mac_context *mac_ctx, tSmeCmd *cmd,
|
|||
break;
|
||||
case eCsrStartBssFailure:
|
||||
start_bss_rsp = (struct start_bss_rsp *)context;
|
||||
if (CSR_IS_INFRA_AP(profile)) {
|
||||
roam_status = eCSR_ROAM_INFRA_IND;
|
||||
roam_result = eCSR_ROAM_RESULT_INFRA_START_FAILED;
|
||||
}
|
||||
|
||||
if (CSR_IS_NDI(profile)) {
|
||||
csr_roam_update_ndp_return_params(mac_ctx,
|
||||
eCsrStartBssFailure,
|
||||
|
|
|
|||
Loading…
Reference in a new issue