qcacld-3.0: Reject asymmetric nss config if not connected
Currently driver process SET_TX_ANT_CONFIG command for asymmetric tx/rx nss values, but it's not correct to have asymmetric tx/rx nss values before connection as connection will always happen in 1x1 or 2x2. To address this issue, reject SET_TX_ANT_CONFIG cmd if TX nss and RX nss values are different. Change-Id: Id6f3ff57ae3a991192b76bd476034867a799d95e CRs-Fixed: 3485059
This commit is contained in:
committed by
Madan Koyyalamudi
szülő
c6ad6f2fe0
commit
63d4988c35
@@ -1253,8 +1253,16 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t tx_nss,
|
||||
|
||||
if (hdd_is_vdev_in_conn_state(adapter))
|
||||
return hdd_set_nss_params(adapter, tx_nss, rx_nss);
|
||||
|
||||
if (tx_nss != rx_nss) {
|
||||
hdd_err("TX NSS = %d, RX NSS = %d value mismatch, doesn't support asymmetric config in disconnected state",
|
||||
tx_nss, rx_nss);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
hdd_debug("Vdev %d in disconnect state, changing ini nss params",
|
||||
adapter->deflink->vdev_id);
|
||||
|
||||
if (!bval) {
|
||||
hdd_err("Nss in 1x1, no change required, 2x2 mode disabled");
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
Reference in New Issue
Block a user