From 66883847fbec688c4eff1a7cb7e74b803149c84c Mon Sep 17 00:00:00 2001 From: Himanshu Batra Date: Tue, 1 Feb 2022 16:28:04 +0530 Subject: [PATCH] qcacmn: Ignore ML IE if vdev is created without MLD context Ignore ML IE if vdev is created without MLD context Change-Id: I7992bbbc92e177ab84c44751844fa8a9a8a986dc --- os_if/linux/mlme/src/osif_cm_req.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/os_if/linux/mlme/src/osif_cm_req.c b/os_if/linux/mlme/src/osif_cm_req.c index dc09ba11f9..0f77ddd844 100644 --- a/os_if/linux/mlme/src/osif_cm_req.c +++ b/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;