From: Jouni Malinen <j@w1.fi>
To: Eliad Peller <eliad@wizery.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2 3/3] mac80211: don't defer scans in case of radar detection
Date: Sat, 7 Feb 2015 13:57:58 +0200 [thread overview]
Message-ID: <20150207115758.GA503@w1.fi> (raw)
In-Reply-To: <1420645811-17877-3-git-send-email-eliad@wizery.com>
On Wed, Jan 07, 2015 at 05:50:11PM +0200, Eliad Peller wrote:
> Radar detection can last indefinite time. There is no
> point in deferring a scan request in this case - simply
> return -EBUSY.
> diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
> @@ -505,7 +505,7 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
> - if (local->scan_req)
> + if (local->scan_req || ieee80211_is_radar_required(local))
> return -EBUSY;
This seems to be breaking a hwsim test case sequence of ap_vht80plus80
followed by ap_vht80. In such a case, all the HT40 scans for ap_vht80
fail due to this added condition resulting in -EBUSY being returned
every time. It looks like this happens even if I change ap_vht80 to use
the same country code (US) as ap_vht80plus80, so the change in the
country code does not explain this either.
I'm not sure what is causing the issue here, but it looks like something
in ap_vht80plus80 (i.e., an attempt to enable a channel combination that
would require DFS on one of the 80 MHz segments) leaves behind state
that makes ieee80211_is_radar_required(local) return true even when it
shouldn't. DFS for 80+80 is not yet supported, so I'd assume this is
somehow related to that. Anyway, I don't think mac80211 should behave in
this way.
--
Jouni Malinen PGP id EFC895FA
next prev parent reply other threads:[~2015-02-07 11:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 15:50 [PATCH v2 1/3] mac80211: remove local->radar_detect_enabled Eliad Peller
2015-01-07 15:50 ` [PATCH v2 2/3] mac80211: consider only relevant vifs for radar_required calculation Eliad Peller
2015-01-07 15:50 ` [PATCH v2 3/3] mac80211: don't defer scans in case of radar detection Eliad Peller
2015-02-07 11:57 ` Jouni Malinen [this message]
2015-02-07 19:17 ` Janusz Dziedzic
2015-02-08 10:57 ` Eliad Peller
2015-02-08 13:17 ` Janusz Dziedzic
2015-02-08 13:26 ` Eliad Peller
2015-02-08 10:41 ` Eliad Peller
2015-02-08 15:56 ` Jouni Malinen
2015-02-09 8:38 ` Eliad Peller
2015-01-14 8:37 ` [PATCH v2 1/3] mac80211: remove local->radar_detect_enabled 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=20150207115758.GA503@w1.fi \
--to=j@w1.fi \
--cc=eliad@wizery.com \
--cc=linux-wireless@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).