Quellcode durchsuchen

qcacld-3.0: Set AMSDU size when AMPDU is disabled

Send unit test command to set AMSDU size to FW when
AMPDU is disabled

Change-Id: I6695a5527d89fbe131036ffa4f7a4c476994dea7
CRs-Fixed: 2221912
Kiran Kumar Lokere vor 7 Jahren
Ursprung
Commit
015f77fbbb
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  1. 9 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 9 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -7365,6 +7365,15 @@ __wlan_hdd_cfg80211_set_wifi_test_config(struct wiphy *wiphy,
 
 		ret_val = wma_cli_set_command(adapter->session_id,
 				WMI_VDEV_PARAM_BA_MODE, set_val, VDEV_CMD);
+		if (ret_val) {
+			hdd_err("Set BA operating mode failed");
+			goto send_err;
+		}
+		if (!cfg_val) {
+			ret_val = wma_cli_set_command(adapter->session_id,
+				WMI_VDEV_PARAM_AMSDU_AGGREGATION_SIZE_OPTIMIZATION,
+				0, VDEV_CMD);
+		}
 	}
 
 	if (tb[QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION]) {