OpenWrt Forum Archive

Topic: Help: wireless bridge with ath9k?

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a buffalo WZR-HP-G300NH which uses ath9k as wifi driver.
I now try to config it as a wireless bridge, so that

(Desktop)<--------WIRED------>(OpenWRT)<--------Wireless--------->(WRT54G w/Tomato)<------->Internet
                                                  |
(Laptop)<-------11N Wireless----->|


Also want the desktop and laptop to be on the same lan as the main router(192.168.1.0/24).

I tried to add a STA and an AP interface to radio0 but it just wouldn't work.

Can anyone guide me to the right direction?

Thanks!!

(Last edited by uia on 10 Mar 2010, 03:09)

I tried to use sta with wds, and with setting below, the openwrt router can access internet as well as the PC connected on its LAN port.

config wifi-device  radio0
        option type     mac80211
        option channel  1
        option macaddr  <mac_addr>
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        #option disabled 1

config wifi-iface
        option device   radio0
        option network  lan
        option mode     sta
        option ssid     <main_router_ssid>
        option bssid    <main_router_mac>
        option wds      1
        option encryption wep
        option  key     <key>

however, when I try to add an AP like

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     11nssid
        option encryption       psk2
        option key      <key>

then only the openwrt router connects to main router, both wired and wireless client are disconnected -- they can still access the openwrt router though, but not the main gateway.

very confused and clueless.....please help.

there are often problems with openwrt running as wifi-repeater in bridged mode.
I guess, it would be a good idea to try first if a routing /nating setup is working:
STA-interface as WAN-Interface and the AP-interface bridged to the LAN. 

If this is working, you can look for a solution in bridged mode, but as far as I know, bridged repeater were (and maybe are) only working between two atheros-wifis, or two broadcom-wifis, but not in mixed environments. because the atheros implementation is not really wds, it is ap- or stationmode with an extended packageheader (with 4 hardwareaddressfields)

Thanks. But if I understand correctly, putting STA on WAN then AP on LAN will create another NAT LAN behind main NAT router. That might be the last thing I'll do.

To compare, I tried dd-wrt which does the job correctly and surprisingly easy -- I get bridge mode to work in like 10 minutes -- main AP in WDS-STA mode w/ WEP encryption then a VAP in WPA2+AES, and all devices behind dd-wrt get a 192.168.1.0/24 IP address. I noticed that DD-WRT used madwifi as wifi driver so I then flashed back to OpenWrt to try madwifi -- no luck, seems that openwrt madwifi doesn't support this wireless radio at all..

So I currently put dd-wrt on this router, with lots of OpenWrt ipkgs -- from busybox, coreutils to Asterisk -- still would like to get OpenWrt to work but I might just settle with dd-wrt now..

(Last edited by uia on 12 Mar 2010, 22:49)

The discussion might have continued from here.