From af1dff8c9f2b3b1fdd2514994800f0790cf7e65d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 19 Nov 2012 14:04:42 +0200 Subject: [PATCH] wpa_cli: Accept more arguments for set_network Some network parameters, e.g., auth_alg and eap use a space separated list of values without quotation marks. To allow these to be entered from the interactive mode, change set_network command to allow more than three arguments. Signed-hostap: Jouni Malinen --- wpa_supplicant/wpa_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 5ae79d43f..61bb7fd7e 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -1350,7 +1350,7 @@ static int wpa_cli_cmd_set_network(struct wpa_ctrl *ctrl, int argc, return 0; } - if (argc != 3) { + if (argc < 3) { printf("Invalid SET_NETWORK command: needs three arguments\n" "(network id, variable name, and value)\n"); return -1;