<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<BR>&nbsp;<BR>

<HR id=stopSpelling>
From: shuangfeiyu@hotmail.com<BR>To: hostap@lists.shmoo.com<BR>Subject: How to connect signal "WpsCred"?<BR>Date: Thu, 4 Nov 2010 02:16:12 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</STYLE>
Hi,<BR>&nbsp;&nbsp;&nbsp; I&nbsp;write a client application to get WPS state from wpa_supplicant but never received 'WpsCred' signal.<BR>I have already set 'wps_cred_processing=2' in the config file and WPASupplicant do send signal out.<BR>Here is my codes, would you give me any suggestions?<BR>&nbsp;<BR>{<BR>DBusGProxy *remote_object = NULL;<BR>remote_object = dbus_g_proxy_new_for_name (bus,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fi.epitest.hostap.WPASupplicant",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/fi/epitest/hostap/WPASupplicant/Interfaces/0",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fi.epitest.hostap.WPASupplicant.Interface");<BR>dbus_g_object_register_marshaller(my_marshal_VOID__BOXED_UCHAR,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;G_TYPE_NONE,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;G_TYPE_ARRAY, G_TYPE_UCHAR,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;G_TYPE_INVALID);<BR>dbus_g_proxy_add_signal (remote_object, "WpsCred", G_TYPE_ARRAY, G_TYPE_UCHAR, G_TYPE_INVALID);<BR>dbus_g_proxy_connect_signal (remote_object, "WpsCred", G_CALLBACK (dbus_iface_wpa_wps_succ),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL, NULL);<BR>}<BR>&nbsp;<BR>Best regards,<BR>Jeanne<BR><BR>_______________________________________________ HostAP mailing list HostAP@lists.shmoo.com http://lists.shmoo.com/mailman/listinfo/hostap                                               </body>
</html>