Skip to contentSkip to conversation

can't add ath5k into bridge on kernel >=2.6.33

ath5k-devel Luis R. Rodriguez 1 participant 1 message Mar 22, 2010 5 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1269153545.8038.8.camel@mj

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1269223392.2656.16.camel@mj

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 21 lines · Jiri Moravec
Quoted 12 lines · Pavel Roskin
Quoted 11 lines · Gus Wirth
Quoted 4 lines · Pavel Roskin

Bridging doesn't work on the station side anyway because the 802.11 header has three addresses (except when WDS is used) omitting the address that would be needed for a station to send or receive a packet on behalf of another system.

But there are ways around that. For example, there is a patch called arpnat that affects ebtables, used by projects like Gargoyle router that does for MAC addresses that IP masquerading does for IP addresses.

Quoted 8 lines
Quoted 3 lines

As such, it is very useful to have a node in managed (station) mode be able to be part of a bridge, as it allows the creation of an essentially transparent connection.

As it stands now, it's more common that users without that patch try to use bridging on the station side. When/if arpnat is applied to the kernel, the check for managed mode interfaces will need to be revised.

Quoted 5 lines

Hi
On some openwrt pages about Gargoyle and arpnat I found link to Felix Fietkau's patch which was finally accepted to vanilla as commit 9bc383de37090ba7ca3ff32a12c9d809dc5867f0. From this point there is probably support for 4addr mode (STATION/AP_VLAN), but what is probably missing is athk5 support for it. Am I correct? Can somebody clarify this?

I only recently got to pick Felix's brain about this. From what I gathered essentially what you need:

* on the STA add the 4-address flag, for now this requires using the iw add 4addr flag, iw should support a change command but I don't think we have it yet on iw.
* on the AP/STA side have support for this feature on the kernel/hostapd side (git versions will do)
* on hostapd use the wds_sta flag
* Add the STA WDS'd interface to the bridge, everything will take care of itself after that

So the STA with 4-address frame support will allow the bridging layer to send 802.3 frames to through the STA interface, it will send it to the AP, the AP with support for this will detect it and create a local interface for the "peer" for sending future frames to it.

If someone can add this to the wiki:

http://wireless.kernel.org/en/users/Documentation/hostapd

it would be appreciated.

Luis