]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Accept more arguments for set_network
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 Nov 2012 12:04:42 +0000 (14:04 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Nov 2012 12:04:42 +0000 (14:04 +0200)
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 <jouni@qca.qualcomm.com>

wpa_supplicant/wpa_cli.c

index 5ae79d43f2ff489a037f25b0989fc6686e652bea..61bb7fd7ec4996a54bf801caf15c66d41e823a74 100644 (file)
@@ -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;