qcacld-3.0: Send proper status for Set wifi config req

Set wifi configuration comes to the host via
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION vendor
command for independent as well as interdependent attributes.

Currently, if a set wifi config request comes for independent
attribute host return failure to the upper layer if
interdependent attributes QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS are zero which is not correct.

The fix is to return the status of "set wifi config req for
independent attribute" even interdependent attributes
QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS are zero.

Change-Id: Ifb098efb18d236a2f24091bcc4c75e10e05933ac
CRs-Fixed: 3501246
This commit is contained in:
Abhinav Kumar
2023-05-17 06:30:01 -07:00
committed by Madan Koyyalamudi
parent 5e17372c8c
commit c72ef79f56

View File

@@ -8911,10 +8911,8 @@ static int hdd_config_tx_rx_nss(struct hdd_adapter *adapter,
struct nlattr *rx_attr =
tb[QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS];
if (!tx_attr && !rx_attr) {
hdd_err("Missing TX and RX attributes");
return -EINVAL;
}
if (!tx_attr && !rx_attr)
return 0;
/* if one is present, both must be present */
if (!tx_attr || !rx_attr) {