qcacld-3.0: Remove check of enable 2x2 in hdd_update_nss
Currently the driver checks enable 2x2 in hdd update nss, and if it is 0, i.e nss is max limited to 1, then the driver returns from there with the fail, thus not changing the global ini. Fix is to remove the check from the common path, and put the check only in the path where the FW also supports per vdev nss change command. Change-Id: I164e052eeec05d8e8c1653d134f645689f9e6281 CRs-Fixed: 2409355
This commit is contained in:

committed by
nshrivas

parent
fdb993cdb7
commit
97c98c6268
@@ -1784,11 +1784,6 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t nss)
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bval) {
|
|
||||||
hdd_err("Nss in 1x1, no change required, 2x2 mode disabled");
|
|
||||||
return QDF_STATUS_E_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
mac_handle = hdd_ctx->mac_handle;
|
mac_handle = hdd_ctx->mac_handle;
|
||||||
if (!mac_handle) {
|
if (!mac_handle) {
|
||||||
hdd_err("NULL MAC handle");
|
hdd_err("NULL MAC handle");
|
||||||
@@ -1810,6 +1805,10 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t nss)
|
|||||||
return hdd_set_nss_params(adapter, tx_nss, rx_nss);
|
return hdd_set_nss_params(adapter, tx_nss, rx_nss);
|
||||||
hdd_debug("Vdev %d in disconnect state, changing ini nss params",
|
hdd_debug("Vdev %d in disconnect state, changing ini nss params",
|
||||||
adapter->vdev_id);
|
adapter->vdev_id);
|
||||||
|
if (!bval) {
|
||||||
|
hdd_err("Nss in 1x1, no change required, 2x2 mode disabled");
|
||||||
|
return QDF_STATUS_E_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
for (band = NSS_CHAINS_BAND_2GHZ; band < NSS_CHAINS_BAND_MAX;
|
for (band = NSS_CHAINS_BAND_2GHZ; band < NSS_CHAINS_BAND_MAX;
|
||||||
band++) {
|
band++) {
|
||||||
|
Reference in New Issue
Block a user