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
This commit is contained in:
VIJAY RAJ
2022-05-13 12:38:55 +05:30
committed by Madan Koyyalamudi
orang tua 1fcd9e90ab
melakukan 5121c86318

Melihat File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-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
@@ -1176,7 +1176,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;