P2P: Document P2P_CONNECT-auto
authorJouni Malinen <j@w1.fi>
Sun, 8 Feb 2015 10:24:37 +0000 (12:24 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Feb 2015 11:35:50 +0000 (13:35 +0200)
Commit b31be3a0fd58b38e669d804aa082b1039408566f ('P2P: Add automatic GO
Negotiation vs. join-a-group selection') added this P2P_CONNECT 'auto'
parameter, but did not update any documentation on it.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/README-P2P
wpa_supplicant/ctrl_iface.c

index 5c1e4f9..5fe83e2 100644 (file)
@@ -130,7 +130,7 @@ join-a-group style PD instead of GO Negotiation style PD.
 
 p2p_connect <peer device address> <pbc|pin|PIN#> [display|keypad]
        [persistent|persistent=<network id>] [join|auth]
-       [go_intent=<0..15>] [freq=<in MHz>] [ht40] [vht] [provdisc]
+       [go_intent=<0..15>] [freq=<in MHz>] [ht40] [vht] [provdisc] [auto]
 
 Start P2P group formation with a discovered P2P peer. This includes
 optional group owner negotiation, group interface setup, provisioning,
@@ -171,6 +171,10 @@ used prior to starting GO Negotiation as a workaround with some deployed
 P2P implementations that require this to allow the user to accept the
 connection.
 
+"auto" can be used to request wpa_supplicant to automatically figure
+out whether the peer device is operating as a GO and if so, use
+join-a-group operation rather than GO Negotiation.
+
 p2p_group_add [persistent|persistent=<network id>] [freq=<freq in MHz>]
        [ht40] [vht]
 
index c4a4577..a6ebe3b 100644 (file)
@@ -4721,7 +4721,7 @@ static int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd,
        /* <addr> <"pbc" | "pin" | PIN> [label|display|keypad|p2ps]
         * [persistent|persistent=<network id>]
         * [join] [auth] [go_intent=<0..15>] [freq=<in MHz>] [provdisc]
-        * [ht40] [vht] */
+        * [ht40] [vht] [auto] */
 
        if (hwaddr_aton(cmd, addr))
                return -1;