linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulrich Kunitz <kune@deine-taler.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Daniel Drake <dsd@gentoo.org>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: further plan wrt. monitor interfaces
Date: Wed, 8 Aug 2007 00:03:41 +0200	[thread overview]
Message-ID: <20070807220341.GA24236@deine-taler.de> (raw)
In-Reply-To: <1186480002.4067.28.camel@johannes.berg>

Johannes Berg wrote:

> > A bunch
> > of parameters are already set with a single function, only config
> > and config_interface need to be replaced by parameter-specific
> > functions. Reset should be removed. 
> 
> Not sure what reset is for.

Now, we are at least two.

> > add_interface() and
> > remove_interface() are comparable to my enable_mac() and
> > disable_mac() as you discovered. 
> 
> Aha, but they're not fully compatible. First of all, you were talking
> about multiple MACs which isn't something we're going to support
> (multiple MAC addresses yes).

I would state we should the support the functionality that the
device supports. Everything else is "form follows function". 

> Secondly, a WDS and AP interface will be
> running with the same MAC address but have quite different
> configuration. Thirdly, always doing lookups by MAC address (even if it
> were possible which it is not due to WDS vs AP) is rather inefficient.

The MAC address lookup issue could be handled. 

Assuming that the device would be able to create beacons on a
specific MAC address, would it need to know about WDS or AP mode?

> > Tell the driver on the real interface, which packets it should
> > report to the mac80211 stack. 
> 
> That's what I proposed.
> 
> > Don't bother the driver with virtual
> > interfaces. The stack should handle it completely transparently.
> 
> What I'm trying to explain to you is that basically you cannot do that.
> AP vs WDS interfaces, lookups by MAC address, beaconing, ...

Beaconing needs to be supported by the device. AP and WDS are
working on the same MAC address, but why should the people know
about it. It doesn't look into the packets transmitted.

> > Don't call the driver before open() or after stop() is called.
> 
> Do we do that? In any case, it's rather orthogonal to the issue at hand.

Sure. Some drivers support the configuration of the channel before
the device is up. There has been the request for the zd1211rw
driver to shadow the configuration in the device data structure.
But I believe that is something the stack should handle.

Ciao,

Uli

-- 
Uli Kunitz

  reply	other threads:[~2007-08-07 22:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 22:09 further plan wrt. monitor interfaces Johannes Berg
2007-08-03 22:14 ` Johannes Berg
2007-08-03 22:25 ` Johannes Berg
2007-08-03 22:35   ` Johannes Berg
2007-08-03 22:30 ` Johannes Berg
2007-08-03 22:56 ` Daniel Drake
2007-08-04  7:46   ` Ulrich Kunitz
2007-08-05 22:34     ` Daniel Drake
2007-08-06 10:11     ` Johannes Berg
2007-08-06 10:17     ` Johannes Berg
2007-08-06 21:23       ` Ulrich Kunitz
2007-08-07  9:46         ` Johannes Berg
2007-08-07 22:03           ` Ulrich Kunitz [this message]
2007-08-08  9:20             ` Johannes Berg
2007-08-04  7:59   ` Johannes Berg
2007-08-04  7:54 ` Andy Green
2007-08-04 11:22 ` Ivo van Doorn
2007-08-05  6:58   ` Tomas Winkler
2007-08-05  9:29     ` Ivo van Doorn
2007-08-06 10:09       ` 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=20070807220341.GA24236@deine-taler.de \
    --to=kune@deine-taler.de \
    --cc=dsd@gentoo.org \
    --cc=johannes@sipsolutions.net \
    --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).