I'm trying to create following network scheme:
[wire clients]--wrt54g[1]-
[wire clients]--wrt54g[2]--->wireless-->wrt54g[0]--LAN
/
[wire clients]--wrt54g[3]-/
wrt54g[0] should route and 1-3 should bridge their lan-wifi interfaces.
(thus there would be one hop going from wire client to LAN)
So far I've encountered number of problems:
1. I couldn't get wrt54g working when mode is STA and eth1 belongs to bridge: ifconfig shows no packets are received.
If mode is changed to WET it seems to start working, but very unreliably (many packet losses). I can bridge when in AP mode (this is default) fine.
2. I couldn't get WPA working on wrt54g acting as client. I've tried both,
-A and -S modes.
I've found in http://www.seattlewireless.net/index.cgi/LinksysWrt54g
about wl_sta.o module, which should be used if wrt54g is in client mode: but couldn't find that file in any linksys source package.
Then I've tried using WDS, better luck here, wds works ok in bridge and I can bridge eth1 "alone", thus getting router instead of bridge.
Performance is almost twice as bad (using only 2 devices), STA-to-AP would get me ~2.7MB/s, wds only ~1.5MB/s.
Next problem is reconnection: after simulating one device power failure, link usually doesn't get reestablished until second device is rebooted: I've solved it using custom script to "wl reboot" if partner can't be reached, but it's not long term solution.
Please post any ideas and comments.