Jue Yang | 4 Nov 03:16 2010
Picon

How to connect signal "WpsCred"?

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
Kel Modderman | 4 Nov 08:59 2010
Picon

wpa_ctrl shared library

Hi Jouni,

wpa_ctrl could be used in a few things that interest me, such as python
bindings for it and in debian-installer. It would be excellent if wpa_ctrl
could be provided in a standalone distribution that can be packaged to provide
the shared lib and other program language bindings and stuff.

I've already hijacked and maintained python bindings for a little while and
could contribute them, however I do not know much about the best practises
of providing a shared library thus have nothing to offer up front to help
make this happen.

What do you think?

Thanks, Kel.
Fabien Marotte | 4 Nov 17:50 2010
Picon

P2P IDLE state and connect / ProvisionDiscovery

Hi Jouni,

I noted that the following sequencing of command looks to fail in p2p:

            Peer1                 |               Peer2
-------------------------------------------------------------------
      p2p_find(timeout=10)        |        p2p_find(timeout=10)
           SEARCH STATE           |            SEARCH STATE
           DEVICE_FOUND           |            DEVICE_FOUND
       Wait for timeout           |          wait for timeout
           IDLE STATE             |            IDLE STATE
                                  |
p2p_provision_discovery(display) |         Nothing happens
         Nothing happens          |

Note that if you replace timeout by p2p_stop_find, this behavior remains 
the same. Note also that if you replace p2p_provision_discovery by 
p2p_connect, I still have noting that happens.

However, if I do the same sequencing without the timeout/p2p_stop_find, 
everything is working fine:
              PC1                 |                 PC2
-------------------------------------------------------------------
      p2p_find(timeout=10)        |        p2p_find(timeout=10)
           SEARCH STATE           |            SEARCH STATE
                                  |
p2p_provision_discovery(display) |            DISPLAY PIN
             ...                  |                ...

Looking at the code, I understand that being in IDLE state should not be 
a problem. However it looks to don't work.

Can you tell me what should be the right behavior ?

Regards,

Fabien
Jouni Malinen | 4 Nov 18:11 2010
Picon

Re: P2P IDLE state and connect / ProvisionDiscovery

On Thu, Nov 04, 2010 at 05:50:18PM +0100, Fabien Marotte wrote:
> Looking at the code, I understand that being in IDLE state should not be 
> a problem. However it looks to don't work.

If you do not enable extended listen timing, IDLE state means that the
device is not listening to any messages and as such, not replying to
provisioning discovery is expected. In other words, if you want to be
discoverable, you will either need to leave the device in find or listen
state or to enable extended listen timing (p2p_ext_listen) to make it
periodically go to listen state for a short duration.

--

-- 
Jouni Malinen                                            PGP id EFC895FA
Jue Yang | 5 Nov 02:18 2010
Picon

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


 
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

.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Tahoma;} 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
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap

_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Jue Yang | 5 Nov 02:26 2010
Picon

maybe a bug on eloop timeout

hi,
  When eloop.timout is NULL and eloop_run stay in function "select", at that time a timer is registered, it will never timeout until SIGNAL INTERRUPT or socket packet received.
 
Best regards,
Jeanne
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Queenie de Melo | 7 Nov 13:27 2010
Picon

hostapd on multiple VAPs

Hi,
 
If i have multiple VAPs(Access Points) created,
Each VAP will have separate ESSID etc.... and i want to maintain each of them as a separate connection.
 
Do i have to run multiple instance of Hostapd for each of the VAP?

While reading on the net, i found that we need not have multiple instance but we can obtain this witha  single instance , by giving the diff configuration files while running hostapd. (http://lists.shmoo.com/pipermail/hostap/2005-October/011752.html)
 
How do we give different configuration files while running hostapd?
 
I read in the below,
 
That  with set hostap interface you can set the diff interfaces u want to run hostapd on? so i assume i have to sepcify here all the vaps i want the hostapd to run on...
 
But how to i create and run differnet configuration files for each interface in hostapd??
 
Please help!
_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Helmut Schaa | 9 Nov 08:27 2010

[PATCH] hostapd: Add comment about CONFIG_FULL_DYNAMIC_VLAN to defconfig

Add comment about CONFIG_FULL_DYNAMIC_VLAN to defconfig. By default
this feature is still disabled.

Signed-off-by: Helmut Schaa <helmut.schaa <at> googlemail.com>
---
 hostapd/defconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hostapd/defconfig b/hostapd/defconfig
index 3ecb7e3..6e15b78 100644
--- a/hostapd/defconfig
+++ b/hostapd/defconfig
 <at>  <at>  -153,6 +153,10  <at>  <at>  CONFIG_IPV6=y
 # Remove support for VLANs
 #CONFIG_NO_VLAN=y

+# Enable support fur fully dynamic VLANs. This enables hostapd to
+# automatically create bridge and VLAN interfaces if necessary.
+#CONFIG_FULL_DYNAMIC_VLAN=y
+
 # Remove support for dumping state into a file on SIGUSR1 signal
 # This can be used to reduce binary size at the cost of disabling a debugging
 # option.
--

-- 
1.7.1
Andriy Tkachuk | 9 Nov 09:36 2010
Picon

Re: hostapd on multiple VAPs

Queenie,

please read "Multiple BSSID support" section in hostapd.conf file
http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap-06.git;a=blob;f=hostapd/hostapd.conf

Regards,
    Andriy

On 07.11.2010 14:27, Queenie de Melo wrote:
Hi,
 
If i have multiple VAPs(Access Points) created,
Each VAP will have separate ESSID etc.... and i want to maintain each of them as a separate connection.
 
Do i have to run multiple instance of Hostapd for each of the VAP?

While reading on the net, i found that we need not have multiple instance but we can obtain this witha  single instance , by giving the diff configuration files while running hostapd. (http://lists.shmoo.com/pipermail/hostap/2005-October/011752.html)
 
How do we give different configuration files while running hostapd?
 
I read in the below,
 
That  with set hostap interface you can set the diff interfaces u want to run hostapd on? so i assume i have to sepcify here all the vaps i want the hostapd to run on...
 
But how to i create and run differnet configuration files for each interface in hostapd??
 
Please help!

_______________________________________________
HostAP mailing list
HostAP <at> lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Eliad Peller | 9 Nov 09:46 2010

netif_carrier_on/eapol processing race condition

hi,

we are working with some old-version wpa_supplicant, and facing a
subtle race condition, but it looks like it exists in the latest
hostap git as well.

upon association, our driver calls netif_carrier_on() and sends an
association event.
the problem is, netif_carrier_on() clears the __LINK_STATE_NOCARRIER
flag immediately, but schedules a later work to do its actual work
(setting the qdiscs).
thus, the association event might come before the qdiscs are ready
(IFF_LOWER_UP flag will be up, though).
moreover, some eapol packet might come in this period, when the driver
is associated, but before the qdiscs are ready. this situation will
result in dropping of the eapol response.
a similar situation can be reproduced by disabling the call to
netif_carrier_on (i.e. the carrier will always be off).

the problem is somewhat similar to the "Delay processing of EAPOL
frames when not associated" patch
(http://lists.shmoo.com/pipermail/hostap/2009-November/020592.html).

does delaying the processing of eapol frames until the carrier is up
sounds like a reasonable solution?
(i implemented such a patch, which seems to work, but it uses some
ugly workaround in order to identify the actual RTM_NEWLINK event)

thanks,
Eliad.

Gmane