Browse Source

qcacld-3.0: Return 0 if rx aggregation missed

In QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION cmd parameters,
If attribute QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION is missed,
should return 0 instead of failed.

Change-Id: I5e570b9237768800e06d839814919d058a5e1d1f
CRs-Fixed: 2926104
Jianmin Zhu 4 years ago
parent
commit
f797a568e9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      core/hdd/src/wlan_hdd_cfg80211.c

+ 4 - 4
core/hdd/src/wlan_hdd_cfg80211.c

@@ -7623,8 +7623,8 @@ static int hdd_config_mpdu_aggregation(struct hdd_adapter *adapter,
 	QDF_STATUS status;
 
 	if (!rx_attr) {
-		hdd_err("Missing attribute for RX");
-		return -EINVAL;
+		hdd_debug("Missing attribute for RX");
+		return 0;
 	}
 
 	rx_size = nla_get_u8(rx_attr);
@@ -7651,8 +7651,8 @@ static int hdd_config_msdu_aggregation(struct hdd_adapter *adapter,
 	QDF_STATUS status;
 
 	if (!rx_attr) {
-		hdd_err("Missing attribute for RX");
-		return -EINVAL;
+		hdd_debug("Missing attribute for RX");
+		return 0;
 	}
 
 	rx_size = nla_get_u8(rx_attr);