GVariant *parameters, gpointer user_data);
static __softap_sig_t sigs[] = {
+ {0, SIGNAL_NAME_SOFTAP_ON, __handle_softap_on},
+ {0, SIGNAL_NAME_SOFTAP_OFF, __handle_softap_off},
{0, SIGNAL_NAME_LOW_BATTERY_MODE, __handle_low_battery_mode},
{0, SIGNAL_NAME_FLIGHT_MODE, __handle_flight_mode},
{0, SIGNAL_NAME_SECURITY_TYPE_CHANGED, __handle_security_type_changed},
{0, SIGNAL_NAME_SSID_VISIBILITY_CHANGED, __handle_ssid_visibility_changed},
{0, SIGNAL_NAME_PASSPHRASE_CHANGED, __handle_passphrase_changed},
{0, SIGNAL_NAME_DHCP_STATUS, __handle_dhcp},
- {0, SIGNAL_NAME_SOFTAP_ON, __handle_softap_on},
- {0, SIGNAL_NAME_SOFTAP_OFF, __handle_softap_off},
{0, "", NULL} };
static int retry = 0;
SOFTAP_SERVICE_OBJECT_PATH, NULL, G_DBUS_SIGNAL_FLAGS_NONE,
sigs[E_SIGNAL_SOFTAP_ON].cb, (gpointer)sa, NULL);
- DBG("[DBG] sig.id for softap on (%d)", sigs[E_SIGNAL_SOFTAP_ON].sig_id);
-
if (ecb)
ecb(error, true, data);
softap_error_e ret = SOFTAP_ERROR_NONE;
__softap_h *sa = (__softap_h *) softap;
GDBusProxy *proxy = sa->client_bus_proxy;
+ GDBusConnection *connection = sa->client_bus;
g_dbus_proxy_set_default_timeout(proxy, DBUS_TIMEOUT_INFINITE);
return SOFTAP_ERROR_OPERATION_FAILED;
}
- g_dbus_connection_signal_unsubscribe(sa->client_bus, sigs[E_SIGNAL_SOFTAP_ON].sig_id);
+ g_dbus_connection_signal_unsubscribe(connection, sigs[E_SIGNAL_SOFTAP_ON].sig_id);
g_dbus_proxy_call(proxy, "enable",
g_variant_new("(ssii)", set.ssid, set.key, set.visibility, set.sec_type),