Project

General

Profile

Actions

Bug #182

closed

Unable to associate with VLANs, ath5k, IC+ IP178C switch, and STP bridge on OpenWrt

Added by Eric Larson about 10 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/03/2014
Due date:
% Done:

0%

Estimated time:

Description

I have a pair of Mikrotik 493AH boards on the bench that work fine with using an ath9k drivers/radio modules, and the following configuration. As soon as I switch out the modules to anything using the ath5k driver, batctl o only shows the originator, and it will not associate with any other radio on the MESH.

/etc/config/batman-adv:
config 'mesh' 'bat0'
option 'gw_bandwidth' '50mbit/50mbit'
option 'gw_mode' 'server'
option 'bridge_loop_avoidance' '1'

/etc/config/wireless:
config wifi-device 'radio0'
option type 'mac80211'
option country 'US'
option channel '149'
option hwmode '11a'
option distance '1000'
option txpower '26'
option diversity '0'
option txantenna '1'
option rxantenna '1'
option path 'pci0000:00/0000:00:12.0'

config wifi-iface 'wmesh'
option device 'radio0'
option ifname 'adhoc0'
option network 'mesh'
option mode 'adhoc'
option encryption 'psk'
option key 'some_22_character_key_'
option ssid 'abcd-efgh'

/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 eth1 bat0'
option 'type' 'bridge'
option 'stp' '1'
option 'proto' 'static'
option 'ipaddr' '169.254.2.11'
option 'netmask' '255.255.0.0'
option 'mtu' '1536'

config 'interface' 'switch'
option 'ifname' 'eth1'
option 'proto' 'none'
option 'auto' '1'

config 'switch' 'eth1'
option 'enable' '1'
option 'reset' '1'
option 'enable_vlan' '1'
option 'mtu' '1536'

config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '0'
option 'vid' '0'
option 'ports' '0 1 8t'

config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '5'
option 'vid' '20'
option 'ports' '2 3 8t'

config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '6'
option 'vid' '6'
option 'ports' '4 5 8t'

config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '7'
option 'vid' '7'
option 'ports' '6 7 8t'

config 'interface' 'mesh'
option 'ifname' 'adhoc0'
option 'proto' 'batadv'
option 'mtu' '1536'
option 'mesh' 'bat0'

Actions #1

Updated by Simon Wunderlich about 10 years ago

the configuration you are showing implies that you are using some kind of OpenWRT. Can you please provide version numbers for OpenWRT and batman-adv?

Also, have you checked whether your ath5k cards work without batman-adv, e.g. by configuring IPs on the Wifi directly without using batman-adv? It is not unlikely that the problem is on the WiFi layer, and not within batman-adv. You can also check "iw adhoc0 station dump" to verify if other stations are actually associated. You may also try to remove encryption of your adhoc device for testing purposes.

Actions #2

Updated by Eric Larson about 10 years ago

Sorry for the slow response.

OpenWRT is version 39772 and batman-adv is 2014.0.0.

iw adhoc0 station dump always shows other stations associated.

I tried removing the encryption, with similar results.

Actions #3

Updated by Antonio Quartulli about 10 years ago

Hi Eric,
have you tried assigning IPs to the adhoc0 interfaces and pinging each other (as simon suggested)?

Actions #4

Updated by Eric Larson about 10 years ago

I've made the following changes to the above /etc/config/network file (at the very end) on one unit:

config 'interface' 'mesh'
option 'ifname' 'adhoc0'
option 'proto' 'static'
option 'ipaddr' '192.168.2.11'
option 'netmask' '255.255.255.0'

I've made the other unit 192.168.2.13

I can ping both 192.168.2.xxx IP addresses, from either end, but not consistently. If I leave both ends idle for a couple of minutes, and then try pinging from 11 to 13, the first 8 packets are lost, and the 9th packet takes just under a minute to return. If I leave them alone for only 30 seconds, pings work from the start. This is without physically moving the devices at all, and only two units on the bench:

/etc/config# ping 192.168.2.13
PING 192.168.2.13 (192.168.2.13): 56 data bytes
64 bytes from 192.168.2.13: seq=9 ttl=64 time=995.797 ms
64 bytes from 192.168.2.13: seq=10 ttl=64 time=0.603 ms
64 bytes from 192.168.2.13: seq=11 ttl=64 time=0.685 ms
64 bytes from 192.168.2.13: seq=12 ttl=64 time=0.671 ms
64 bytes from 192.168.2.13: seq=13 ttl=64 time=0.681 ms
64 bytes from 192.168.2.13: seq=14 ttl=64 time=0.691 ms
64 bytes from 192.168.2.13: seq=15 ttl=64 time=0.682 ms

The 9th packet is always the successful one, and it's always just under a second to return.

Probably not a batman-adv problem. Let me know your thoughts and then you can probably close the ticket.

Actions #5

Updated by Antonio Quartulli about 10 years ago

The interruption you have looks like the node is sending the ARP request and this requires some time (for whatever reason) to get answered. If you leave them alone for few seconds only, then they will both have the old ARP entries and so they do not need to send any request.

This is not a batman-adv problem because batman-adv is not involved at all in this case: you are using the adhoc interfaces directly.

Actions #6

Updated by Eric Larson about 10 years ago

Antonio,

Thanks for your help.

The root problem appears to have been a change to the OpenWrt options in buildroot. There is not a specific wpa_supplicant option for P2P. If I choose that, everything seems to work. The old option of wpad_mini, etc. no longer work.

Please go ahead and close this.

Thanks again.

Actions #7

Updated by Simon Wunderlich about 10 years ago

  • Status changed from New to Closed
Actions #8

Updated by Sven Eckelmann about 7 years ago

  • Status changed from Closed to Rejected
Actions

Also available in: Atom PDF