Linux wireless drivers development
 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 0/8] Add DFS master ability
Date: Wed, 2 Jan 2013 15:44:16 +0100	[thread overview]
Message-ID: <20130102144416.GA7794@pandem0nium> (raw)
In-Reply-To: <1357134823.9839.41.camel@jlt4.sipsolutions.net>

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

Hello Johannes,

thank you very much for the review!

On Wed, Jan 02, 2013 at 02:53:43PM +0100, Johannes Berg wrote:
> 
> > I'm sending this as patch to keep the versioning, although it can be
> > considered as RFC, I would be suprised if all single channel/single
> > interface aspects were considered correctly. :)
> 
> :)
> 
> I think we need a bit more "design review" first.

Good idea. :D

> 
> To me, the open questions are:
>  * Should switching to a DFS channel be allowed at all? How so, if radar
>    can't be tested before? You just stop the AP instead but userspace
>    can do that just as well.

The idea was to allow counting down the TBTT/count field of the CSA IE within
the driver - this can't be done properly by userspace.

Also, the transmission must be stopped on the new channel, so the idea was
to do this in kernel space right after the counting is finished. The idea
was to skip the additional enable_tx call which was originally proposed,
but it seems to create more troubles than it saves.

So maybe we should go back to enable_tx to re-enable the AP after a
switch into a DFS channel (with block-tx on).

Unlike Victors proposal, I'd suggest to skip enable_tx when starting the
AP the first time - just doing cac/radar_detect and start_ap should be enough.

>  * What happens with multiple virtual interfaces? You allow a single
>    channel context only which makes sense, but that doesn't disallow
>    things like having a client + AP, and then the client switching away
>    because the P2P GO it was connected to randomly decided to switch.
>    This would break radar detection. (1) What should happen in this
>    case?

Actually I thought I had succesfully disabled multiple interfaces in general
when DFS channels are used. Maybe I missed something?

For now, I'd prefer having only a single interface when doing DFS.

>  * To avoid that problem, could restrict to a single virtual interface.
>    However, that's unlikely to be sufficient -- you'd want to still be
>    able to implement multi-BSSID APs which then switch together etc.

Agreed. In the first step, we could allow multi-BSSID APs. When one hostapd
instance controls these APs, it should have enough information to coordinate
the CSAs on all APs. 

>  * That raises another interesting question -- should multiple BSSIDs on
>    the same channel really *all* call the driver's ap_channel_switch()
>    callback? That seems ... strange!

Hmm, the channel should only be switched once, that's right.

What about:
 * set CSA IEs in the beacons of all APs
 * call ap_channel_switch once for all APs on the phy
 * report switched channel back for all APs
 * remove CSA IEs

>  * Do we need any software channel switch handling?

Don't know what you specifically mean.

A more interesting case will be CSAs for IBSS (later), as the beacons are
handled by the drivers/mac80211 only.
> 
> Generally the biggest issue is around multi-channel channel switch
> behaviour I think. Any good ideas?

For the MultiSSID-APs I think it's possible as roughly described above.
However mixed cases like AP+Client or AP+IBSS will be more interesting,
and I don't have any good idea for this yet...

> 
> johannes
> 
> (1) Actually today it would either break the AP (channel contexts NOT
> supported by the driver) or disconnect the client (otherwise)
> 

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

  reply	other threads:[~2013-01-02 14:44 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
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 [this message]
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=20130102144416.GA7794@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