]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Consider ht/vht on P2P_GROUP_ADD command (with no params)
authorEliad Peller <eliad@wizery.com>
Wed, 17 Jun 2015 13:18:16 +0000 (16:18 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2015 12:57:16 +0000 (15:57 +0300)
p2p_ctrl_group_add() takes care of various configuration options (such
as ht/vht) before calling wpas_p2p_group_add(), so use it (just like
when P2P_GROUP_ADD is called with additional params).

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
wpa_supplicant/ctrl_iface.c

index f5cf95d4216c51a004ce3d149b57ecde4a292329..0c5ea8f59065e3ee9161e32d0f39e3573d4cfece 100644 (file)
@@ -8199,7 +8199,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
                if (wpas_p2p_group_remove(wpa_s, buf + 17))
                        reply_len = -1;
        } else if (os_strcmp(buf, "P2P_GROUP_ADD") == 0) {
-               if (wpas_p2p_group_add(wpa_s, 0, 0, 0, 0))
+               if (p2p_ctrl_group_add(wpa_s, ""))
                        reply_len = -1;
        } else if (os_strncmp(buf, "P2P_GROUP_ADD ", 14) == 0) {
                if (p2p_ctrl_group_add(wpa_s, buf + 14))