[OpenWrt-Devel] VoCore as wireless bridge

Yaroslav Syrytsia me at ys.lc
Mon Jul 6 05:10:39 EDT 2015


Hi,

I am trying to use VoCore (RT5350 board) as wireless bridge with the following wpa_supplicant config:

ctrl_interface=/var/run/wpa.sock
update_config=1
fast_reauth=1
ap_scan=1
network={
        ssid="home_wifi"
        psk=915644af001df2afbcf02df60f3fc27f9f7d7b09f1ac3667bb84e0776ec25e08
}

I do:
# iw dev wlan0 interface add client0 type station
# wpa_supplicant -i client0 -c ./wpa.conf -dd -t

And got log:
1436168056.380440: Successfully initialized wpa_supplicant
1436168057.769320: client0: SME: Trying to authenticate with 00:21:91:8b:61:c4 (SSID='home_wifi' freq=2462 MHz)
1436168057.827220: client0: Trying to associate with 00:21:91:8b:61:c4 (SSID='home_wifi' freq=2462 MHz)
1436168057.874320: client0: Associated with 00:21:91:8b:61:c4
1436168057.989180: client0: WPA: Key negotiation completed with 00:21:91:8b:61:c4 [PTK=CCMP GTK=CCMP]
1436168057.990540: client0: CTRL-EVENT-CONNECTED - Connection to 00:21:91:8b:61:c4 completed [id=0 id_str=]

Kernel side:
Mon Jul 6 07:36:11 2015 kern.info kernel: [130154.440000] client0: authenticate with 00:21:91:8b:61:c4
Mon Jul 6 07:36:11 2015 kern.info kernel: [130154.480000] client0: send auth to 00:21:91:8b:61:c4 (try 1/3)
Mon Jul 6 07:36:11 2015 kern.info kernel: [130154.490000] client0: authenticated
Mon Jul 6 07:36:11 2015 kern.info kernel: [130154.510000] client0: associate with 00:21:91:8b:61:c4 (try 1/3)
Mon Jul 6 07:36:11 2015 kern.info kernel: [130154.520000] client0: RX AssocResp from 00:21:91:8b:61:c4 (capab=0x411 status=0 aid=1)
Mon Jul 6 07:36:11 2015 kern.info kernel: [130154.540000] client0: associated

Looks like everything is fine:
# iwinfo
client0   ESSID: "home_wifi"
          Access Point: 00:21:91:8B:61:C4
          Mode: Client  Channel: 11 (2.462 GHz)
          Tx-Power: 20 dBm  Link Quality: 42/70
          Signal: -68 dBm  Noise: unknown
          Bit Rate: 65.0 MBit/s
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

wlan0     ESSID: "OpenWrt"
          Access Point: 00:0C:43:30:50:F8
          Mode: Master  Channel: 11 (2.462 GHz)
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

As next step, i run: ifconfig client0 172.16.0.31 netmask 255.255.240.0 up

# ping 172.16.0.1
PING 172.16.0.1 (172.16.0.1): 56 data bytes
64 bytes from 172.16.0.1: seq=0 ttl=64 time=2.160 ms
64 bytes from 172.16.0.1: seq=1 ttl=64 time=2.740 ms
^C
--- 172.16.0.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 2.160/2.450/2.740 ms

# route add default gw 172.16.0.1 dev client0
# echo 'nameserver 8.8.8.8' > /etc/resolv.conf
# opkg update && opkg install iperf

HW:
  GW) bcm63168 based router
  PC) connected to gw as 172.16.0.111 on gigabit ethernet port
  VoCore) connected to gw via WiFi (2.4 Ghz)

And run test on VoCore:
# iperf -c 172.16.0.111 -i 5 -t 9999999
------------------------------------------------------------
Client connecting to 172.16.0.111, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 172.16.0.31 port 32956 connected with 172.16.0.111 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 5.0 sec  12.0 MBytes  20.1 Mbits/sec
[  3]  5.0-10.0 sec  11.6 MBytes  19.5 Mbits/sec
[  3] 10.0-15.0 sec  11.5 MBytes  19.3 Mbits/sec
[  3] 15.0-20.0 sec  11.4 MBytes  19.1 Mbits/sec
[  3] 20.0-25.0 sec  11.5 MBytes  19.3 Mbits/sec
[  3] 25.0-30.0 sec  11.6 MBytes  19.5 Mbits/sec
[  3] 30.0-35.0 sec  11.5 MBytes  19.3 Mbits/sec

But sometimes i got this without *ANY* logs or warnings on kernel/wpa_supplicant,
And in this moment ping also fails:

[  3] 205.0-210.0 sec  3.12 MBytes  5.24 Mbits/sec
[  3] 210.0-215.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 215.0-220.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 220.0-225.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 225.0-230.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 230.0-235.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 235.0-240.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 240.0-245.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 245.0-250.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 250.0-255.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 255.0-260.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 260.0-265.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 265.0-270.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 270.0-275.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 275.0-280.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 280.0-285.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 285.0-290.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 290.0-295.0 sec  7.00 MBytes  11.7 Mbits/sec
[  3] 295.0-300.0 sec  11.6 MBytes  19.5 Mbits/sec

OpenWrt version is r46180 with default config. (I just use https://downloads.openwrt.org/snapshots/trunk/ramips/rt305x/openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin )


So, the question is: how i can debug this situation and get additional logs/information about this issue ?

-- 
Regards,
Yaroslav
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list