#endif
#define WIFI_IFNAME "wlan0"
+/* Adhoc solution to use P2P interface */
+#define WIFI_P2P_IFNAME "p2p0"
#define SUPPLICANT_SERVICE "fi.w1.wpa_supplicant1"
#define SUPPLICANT_INTERFACE "fi.w1.wpa_supplicant1"
#define SUPPLICANT_IFACE_INTERFACE SUPPLICANT_INTERFACE ".Interface"
#define SUPPLICANT_IFACE_BSS SUPPLICANT_INTERFACE ".BSS"
#define SUPPLICANT_IFACE_WPS SUPPLICANT_INTERFACE ".Interface.WPS"
+#define SUPPLICANT_IFACE_DPP SUPPLICANT_INTERFACE ".Interface.DPP"
#define SUPPLICANT_PATH "/fi/w1/wpa_supplicant1"
struct dbus_input_arguments {
/* Returns Supplicant interface.
* Need to release interface using g_free */
-char *netconfig_wifi_get_supplicant_interface(void);
+char *netconfig_get_supplicant_interface(const char *ifname);
+
+/* Returns Supplicant interface.
+ * Need to release interface using g_free */
+char *netconfig_wifi_get_supplicant_interface_path(const char *interface_name);
+/* Adhoc solution to use P2P interface */
+char *netconfig_wifi_get_supplicant_p2p_interface(void);
GList *setup_input_args(GList *list, struct dbus_input_arguments *items);
GVariant *netconfig_supplicant_invoke_dbus_method(const char *dest, const char *path,
gboolean netconfig_supplicant_invoke_dbus_method_nonblock(const char *dest,
const char *path, const char *interface_name,
const char *method, GVariant *params,
- GAsyncReadyCallback notify_func);
-GVariant *netconfig_supplicant_invoke_dbus_interface_property_get(const char *interface,
+ GAsyncReadyCallback notify_func, void *user_data);
+GVariant *netconfig_supplicant_invoke_dbus_interface_property_get(const char *interface_name,
const char *key);
-gboolean netconfig_supplicant_invoke_dbus_interface_property_set(const char *interface,
+gboolean netconfig_supplicant_invoke_dbus_interface_property_set(const char *interface_name,
const char *key, GVariant *message,
GAsyncReadyCallback notify_func);