From bd034ecb215c9363e769d11312061dd32737135b Mon Sep 17 00:00:00 2001 From: Rahul Gusain Date: Mon, 9 Oct 2023 17:10:32 +0530 Subject: [PATCH] qcacld-3.0: Exempt the MLD addr check for NAN MLD is applicable for infrasture modes(STA/SAP) and is mandatory to operate in 11BE for these modes. NAN/NDI(NDP) may want to use EHT rates and it's not mandatory to support MLO. Currently, host driver sets vdev dot11mode as 11AX when MLD address is zero. But this is applicable for STA/SAP only. So, exempt NAN/NDI modes from this dot11mode downgrade operation to allow these to use EHT rates. Change-Id: Ie43811eb7bd12dbf286617cebe194ced8c28c3f0 CRs-Fixed: 3635961 --- components/mlme/core/src/wlan_mlme_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/mlme/core/src/wlan_mlme_main.c b/components/mlme/core/src/wlan_mlme_main.c index f02feca829..9ef3b416c1 100644 --- a/components/mlme/core/src/wlan_mlme_main.c +++ b/components/mlme/core/src/wlan_mlme_main.c @@ -4448,8 +4448,9 @@ void wlan_vdev_set_dot11mode(struct wlan_mlme_cfg *mac_mlme_cfg, } vdev_dot11_mode = QDF_GET_BITS(mac_dot11_mode, dot11_mode_indx, 4); - if (vdev_dot11_mode == MLME_VDEV_DOT11_MODE_AUTO || - vdev_dot11_mode == MLME_VDEV_DOT11_MODE_11BE) { + if ((device_mode != QDF_NAN_DISC_MODE && device_mode != QDF_NDI_MODE) && + (vdev_dot11_mode == MLME_VDEV_DOT11_MODE_AUTO || + vdev_dot11_mode == MLME_VDEV_DOT11_MODE_11BE)) { mld_addr = wlan_vdev_mlme_get_mldaddr(vdev_mlme->vdev); if (qdf_is_macaddr_zero((struct qdf_mac_addr *)mld_addr)) { vdev_dot11_mode = MLME_VDEV_DOT11_MODE_11AX;