Specify an interface for sigma_dut when testing with LINUX-WCN driver
This commit extends the provision to update the AP interface through
sigma_main_ifname when sigma_dut is started with LINUX-WCN driver
option.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
diff --git a/sigma_dut.c b/sigma_dut.c
index 9ac044a..60ecd21 100644
--- a/sigma_dut.c
+++ b/sigma_dut.c
@@ -990,10 +990,11 @@
if (local_cmd)
return run_local_cmd(port, local_cmd);
- if (wifi_chip_type == DRIVER_QNXNTO &&
+ if ((wifi_chip_type == DRIVER_QNXNTO ||
+ wifi_chip_type == DRIVER_LINUX_WCN) &&
(sigma_main_ifname == NULL || sigma_station_ifname == NULL)) {
sigma_dut_print(&sigma_dut, DUT_MSG_ERROR,
- "Interface should be provided for QNX driver check option M and S");
+ "Interface should be provided for QNX/LINUX-WCN driver - check option M and S");
}
sigma_dut_register_cmds();