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 3/8] nl80211/cfg80211: add radar detection command/event
Date: Thu, 3 Jan 2013 08:35:39 +0100 [thread overview]
Message-ID: <20130103073539.GA20780@pandem0nium> (raw)
In-Reply-To: <1357133940.9839.26.camel@jlt4.sipsolutions.net>
[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]
On Wed, Jan 02, 2013 at 02:39:00PM +0100, Johannes Berg wrote:
> On Thu, 2012-12-13 at 14:58 +0100, Simon Wunderlich wrote:
>
> > +++ b/include/net/cfg80211.h
> > @@ -133,6 +133,11 @@ enum ieee80211_channel_flags {
> > * to enable this, this is useful only on 5 GHz band.
> > * @orig_mag: internal use
> > * @orig_mpwr: internal use
> > + * @radar_detect_timeout: this timeout indicates the end of the channel
> > + * availability check for radar channels (in jiffies), only after this
> > + * period the user may initiate the tx on the channel.
> > + * @cac_type: indicates that channel availability check is started for this
> > + * channel type.
> > */
> > struct ieee80211_channel {
> > enum ieee80211_band band;
> > @@ -145,6 +150,9 @@ struct ieee80211_channel {
> > bool beacon_found;
> > u32 orig_flags;
> > int orig_mag, orig_mpwr;
> > + unsigned long radar_detect_timeout;
> > + enum nl80211_channel_type cac_type;
> > + bool cac_started;
>
> Since we lock a channel, all of these should probably move to the
> rdev/wiphy struct, I think.
Hm, but when we have completed CAC on phy A, we could use the same
channel on phy B too, right?
That would be handy if one has two WiFi module and uses one only for
CAC/radar detection (e.g. checking other channels), and another one
doing the real AP service.
>
> And then the code checking channel contexts needs to be extended to not
> allow another while a channel context is in use:
>
> > + mutex_lock(&rdev->devlist_mtx);
> > + err = cfg80211_can_use_chan(rdev, wdev, chandef.chan,
> > + CHAN_MODE_SINGLE_ONLY);
> > + mutex_unlock(&rdev->devlist_mtx);
>
> This only does a spot check, keeping state needs to be handled
> separately.
I've extended cfg80211_can_use_iftype_chan() to check for other contexts
in the patch 1 of this series. This should make sure that only one single
mode context can be added, and it can't be added if other contexts are already
present. So you say that is not sufficient?
I guess I'm still not fully understanding the channel context concept ...
Cheers,
Simon
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2013-01-03 7:35 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 [this message]
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
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=20130103073539.GA20780@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