From: Jouni Malinen Date: Mon, 19 Nov 2012 12:04:42 +0000 (+0200) Subject: wpa_cli: Accept more arguments for set_network X-Git-Tag: hostap_2_0~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af1dff8c9f2b3b1fdd2514994800f0790cf7e65d;p=thirdparty%2Fhostap.git 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 --- 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;