qcacld-3.0: Fix one crash during SAP fast BSS transition

If STA is already present in DPH, don't need to clean it during FT
re-assoc request received. dph_delete_hash_entry doesn't
clean pmfSaQueryTimer. During driver unloading, host will trigger a
crash if any pmfSaQueryTimer haven't clean up.

Change-Id: I889ed6ee51c6b136885f944abf6c61b2f1a637e1
CRs-Fixed: 3355096
This commit is contained in:
Ben Wang
2022-12-18 15:39:59 +08:00
committed by Madan Koyyalamudi
parent c0a2391a86
commit ec92077e06

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -2668,14 +2668,6 @@ void lim_process_assoc_req_frame(struct mac_context *mac_ctx,
sub_type, GET_LIM_SYSTEM_ROLE(session),
QDF_MAC_ADDR_REF(hdr->sa));
return;
} else if (sta_ds->mlmStaContext.akm_type == ANI_AKM_TYPE_FT_RSN_PSK) {
pe_debug("FT Assoc Req, delete STA hash entry");
lim_release_peer_idx(mac_ctx, sta_ds->assocId, session);
if (dph_delete_hash_entry(mac_ctx, hdr->sa,
sta_ds->assocId,
&session->dph.dphHashTable)
!= QDF_STATUS_SUCCESS)
pe_err("error deleting hash entry");
} else if (!sta_ds->rmfEnabled && (sub_type == LIM_REASSOC)) {
/*
* SAP should send reassoc response with reject code