device_get_info: Allow vendor, model, version values to be set

The new command line arguments -N<vendor>, -o<model>, and -O<version>
can now be used to override the device_get_info output arguments so that
sigma_dut does not need to have internal knowledge of how to figure out
such details on all platforms.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
diff --git a/sigma_dut.c b/sigma_dut.c
index 0ba5dc0..574fc9f 100644
--- a/sigma_dut.c
+++ b/sigma_dut.c
@@ -759,7 +759,7 @@
 
 	for (;;) {
 		c = getopt(argc, argv,
-			   "aAb:Bc:C:dDE:e:fhH:i:Ik:l:L:m:M:np:P:qr:R:s:S:tT:uv:VWw:");
+			   "aAb:Bc:C:dDE:e:fhH:i:Ik:l:L:m:M:nN:o:O:p:P:qr:R:s:S:tT:uv:VWw:");
 		if (c < 0)
 			break;
 		switch (c) {
@@ -859,6 +859,15 @@
 		case 'n':
 			sigma_dut.no_ip_addr_set = 1;
 			break;
+		case 'N':
+			sigma_dut.vendor_name = optarg;
+			break;
+		case 'o':
+			sigma_dut.model_name = optarg;
+			break;
+		case 'O':
+			sigma_dut.version_name = optarg;
+			break;
 		case 'S':
 			sigma_station_ifname = optarg;
 			break;
@@ -919,6 +928,9 @@
 			       "       [-i <IP address of the AP>] \\\n"
 			       "       [-k <subnet mask for the AP>] \\\n"
 			       "       [-e <hostapd entropy file>] \\\n"
+			       "       [-N <device_get_info vendor>] \\\n"
+			       "       [-o <device_get_info model>] \\\n"
+			       "       [-O <device_get_info version>] \\\n"
 			       "       [-r <HT40>]\n");
 			printf("local command: sigma_dut [-p<port>] "
 			       "<-l<cmd>>\n");