Преглед на файлове

qcacmn: Ignore ML IE if vdev is created without MLD context

Ignore ML IE if vdev is created without MLD context

Change-Id: I7992bbbc92e177ab84c44751844fa8a9a8a986dc
Himanshu Batra преди 3 години
родител
ревизия
66883847fb
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      os_if/linux/mlme/src/osif_cm_req.c

+ 6 - 1
os_if/linux/mlme/src/osif_cm_req.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2012-2015,2020-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 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 above
@@ -493,6 +493,11 @@ QDF_STATUS osif_update_mlo_partner_info(
 	if (!vdev || !connect_req || !req)
 		return status;
 
+	if (!vdev->mlo_dev_ctx) {
+		osif_debug("ML ctx is NULL, ignore ML IE");
+		return QDF_STATUS_SUCCESS;
+	}
+
 	osif_debug("ML IE search start");
 	if (req->ie_len) {
 		ptr = (uint8_t *)req->ie;