gsupplicant: Disable P2P support in connman 04/56204/1
authorSaurav Babu <saurav.babu@samsung.com>
Tue, 5 Jan 2016 09:07:34 +0000 (14:37 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Tue, 5 Jan 2016 09:07:34 +0000 (14:37 +0530)
In Tizen connman is not used for P2P support so disable P2P in connman.
Currently if interface has P2P capabilities then P2P support is enabled
in connman.

Change-Id: Iff00505b8abd13ff85cdac9d88f80d27ecd96a95
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
gsupplicant/supplicant.c

index 73f5bc3..834be59 100755 (executable)
@@ -2141,8 +2141,10 @@ static void interface_property(const char *key, DBusMessageIter *iter,
        if (g_strcmp0(key, "Capabilities") == 0) {
                supplicant_dbus_property_foreach(iter, interface_capability,
                                                                interface);
+#if !defined TIZEN_EXT
                if (interface->mode_capa & G_SUPPLICANT_CAPABILITY_MODE_P2P)
                        interface->p2p_support = true;
+#endif
        } else if (g_strcmp0(key, "State") == 0) {
                const char *str = NULL;