]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add missing direct global ctrl_iface commands for P2P
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 15 Jan 2014 18:27:19 +0000 (10:27 -0800)
committerJouni Malinen <j@w1.fi>
Fri, 17 Jan 2014 09:58:36 +0000 (11:58 +0200)
It should be noted that these commands are not exclusively used for P2P
or in the global context, so use of these commands through the global
control interface for operations that are specific to a single interface
have undefined behavior and that behavior may change in the future. As
such, these are recommend only for operations that are in the global
context (e.g., for P2P management).

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/ctrl_iface.c

index 0214b386048360c54f7505fe051e3358e4f7043c..f7ee6e3a27ad5ebb1d18d6b02db7541a5c820212 100644 (file)
@@ -6345,6 +6345,8 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
 {
 #ifdef CONFIG_P2P
        static const char * cmd[] = {
+               "LIST_NETWORKS",
+               "SAVE_CONFIG",
                "P2P_FIND",
                "P2P_STOP_FIND",
                "P2P_LISTEN",
@@ -6359,6 +6361,12 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
                NULL
        };
        static const char * prefix[] = {
+#ifdef ANDROID
+               "DRIVER ",
+#endif /* ANDROID */
+               "GET_NETWORK ",
+               "REMOVE_NETWORK ",
+               "SET ",
                "P2P_FIND ",
                "P2P_CONNECT ",
                "P2P_LISTEN ",