From 7bd1115b69ae8efae304bcca55e60979a33119ef Mon Sep 17 00:00:00 2001 From: VIJAY RAJ Date: Mon, 30 May 2022 10:44:44 +0530 Subject: [PATCH] qcacld-3.0: Return success from dynamic nss chain support check for 1x1 In api hdd_update_nss(), when unit test command 'iwpriv wlan0 nss 1' is used in 1x1 mode, the fail status is returned resulting in test case failure. Return a success status in api hdd_update_nss() for 1x1 mode resulting successful execution of test case. Change-Id: Id482c2686b48a0b6cdd41980c4eb4424da775ad0 CRs-Fixed: 3195517 --- core/hdd/src/wlan_hdd_cfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 9275b5025622..9e8f348016ad 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -1,6 +1,6 @@ /* - * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved. - * + * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 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 copyright notice and this permission notice appear in all @@ -1157,7 +1157,7 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t tx_nss, adapter->vdev_id); if (!bval) { hdd_err("Nss in 1x1, no change required, 2x2 mode disabled"); - return QDF_STATUS_E_FAILURE; + return QDF_STATUS_SUCCESS; } for (band = NSS_CHAINS_BAND_2GHZ; band < NSS_CHAINS_BAND_MAX;