aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorKrishna Vamsi <vamsin@qti.qualcomm.com>2014-12-09 15:12:27 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-02 23:35:06 (GMT)
commit5a4102ce0e7221eb8e59ec12365fa395f99b651e (patch)
tree2c9c9c69bf58139e71275cc2cb7c3ebd55614d3b /wpa_supplicant/wpa_cli.c
parent095b3c4069a905939e5ddd06918e73892526891c (diff)
downloadhostap-5a4102ce0e7221eb8e59ec12365fa395f99b651e.zip
hostap-5a4102ce0e7221eb8e59ec12365fa395f99b651e.tar.gz
hostap-5a4102ce0e7221eb8e59ec12365fa395f99b651e.tar.bz2
P2PS: Add support to send ASP service requests
This extends the P2P_SERV_DISC_REQ control interface command with a new "asp" service type. This takes service id, service string, and optional service info as arguments. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 6fa1489..fdadffa 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -1909,11 +1909,9 @@ static int wpa_cli_cmd_p2p_serv_disc_req(struct wpa_ctrl *ctrl, int argc,
{
char cmd[4096];
- if (argc != 2 && argc != 4) {
+ if (argc < 2) {
printf("Invalid P2P_SERV_DISC_REQ command: needs two "
- "arguments (address and TLVs) or four arguments "
- "(address, \"upnp\", version, search target "
- "(SSDP ST:)\n");
+ "or more arguments (address and TLVs)\n");
return -1;
}