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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2012-11-19 14:04:42 +02:00 committed by Jouni Malinen
parent 1ae1570b5f
commit af1dff8c9f

View file

@ -1350,7 +1350,7 @@ static int wpa_cli_cmd_set_network(struct wpa_ctrl *ctrl, int argc,
return 0; return 0;
} }
if (argc != 3) { if (argc < 3) {
printf("Invalid SET_NETWORK command: needs three arguments\n" printf("Invalid SET_NETWORK command: needs three arguments\n"
"(network id, variable name, and value)\n"); "(network id, variable name, and value)\n");
return -1; return -1;