linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC 00/12] multi-channel support
Date: Tue, 27 Mar 2012 17:00:25 +0200	[thread overview]
Message-ID: <1332860425.3501.3.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4F71D17F.6090405@tieto.com>

On Tue, 2012-03-27 at 16:41 +0200, Michal Kazior wrote:
> Johannes Berg wrote:
> > Ok, so ... I think we're getting to the bottom of our misunderstanding&
> > confusion. I've completely ignored scan/off-channel in this because I
> > don't have to handle it in software, our device handles it itself. It
> > seems from this that you do need it handled in software.
> 
> No, not really. I was just worried as to not break things and maybe 
> improve them as a bonus.

Ah, ok. I agree we should be careful to not break things, but I don't
think we should do more than we have to. In particular, I think adding
multi-channel software implementation is too much :-)


> > Now let's go back to the question of off-channel/scan -- this seems to
> > be the fundamental difference in how we look at things. First, the same
> > thing applies here. SW scanning in mac80211 right now is very
> > inefficient when you try to do background scanning, since it doesn't
> > synchronise with beacons etc. With multiple virtual interfaces, this
> > will only get worse. With multiple channels, probably more so.
> >
> > Then also I'm in a bit of a luxurious position -- our device implements
> > scanning and off-channel all by itself. For this reason, but also
> > because of the timing, I've always wanted to ignore off-channel and
> > scanning in the multi-channel code as much as possible.
> >
> > Your proposal to add temporary channel contexts might be feasible, but I
> > wonder how complex it would become and how much of it can really be
> > shared? I expect that ath9k will implement multi-channel completely in
> > software, and any scheduler there would probably also roll in
> > scanning/off-channel. (Not that I know, I don't work for QCA :) )
> 
> It would be nice if someone from Atheros camp could give us a hint on that.

Yeah, though I'm not sure I care at this stage? I'm sure when (if?) they
implement this they can come up with a proposal, and if it ends up being
useful for somebody else at some point then they can work together to
design the code to handle it all.


> > Would that seem okay to you? I'd rather leave this complexity out of
> > mac80211, not just for complexity reasons but also to make the API have
> > easier semantics.
> 
> I get the general idea but I can't imagine any detailed examples. I'm 
> yet to fully understand mac80211 and other drivers/devices.

Ok. Basically I'm punting software-off-channel/-scan in multi-channel
context -- is that something you could work with for your device? Does
your device have hw-scan/hw-off-channel?


johannes


  reply	other threads:[~2012-03-27 15:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 12:21 [RFC 00/12] multi-channel support Michal Kazior
2012-03-23  9:29 ` Johannes Berg
2012-03-23 14:03   ` Michał Kazior
2012-03-23 14:31     ` Johannes Berg
2012-03-26 12:27       ` Michal Kazior
2012-03-26 12:45         ` Johannes Berg
2012-03-27 11:42           ` Michal Kazior
2012-03-27 11:59             ` Johannes Berg
2012-03-23 15:01     ` Johannes Berg
2012-03-23 15:06       ` Johannes Berg
2012-03-26 12:29       ` Michal Kazior
2012-03-26 13:19         ` Johannes Berg
2012-03-27 14:41           ` Michal Kazior
2012-03-27 15:00             ` Johannes Berg [this message]
2012-03-28  6:12               ` Michal Kazior

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=1332860425.3501.3.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michal.kazior@tieto.com \
    /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).