How to connect signal "WpsCred"?

Jue Yang shuangfeiyu at hotmail.com
Wed Nov 3 22:16:12 EDT 2010


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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20101104/502c2163/attachment.htm 


More information about the HostAP mailing list