linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>,
	linux-wireless@vger.kernel.org, victorg@ti.com,
	linville@tuxdriver.com, kgiori@qca.qualcomm.com,
	zefir.kurtisi@neratec.com, adrian@freebsd.org, j@w1.fi,
	coelho@ti.com, assaf@ti.com, igalc@ti.com, nbd@nbd.name,
	mathias.kretschmer@fokus.fraunhofer.de,
	Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Subject: Re: [PATCHv5 6/8] nl80211/cfg80211: add ap channel switch command
Date: Wed, 2 Jan 2013 16:05:55 +0100	[thread overview]
Message-ID: <20130102150555.GC7794@pandem0nium> (raw)
In-Reply-To: <1357134319.9839.32.camel@jlt4.sipsolutions.net>

[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]

On Wed, Jan 02, 2013 at 02:45:19PM +0100, Johannes Berg wrote:
> On Thu, 2012-12-13 at 14:58 +0100, Simon Wunderlich wrote:
> > From: Victor Goldenshtein <victorg@ti.com>
> > 
> > Add NL80211_CMD_AP_CH_SWITCH command which
> > triggers an AP channel switch process.
> > 
> > Usermode notified about channel switch complete
> > event with NL80211_CMD_CH_SWITCH_NOTIFY.
> > 
> > Usermode (hostapd) is responsible to update the
> > channel switch announcement IE in the beacon
> > prior and after the channel switch operation.
> 
> So ... hostapd is also responsible for counting down the "count"? This
> didn't seem to be the case last I asked?

No, the idea is that hostapd just provides the CSA IE. Decrementing
the TBTT before each beacon should be performed by the low level driver,
as it's the only one which can do that (IMHO). Userspace can't do that.

There is no difference here to Victors proposal.

> 
> Then why is it responsible for creating the CSA IE? Should that be in
> the kernel maybe? Or the IE be given to this command?

Right now, hostapd creates the whole beacon, so we consider it responsible
for doing changes. Or is there any common implemented infrastructure in the
kernel right now to modify the beacon? As far as I know, Mesh and IBSS create 
new beacons on their own (but do not modify them), and APs beacon is supplied by
userspace.

> 
> And then maybe the post-switch beacon IEs should be given to the command
> as well, to avoid races as well as making it easier to manage this with
> smarter firmware (say full-MAC drivers)?

That's not a bad idea actually ...

> 
> Also, we already have an event to notify of an AP channel change, maybe
> that should be used? If not, why not?

The NL80211_CMD_CH_SWITCH_NOTIFY event is already present and not introduced
with this patch, but reused for AP. Which other event do you mean for this
purpose?

Thanks,
	Simon

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2013-01-02 15:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-13 13:58 [PATCHv5 0/8] Add DFS master ability Simon Wunderlich
2012-12-13 13:58 ` [PATCHv5 1/8] cfg80211: add CHAN_MODE_SINGLE_ONLY for DFS use Simon Wunderlich
2013-01-02 13:34   ` Johannes Berg
2012-12-13 13:58 ` [PATCHv5 2/8] cfg/mac80211: add dfs capability to cfg80211_reg_can_beacon() Simon Wunderlich
2013-01-02 13:36   ` Johannes Berg
2013-01-02 14:45     ` Simon Wunderlich
2012-12-13 13:58 ` [PATCHv5 3/8] nl80211/cfg80211: add radar detection command/event Simon Wunderlich
2013-01-02 13:39   ` Johannes Berg
2013-01-03  7:35     ` Simon Wunderlich
2012-12-13 13:58 ` [PATCHv5 4/8] mac80211: " Simon Wunderlich
2013-01-02 13:40   ` Johannes Berg
2013-01-03  7:36     ` Simon Wunderlich
2012-12-13 13:58 ` [PATCHv5 5/8] mac80211: check radar interaction with scan and roc Simon Wunderlich
2012-12-13 13:58 ` [PATCHv5 6/8] nl80211/cfg80211: add ap channel switch command Simon Wunderlich
2013-01-02 13:45   ` Johannes Berg
2013-01-02 15:05     ` Simon Wunderlich [this message]
2013-01-04 13:08       ` Johannes Berg
2012-12-13 13:58 ` [PATCHv5 7/8] mac80211: add ap channel switch command/event Simon Wunderlich
2013-01-02 13:46   ` Johannes Berg
2013-01-03  7:41     ` Simon Wunderlich
2013-01-02 13:47   ` Johannes Berg
2013-01-03  7:47     ` Simon Wunderlich
2013-01-04 13:10       ` Johannes Berg
2012-12-13 13:58 ` [PATCHv5 8/8] nl80211: allow DFS in start_ap Simon Wunderlich
2013-01-02 13:53 ` [PATCHv5 0/8] Add DFS master ability Johannes Berg
2013-01-02 14:44   ` Simon Wunderlich
2013-01-04 13:21     ` 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=20130102150555.GC7794@pandem0nium \
    --to=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=adrian@freebsd.org \
    --cc=assaf@ti.com \
    --cc=coelho@ti.com \
    --cc=igalc@ti.com \
    --cc=j@w1.fi \
    --cc=johannes@sipsolutions.net \
    --cc=kgiori@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mathias.kretschmer@fokus.fraunhofer.de \
    --cc=nbd@nbd.name \
    --cc=siwu@hrz.tu-chemnitz.de \
    --cc=victorg@ti.com \
    --cc=zefir.kurtisi@neratec.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).