Sat Apr 12 11:13:04 EDT 2008

wds / apsta


Limitations: There are certain limitations when combining modes. Only
the following mode combinations are supported:

    * Broadcom:
          o 1x sta, 0-3x ap
          o 1-4x ap
          o 1x adhoc

      WDS links can only be used in pure AP mode and cannot use WEP
      (except when sharing the settings with the master interface,
      which is done automatically).

which makes me wonder if it's at all possible to use combined station
and ap mode on the wrt54g? thought that was only possible with



  The latest (4.150) broadcom drivers added support for multiple bssid

also: check 'wlc' command instead of wl.

some solution using 'apsta' mode:

ere's what I use for routed client mode (sta) on my WRT54GL running Kamikaze - your mileage may vary -


config switch eth0
        option vlan0    "0 1 2 3 4 5*"

config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr
        option netmask

config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr
        option netmask

config interface wan
        option ifname   wl0
        option proto    dhcp


config wifi-device              wl0
        option type             broadcom

config wifi-iface
        option device           wl0
        option network          wan
        option mode             sta
        option ssid             linksys

## For having a repeater AP, comment this section out if you don't want it
config wifi-iface
        option device           wl0
        option network          lan
        option mode             ap
        option ssid             OpenWrt
        option encryption       psk2
        option key              'a-wpa-key-goes-here'

If the IP of the AP you're connecting to is, make sure you change network.lan.ipaddr to something else.


this needs to sink in a bit. but it looks like repeater AP is really
no problem.. enough for today. it's fun to play with these things, but
sometimes a bit difficult to work around bugs and missing features..

let's see what the constraints are:
  * need wrt54g as client -> better antennas.
  * if possible, run it in repeater mode (apsta)

then, on the PC client side a lot of things are possible. probably
leaving one fonera + the netgear hub is going to be good enough.

so.. in order to figure out how it works, somehow sniff the commands
that get sent to wlc.