Set MTU to 8K for 60G tests
Set interface MTU to 8K, needed by most 60G traffic tests.
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
diff --git a/sta.c b/sta.c
index 2ba0be4..c7bab48 100644
--- a/sta.c
+++ b/sta.c
@@ -6702,6 +6702,7 @@
if (dut->program == PROGRAM_60GHZ) {
const char *dev_role = get_param(cmd, "DevRole");
+ char buf[256];
if (!dev_role) {
send_resp(dut, conn, SIGMA_ERROR,
@@ -6726,6 +6727,17 @@
"errorCode,Unknown device type");
return 0;
}
+
+ sigma_dut_print(dut, DUT_MSG_DEBUG,
+ "Setting msdu_size to MAX: 7912");
+ snprintf(buf, sizeof(buf), "ifconfig %s mtu 7912",
+ get_station_ifname());
+
+ if (system(buf) != 0) {
+ sigma_dut_print(dut, DUT_MSG_ERROR, "Failed to set %s",
+ buf);
+ return SIGMA_DUT_ERROR_CALLER_SEND_STATUS;
+ }
}
wpa_command(intf, "WPS_ER_STOP");