From: Zefir Kurtisi <zefir.kurtisi@neratec.com>
To: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org,
mathias.kretschmer@fokus.fraunhofer.de,
Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Subject: Re: [PATCH] mac80211: fix recalc_radar hwconf sync problem
Date: Fri, 05 Apr 2013 14:11:36 +0200 [thread overview]
Message-ID: <515EBF78.5020006@neratec.com> (raw)
In-Reply-To: <20130405112921.GA29188@pandem0nium>
On 04/05/2013 01:29 PM, Simon Wunderlich wrote:
> Hello Zefir,
>
>
> Thanks for explaining, I could now see what's happening. I've added another
> debug messages for "DFS not enabled" in the other case. What I get when running
> your example (and with my patch applied) is:
>
> NOTE: hostapd started
> [ 668.576380] ath: phy0: DFS not enabled at freq 5540
> [ 668.594108] ath: phy0: DFS enabled at freq 5540
> [ 672.607996] ath: phy0: DFS enabled at freq 5540
> [ 672.928911] ath: phy0: DFS enabled at freq 5540
> [ 672.939416] ath: phy0: DFS enabled at freq 5540
> [ 704.128876] ath: phy0: DFS enabled at freq 5540
> NOTE: radar triggered here
> [ 704.138482] ath: phy0: DFS enabled at freq 5240
> [ 704.149684] ath: phy0: DFS not enabled at freq 5240
>
> Now what happens is:
> 1. vif_use_channel() calls ieee80211_new_chanctx(), which calls ieee80211_hw_config().
> radar flags are not "recalc"d, so the previous value is used
> 2. Later in vif_use_channel(), ieee80211_recalc_radar_chanctx() is called, which
> sets the radar flag and calls ieee80211_hw_config() again.
>
> As you can see in the output, the right value is applied ~10 - 20ms after the wrong
> value, at least with the patch originally posted here.
>
> Of course this is not beautiful, but should work in practice.
>
> We could consider changing this by already applying the correct radar flag in
> ieee80211_new_chanctx()? If you want, I can post a patch for that. SMPS probably
> has a similar problem to have the wrong value you set for a short time ...
>
>
Thanks for double-checking, Simon.
I failed to see the obvious (that ath_config() is called immediately again with
the correct DFS flag), sorry for raising dust.
Whether fix it or not, I'd say it is good enough for ath9k. Might be different for
other chips that don't allow enabling radar detection on non-DFS channels (even if
it is only for some ms).
Cheers,
Zefir
next prev parent reply other threads:[~2013-04-05 12:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 16:39 [PATCH] mac80211: fix recalc_radar hwconf sync problem Simon Wunderlich
2013-04-03 12:46 ` Johannes Berg
2013-04-04 13:38 ` Zefir Kurtisi
2013-04-04 18:22 ` Simon Wunderlich
2013-04-05 10:08 ` Zefir Kurtisi
2013-04-05 10:11 ` Zefir Kurtisi
2013-04-05 11:29 ` Simon Wunderlich
2013-04-05 12:11 ` Zefir Kurtisi [this message]
2013-04-05 11:22 ` Johannes Berg
2013-04-05 12:16 ` Simon Wunderlich
2013-04-05 12:36 ` Johannes Berg
2013-04-08 11:51 ` Simon Wunderlich
2013-04-08 12:09 ` [PATCHv2] " Simon Wunderlich
2013-04-08 14:17 ` Zefir Kurtisi
2013-04-08 14:29 ` Johannes Berg
2013-04-08 17:04 ` [PATCHv3] " Simon Wunderlich
2013-04-08 17:53 ` Antonio Quartulli
2013-04-08 20:43 ` [PATCHv4] " Simon Wunderlich
2013-04-09 9: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=515EBF78.5020006@neratec.com \
--to=zefir.kurtisi@neratec.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=mathias.kretschmer@fokus.fraunhofer.de \
--cc=simon.wunderlich@s2003.tu-chemnitz.de \
--cc=siwu@hrz.tu-chemnitz.de \
/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.