Waiting... How to connect signal "WpsCred"?

Jue Yang shuangfeiyu at hotmail.com
Thu Nov 4 21:18:32 EDT 2010



 


From: shuangfeiyu at hotmail.com
To: hostap at lists.shmoo.com
Subject: How to connect signal "WpsCred"?
Date: Thu, 4 Nov 2010 02:16:12 +0000




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

_______________________________________________ HostAP mailing list HostAP at lists.shmoo.com http://lists.shmoo.com/mailman/listinfo/hostap 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20101105/dc9a987c/attachment.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001
Url: http://lists.shmoo.com/pipermail/hostap/attachments/20101105/dc9a987c/attachment.txt 


More information about the HostAP mailing list