OpenWrt Forum Archive

Topic: tew 632brp client mode

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

Hi,

I am trying to get this working in client mode.

I want my main router to control dhcp and make this one act as a simple client, no firewall no nothing. So basically when i attach a computer to the ethernet port of the slave router the ip is received from the master router.

I have read so many posts but I can't seem to get it working. I have even tried doing it through LuCI.

TIA,

The ATH9K driver for these wifi chips (ar9102) is brand new, so I don't think anyone has tried it yet wink  We need testers, you are the first.

did you start here? http://wiki.openwrt.org/OpenWrtDocs/Kamikaze/ClientMode

I would suggest start first with no encryption... just to see if station mode is working on the driver.

damn, i can't seem to get it to work i guess i will try it later but my limited linux skill are hindering my performance

ok so i've decided to try this again.

Got it connecting to my main AP, very slow speed 1mbit (but I'm not too worried about that). I followed that howto.

I want it to be a transparent bridge so that the main AP is controlling dhcp and firewall.

How would i disable firewall and dhcp on the 632brp?

thanks

geminijatt wrote:

I want it to be a transparent bridge so that the main AP is controlling dhcp and firewall.  How would i disable firewall and dhcp on the 632brp?

There is an option to disable, see this thread:
http://forum.openwrt.org/viewtopic.php?id=18317

When you get it all tested as working the way you want, do a reboot to make sure you saved it all correctly.  Please post your "uci show wireless" or even a copy of "uci show" (everything).

ok well do, just at work right now.

thanks again

Ok i have hit a wall...again. My 632brp is connecting to my AP (running tomato mlppp). However it is not showing up in my AP where it shows devices that are connected. In addition to that, when i take an ethernet cable from lan port 1 i don't get any internet.

Any ideas? perhaps i have my bridging incorrect, i don't know.

here is my 'uci show' result

dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].filterwin2k=0
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].nonegcache=0
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=100
dhcp.lan.limit=150
dhcp.lan.leasetime=12h
dhcp.lan.ignore=1
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth=on
dropbear.@dropbear[0].Port=22
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
fstab.@mount[0]=mount
fstab.@mount[0].target=/home
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].fstype=ext3
fstab.@mount[0].options=rw,sync
fstab.@mount[0].enabled=0
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].enabled=0
httpd.@httpd[0]=httpd
httpd.@httpd[0].port=80
httpd.@httpd[0].home=/www
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.ifname=eth0
network.lan.type=bridge
network.lan.proto=static
network.lan.ipaddr=192.168.1.3
network.lan.netmask=255.255.255.0
system.@system[0]=system
system.@system[0].hostname=OpenWrt
system.@system[0].timezone=UTC
wireless.wlan0=wifi-device
wireless.wlan0.type=mac80211
wireless.wlan0.channel=1
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=wlan0
wireless.@wifi-iface[0].network=lan
wireless.@wifi-iface[0].mode=sta
wireless.@wifi-iface[0].ssid=Punjab
wireless.@wifi-iface[0].encryption=wep
wireless.@wifi-iface[0].key=5551112222

can you ping your router from the trendnet?  what about from connected cabled client?  try other than WAN port for Ethernet.  You are the first to try client; don't give up.  If I find time later tonight I'll see if I can get it working

i will definitely keep trying as i need this to work...lol.

I will try to ping my main AP from the trendnet tonite after work.

I can't quite understand why the bit rate is only 1Mb/s but i guess drivers are still in the experimental stage

okay so i can ping the main AP from the trendnet. However when i connect my laptop to the lan port it does not get an IP automatically. I have even set an ip address for the laptop in the static dhcp section of the main AP. I can't seem to get an ip from the main AP for my laptop. I had to set the ip of the laptop manually but it still cannot access the internet or main AP.

Any further luck on this?

no nothing yet...i'm trying to do some more research on linux and what commands i can use.

Tried few latest builds, same result in client mode:
1. iwconfig shows connection to AP at 1Mb speed.
2. LAN DHCP is not working, need to set IP address on PC manually.
3. Can't ping AP or PC from telnet.

What next to try?

I have two of these Trendnets.  One running the DLink firmware setup as WPA2-AES, the other running latest trunk build of OpenWRT.  I've tried:

uci set wireless.wlan0.channel=auto
uci set wireless.@wifi-iface[0].mode=sta
uci set wireless.@wifi-iface[0].ssid=DLINK_DIR-615_C1_STOCK_WPA_AES
uci set wireless.@wifi-iface[0].encryption=psk2
uci set wireless.@wifi-iface[0].key=mywpa2pass

wifi down / wifi up

But iwconfig does not show it associated.  Anyone with more experience with OpenWRT?

For reference, here is "iwlist scan" for that AP:

          Cell 07 - Address: 00:14:D1:5B:22:59
                    ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
                    Mode:Master
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=100/100  Signal level:-38 dBm  
                    Encryption key:on
                    IE: Unknown: 001E444C494E4B5F4449522D3631355F43315F53544F434B5F5750415F414553
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 03010B
                    IE: Unknown: 0706555320010B1B
                    IE: Unknown: 200100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD180050F2020101070003A4000027A4000042435E0062322F00
                    IE: Unknown: DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 2D1A4E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: DD1A00904C340B071900000000000000000000000000000000000000
                    IE: Unknown: 3D160B071900000000000000000000000000000000000000
                    IE: Unknown: DD0900037F01010000FF7F
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=00000003fc2b25a8
                    Extra: Last beacon: 130ms ago

