Quellcode durchsuchen

qcacld-3.0: Fix pe session id is used as vdev id issue

When handle deauth, if req peer mac isn't session bssid, pe session id is
used as vdev id wrongly, then deauth rsp is dropped in CSR, disconnect cmd
isn't removed from serialization queue, assert will happen.

Change-Id: I35c2805ae3ea904b2306b2a210c2284498330c04
CRs-Fixed: 3378250
Jianmin Zhu vor 2 Jahren
Ursprung
Commit
9addca6e47
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      core/mac/src/pe/lim/lim_process_mlm_req_messages.c

+ 2 - 2
core/mac/src/pe/lim/lim_process_mlm_req_messages.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2011-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
@@ -1389,7 +1389,7 @@ lim_process_mlm_deauth_req_ntf(struct mac_context *mac_ctx,
 				sme_deauth_rsp->status_code =
 						eSIR_SME_DEAUTH_STATUS;
 				sme_deauth_rsp->sessionId =
-						mlm_deauth_req->sessionId;
+						session->vdev_id;
 
 				qdf_mem_copy(sme_deauth_rsp->peer_macaddr.bytes,
 					     mlm_deauth_req->peer_macaddr.bytes,