4 Nov 2010 03:16
How to connect signal "WpsCred"?
Jue Yang <shuangfeiyu <at> hotmail.com>
2010-11-04 02:16:12 GMT
2010-11-04 02:16:12 GMT
Hi,
I write a client application to get WPS state from wpa_supplicant but never received 'WpsCred' signal.
I have already set 'wps_cred_processing=2' in the config file and WPASupplicant do send signal out.
Here is my codes, would you give me any suggestions?
{
DBusGProxy *remote_object = NULL;
remote_object = dbus_g_proxy_new_for_name (bus,
"fi.epitest.hostap.WPASupplicant",
"/fi/epitest/hostap/WPASupplicant/Interfaces/0",
"fi.epitest.hostap.WPASupplicant.Interface");
dbus_g_object_register_marshaller(my_marshal_VOID__BOXED_UCHAR,
G_TYPE_NONE,
G_TYPE_ARRAY, G_TYPE_UCHAR,
G_TYPE_INVALID);
dbus_g_proxy_add_signal (remote_object, "WpsCred", G_TYPE_ARRAY, G_TYPE_UCHAR, G_TYPE_INVALID);
dbus_g_proxy_connect_signal (remote_object, "WpsCred", G_CALLBACK (dbus_iface_wpa_wps_succ),
NULL, NULL);
}
Best regards,
Jeanne
I write a client application to get WPS state from wpa_supplicant but never received 'WpsCred' signal.
I have already set 'wps_cred_processing=2' in the config file and WPASupplicant do send signal out.
Here is my codes, would you give me any suggestions?
{
DBusGProxy *remote_object = NULL;
remote_object = dbus_g_proxy_new_for_name (bus,
"fi.epitest.hostap.WPASupplicant",
"/fi/epitest/hostap/WPASupplicant/Interfaces/0",
"fi.epitest.hostap.WPASupplicant.Interface");
dbus_g_object_register_marshaller(my_marshal_VOID__BOXED_UCHAR,
G_TYPE_NONE,
G_TYPE_ARRAY, G_TYPE_UCHAR,
G_TYPE_INVALID);
dbus_g_proxy_add_signal (remote_object, "WpsCred", G_TYPE_ARRAY, G_TYPE_UCHAR, G_TYPE_INVALID);
dbus_g_proxy_connect_signal (remote_object, "WpsCred", G_CALLBACK (dbus_iface_wpa_wps_succ),
NULL, NULL);
}
Best regards,
Jeanne
_______________________________________________ HostAP mailing list HostAP <at> lists.shmoo.com http://lists.shmoo.com/mailman/listinfo/hostap
RSS Feed