(Last edited by RoundSparrow on 2 Feb 2009, 22:12)

ok, doh.  mine worked fine once I installed wpa_supplicant package on my build.

ok, I uploaded my own build with wpa_supplicant and luci web interface.  svn 14379 is what you want.  Client mode works fine for me, but the the ath9k performance is horrible wink getting 2500ms ping times.  http://sites.google.com/site/stephengutknecht/

I can ping main AP only if I set router to the same subnet, nothing works beyond that.

so I'm getting crashes in client mode, I killed my watchdog process and got this when using the driver in client mode:

------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:227 ()
NETDEV WATCHDOG: eth1 (ag71xx): transmit timed out
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate hmac ecb cbc crypto_hash cryptomgr crypto_blkcipher aead crypto_algapi [last unloaded: ath9k]
Call Trace:[<80086234>] 0x80086234
[<8006f690>] 0x8006f690
[<8006f690>] 0x8006f690
[<80085344>] 0x80085344
[<800b52a4>] 0x800b52a4
[<c01e353c>] 0xc01e353c
[<c01e353c>] 0xc01e353c
[<801b3150>] 0x801b3150
[<8009da3c>] 0x8009da3c
[<8009daa4>] 0x8009daa4
[<800a4624>] 0x800a4624
[<8009cec4>] 0x8009cec4
[<801b8f28>] 0x801b8f28
[<801cbf34>] 0x801cbf34
[<8009db40>] 0x8009db40
[<801cbdd0>] 0x801cbdd0
[<8008f094>] 0x8008f094
[<800aafd4>] 0x800aafd4
[<8008a978>] 0x8008a978
[<8008a410>] 0x8008a410
[<800ac788>] 0x800ac788
[<8008a4fc>] 0x8008a4fc
[<8006082c>] 0x8006082c
[<80060a00>] 0x80060a00
[<8006c240>] 0x8006c240
[<80060a20>] 0x80060a20

---[ end trace 88677b30bb43dbb4 ]---

Just picked up a DIR-615. Excellent performance in AP mode, horrible in Client. The wireless connection is stable, 2-5ms ping times for 24 hours straight and no drops, but sits at 1mbit/sec in client mode. I currently have a small network of computers bridged wirelessly using this device.

Interestingly enough, I'm also handling a separate AP network with this router... so one AP mode network and one client mode at the same time. I am able to connect at full 54mb/s in G mode(over 1mbyte/sec transfers) on the AP side, but the client side only connects at 1mbit/s(70-90kbyte/sec transfers). This confuses me, because all other devices I've worked with virtual interfaces on limit both connections to the same datarate...

As a sidenote, the LUCI web interface is REALLY snappy compared to my wrt54gs v1 and asus wl500gp...I'm guessing that's the result of MIPS vs ARM...plus the extra 200mhz of clock cycles to make use of.

Also, thank you RoundSparrow for your builds, I'm currently using your march 8th dir-615 binaries. Saved me the time of reconfiguring my build machine =P

First off, thanks to RoundSparrow for all his attention to this chipset!

I have build r14959 installed on a TEW-652BRP. I want it to work as a client bridge. The unit connects to my AP just fine. The speed isn't too bad. I get about 1.2MB/s on a scp transfer. My problem is the bridging. I can not convince the unit to send packets from the lan ports over the wireless client connection and vice versa (tcp/icmp/arp).

my current config (firewall and dnsmasq are off. no wireless encryption)

*** /etc/config/wireless ***
config wifi-device  wlan0
    option type     mac80211
    option channel  11
    option disabled 0

config wifi-iface
    option device    wlan0
    option network    lan
    option mode    sta
    option ssid    'foobar'
    option encryption none

*** /etc/config/network ***
config interface loopback
    option ifname    lo
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0

config interface lan
    option ifname    eth0
    option type    bridge
    option proto    static
    option ipaddr    10.10.1.10
    option netmask    255.255.255.0

config interface wan
    option ifname    eth1
    option proto    none

*** output from 'route' command ***
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.1.0       *               255.255.255.0   U     0      0        0 br-lan

*** output from 'brctl show' command ***
bridge name    bridge id        STP enabled    interfaces
br-lan        8000.028856465526    no        eth0
                                                 wlan0

current behavior:
I plug my laptop's ethernet port into one of the lan ports on the openwrt device.
I configure my laptop's address as 10.10.1.234.
the laptop can ping and remote into the openwrt device.
the laptop can not ping the normal gateway IP (10.10.1.1)
When I remote into the openwrt device, the openwrt device is able to ping the gateway and all hosts on my network.

anyone have any advice?

thanks in advance

Anyone ever have any luck with this? I've been fiddling with it for a while now and everything looks good but it just won't actually bridge traffic.

I'm running r15686, but am open to trying any other versions. In fact, if no one's had any success client bridging with openwrt, how about other firmware that will run on the 652? My wife's pretty tired of the wire running across the house...

Hi I just went a few rounds with the same atheros chip set on a wrt160nl, attempting to get client bridge mode working. I experienced the 1 mbit/sec and inability to forward packets over the client bridge. Client bridging is NOT supported and NEVER will be in the ath9k driver (which I think must be used here). The reason for this is given here https://dev.openwrt.org/ticket/5749 I hope this saves someone else a few days.

Regards

Herb Swanson

(Last edited by herbswanson on 16 Sep 2009, 21:09)

The discussion might have continued from here.