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 7/8] mac80211: add ap channel switch command/event
Date: Thu, 3 Jan 2013 08:47:32 +0100 [thread overview]
Message-ID: <20130103074732.GD20780@pandem0nium> (raw)
In-Reply-To: <1357134469.9839.35.camel@jlt4.sipsolutions.net>
[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]
On Wed, Jan 02, 2013 at 02:47:49PM +0100, Johannes Berg wrote:
> On Thu, 2012-12-13 at 14:58 +0100, Simon Wunderlich wrote:
>
> > + mutex_lock(&local->mtx);
> > + if (local->ap_cs_chandef.chan->flags & IEEE80211_CHAN_RADAR) {
> > + sdata_info(sdata, "changing to DFS channel\n");
> > + /* when changing to a DFS channel, stop AP. Userspace must
> > + * restart AP or do start radar detection first.
> > + */
> > + stop_ap = true;
>
> I don't see any value in this. You might just as well simply forbid
> requesting a channel change to a DFS channel, hostapd could then stop
> instead of doing the switch.
>
We explicitly want the channel switch, this was the original idea in 802.11h
- announce the next channel, then switch. To announce the next channel, we
need to allow this.
As discussed before, doing stop_ap here is probably not a good idea. We
can change that back to let the driver disable transmissions and expect
an explicit enable_tx call from userspace after CAC on the new channel.
> > + } else {
> > + /* update the device channel directly */
> > + sdata_info(sdata, "changing to non-DFS channel\n");
> > +
> > + /* TODO: _oper_channel is deprecated ... use
> > + * vif_release/use_channel instead? In this case, we must make
> > + * sure that interface is down first ...
> > + */
>
> Well, most likely need to modify the existing channel context instead.
> However, that's tricky, and what if there are other interfaces, what
> happens to those?
That's a fair question ... for the current DFS implementation, I except to
only have one interface (single only context) - for now. We have the same
discussion in the other thread (general design questions), so let's discuss
it there.
Cheers,
Simon
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2013-01-03 7:47 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 [this message]
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=20130103074732.GD20780@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