All of lore.kernel.org
 help / color / mirror / Atom feed
From: Victor Goldenshtein <victorg@ti.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: <linux-wireless@vger.kernel.org>, <kgiori@qca.qualcomm.com>,
	<mcgrof@frijolero.org>, <zefir.kurtisi@neratec.com>,
	<adrian.chadd@gmail.com>, <j@w1.fi>, <coelho@ti.com>,
	<assaf@ti.com>, <igalc@ti.com>, <adrian@freebsd.org>,
	<nbd@nbd.name>, <simon.wunderlich@s2003.tu-chemnitz.de>
Subject: Re: [PATCH v4 1/6] nl80211/cfg80211: add radar detection command/event
Date: Sun, 21 Oct 2012 18:40:09 +0200	[thread overview]
Message-ID: <50842569.5000602@ti.com> (raw)
In-Reply-To: <1350414099.10177.13.camel@jlt4.sipsolutions.net>

On 16/10/2012 21:01, Johannes Berg wrote:
> On Sun, 2012-10-14 at 16:48 +0200, Victor Goldenshtein wrote:
>
>> + * @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.
>
> You're missing docs for cac_started
>

missed that..

> I'll fix it if I don't have any comments on the other patches and the
> answer to my question below doesn't mean a change:
>
>> +++ b/net/wireless/nl80211.c
>> @@ -1411,6 +1411,7 @@ static int __nl80211_set_channel(struct cfg80211_registered_device *rdev,
>>   			result = -EINVAL;
>>   			break;
>>   		}
>> +		channel->cac_started = false;
>
> Why this? If the device supports channel contexts then maybe one vif
> could set the channel and the other could be doing radar detection? But
> anyway this only presets the channel, so nothing will happen until the
> AP interface is started? So basically I don't understand this at all.

Here we just clearing the cac_started flag, this was previously done in 
the ieee80211_do_stop() for the "sdata->wdev.preset_chan", but as we 
didn't want to modify cfg80211 fields from mac I suggested to move it here.

I"ll try to clarify things a bit, the channel availability check (CAC) 
could be started during:
1. AP init phase - when AP is configured on DFS channel.
2. As a result of a channel switch - AP moved to a DFS channel.

In both cases we set the cac_started flag from the 
nl80211_start_radar_detection() and clear it:
1. As a result of radar event.
2. In __nl80211_set_channel() - to cover the case when the CAC was 
initiated on a "preset_chan" (during AP init phase) and the IF was 
removed before the AP was even started (local->oper_channel wasn't set yet).


-- 
Thanks,
Victor.

  parent reply	other threads:[~2012-10-21 16:41 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14 14:48 [PATCH v4 0/6] nl/cfg/mac80211: add DFS master ability Victor Goldenshtein
2012-10-14 14:48 ` [PATCH v4 1/6] nl80211/cfg80211: add radar detection command/event Victor Goldenshtein
2012-10-16 19:01   ` Johannes Berg
2012-10-17 16:20     ` Zefir Kurtisi
2012-10-17 16:23       ` Johannes Berg
2012-10-21 16:40     ` Victor Goldenshtein [this message]
2012-10-22 12:55       ` Johannes Berg
2012-11-01  7:54         ` Victor Goldenshtein
2012-11-05 15:21           ` Johannes Berg
2012-11-13 15:04             ` Victor Goldenshtein
2012-11-13 18:05               ` Simon Wunderlich
2012-11-20 15:14                 ` Victor Goldenshtein
2012-11-26 10:52                   ` Johannes Berg
2012-11-14 11:19               ` Johannes Berg
2012-11-20 15:15                 ` Victor Goldenshtein
2012-11-14 12:32             ` Michal Kazior
2012-11-14 12:38               ` Johannes Berg
2012-11-20 15:15                 ` Victor Goldenshtein
2012-11-26 10:51                   ` Johannes Berg
2012-10-14 14:48 ` [PATCH v4 2/6] mac80211: " Victor Goldenshtein
2012-10-14 14:48 ` [PATCH v4 3/6] nl80211/cfg80211: add ability to enable TX on op-channel Victor Goldenshtein
2012-10-14 14:48 ` [PATCH v4 4/6] mac80211: " Victor Goldenshtein
2012-10-16 19:03   ` Johannes Berg
2012-10-21 16:40     ` Victor Goldenshtein
2012-10-14 14:48 ` [PATCH v4 5/6] nl80211/cfg80211: add ap channel switch command Victor Goldenshtein
2012-10-16 19:06   ` Johannes Berg
2012-10-21 16:40     ` Victor Goldenshtein
2012-10-22 12:52       ` Johannes Berg
2012-11-01  7:54         ` Victor Goldenshtein
2012-11-05 15:27           ` Johannes Berg
2012-11-13 15:04             ` Victor Goldenshtein
2012-10-23  6:20   ` Michal Kazior
2012-11-01  7:54     ` Victor Goldenshtein
2012-11-01 17:15       ` Adrian Chadd
2012-11-01 19:32         ` Johannes Berg
2012-11-05 15:29       ` Johannes Berg
2012-11-13 15:04         ` Victor Goldenshtein
2012-10-14 14:48 ` [PATCH v4 6/6] mac80211: add ap channel switch command/event Victor Goldenshtein
2012-10-16 19:07   ` Johannes Berg
2012-10-21 16:40     ` Victor Goldenshtein
2012-10-22 12:56       ` Johannes Berg
2012-11-01  7:54         ` Victor Goldenshtein
2012-11-05 15:23           ` Johannes Berg
2012-11-13 15:04             ` Victor Goldenshtein
2012-11-14 11:23               ` Johannes Berg
2012-11-14 12:19                 ` Michal Kazior
2012-11-14 12:38                   ` Johannes Berg
2012-11-20 15:15                     ` Victor Goldenshtein
2012-11-26 10:50                       ` Johannes Berg
2012-11-20 15:15                 ` Victor Goldenshtein
2012-11-26 10:50                   ` 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=50842569.5000602@ti.com \
    --to=victorg@ti.com \
    --cc=adrian.chadd@gmail.com \
    --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=mcgrof@frijolero.org \
    --cc=nbd@nbd.name \
    --cc=simon.wunderlich@s2003.tu-chemnitz.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.