linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jochen Friedrich <jochen@scram.de>
To: Holger Schurig <holgerschurig@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [Patch] iw: Implement set 4addr.
Date: Mon, 04 Oct 2010 11:00:19 +0200	[thread overview]
Message-ID: <4CA997A3.7080409@scram.de> (raw)
In-Reply-To: <201010040915.58549.holgerschurig@gmail.com>

  Hi Holger,

Am 04.10.2010 09:15, schrieb Holger Schurig:
>> +	"Set interface 4addr (WDS) mode.\n");
> Hi Jochen !
>
> Do you know if this feature can also be used to operate an Ethernet-Bridge on
> on a WLAN client?
>
> I'd like to get something like this going, with eth0|wlan0 as a bridge, so
> that any protocol/port on the "DEVICE" is reachable from the network:
>
> +--------+   +------------+   +----+   +---------+
> | DEVICE +---+ eth0|wlan0 +---+ AP +---+ network |
> +--------+   +------------+   +----+   +---------+
>                 Linux 2.6.x
>                 w/ mac80211
>

Yes, that's the idea behind this. I'm using an OpenWRT based WLAN router 
and a Debian client with the configuration below.

 From my tests, it looks like

- b43legacy runs OK in this mode (tested on MN700).
- ath9k has some issues with the promisc mode (if DEVICE talks to 
another AP client, the bridge might add the DEVICE MAC address to wlan0 
as soon as AP sends the frame originating from DEVICE to the AP client).
- iwlagn sometimes looses the connection after a hw scan. I'm currently 
wondering if this might be a problem of ath5k (my AP is a WGT634U) not 
ignoring PM frames in non-4addr frame format. Unfortunately, WGT634U 
builds are currently broken in OpenWRT, so I can't test more recent 
ath5k versions without major efforts.

Thanks,
Jochen

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet manual
     pre-up iw wlan0 set 4addr on

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet dhcp
     bridge_ports wlan0 eth0
     bridge_fd 0
     bridge_stp off
     wpa-ssid <my ssid>
     wpa-psk <my password>
     wpa-bridge br0
     wpa-iface  wlan0


  reply	other threads:[~2010-10-04  9:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 17:40 [Patch] iw: Implement set 4addr Jochen Friedrich
2010-10-04  7:15 ` Holger Schurig
2010-10-04  9:00   ` Jochen Friedrich [this message]
2010-10-04 13:02     ` Holger Schurig
2010-10-04 13:28       ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CA997A3.7080409@scram.de \
    --to=jochen@scram.de \
    --cc=holgerschurig@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).