WPA && bridge_packets dont work

Jouni Malinen jkmaline at cc.hut.fi
Tue Sep 28 23:41:22 EDT 2004


On Sun, Sep 26, 2004 at 03:52:54PM +0200, Wilfried Klaebe wrote:

> I think I found it. The packets are dropped, because wlan0 is in state
> BR_STATE_DISABLED. This is because netif_carrier_ok() returns false for
> wlan0. This is because at HW initialisation netif_carrier_down() is
> called (only occurrence in hostap_hw.c), and nowhere later
> netif_carrier_up() is called. There are two occurrences in
> hostap_info.c, but none of them showed up in my logs when I put some
> printks beside them.

> So far, I have no idea where changes should be made, only that they are
> necessary...

netif_carrier was only supposed to be used in client mode, but this was
indeed broken at least with some firmware versions. I think I tested
this with some firmware version when the change was added to CVS and it
seemed to be working in Master mode.. Anyway, I was able to reproduce
the problem case easily with the current firmware release and the devel
snapshot of the driver.

I committed couple of changes to disable netif_carrier_off() calls in
non-client modes. In addition, SIOCSIWMODE handler is now calling
netif_carrier_on() when moving to non-client mode.

I have not tested all combinations yet and would appreciate it if you
could test the current development snapshot and report whether it works
in your setup. I did not yet merge the changes to stable branch, but I
will do this before 0.2.5 release if these seem to fix the problem.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list