From: Luca Coelho <luca@coelho.fi>
To: linux-wireless@vger.kernel.org
Cc: johannes@sipsolutions.net, michal.kazior@tieto.com,
sw@simonwunderlich.de, bzhao@marvell.com, arend@broadcom.com
Subject: Re: [PATCH v7 3/5] cfg80211/mac80211: move interface counting for combination check to mac80211
Date: Mon, 03 Mar 2014 17:17:01 +0200 [thread overview]
Message-ID: <1393859821.13669.119.camel@dubbel> (raw)
In-Reply-To: <1393492497-29500-4-git-send-email-luca@coelho.fi>
On Thu, 2014-02-27 at 11:14 +0200, Luca Coelho wrote:
> diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
> index 42c6592..2e537eb 100644
> --- a/net/mac80211/chan.c
> +++ b/net/mac80211/chan.c
> @@ -513,6 +513,7 @@ int ieee80211_vif_use_channel(struct ieee80211_sub_if_data *sdata,
> {
> struct ieee80211_local *local = sdata->local;
> struct ieee80211_chanctx *ctx;
> + u8 radar_detect_width;
> int ret;
>
> lockdep_assert_held(&local->mtx);
> @@ -520,6 +521,22 @@ int ieee80211_vif_use_channel(struct ieee80211_sub_if_data *sdata,
> WARN_ON(sdata->dev && netif_carrier_ok(sdata->dev));
>
> mutex_lock(&local->chanctx_mtx);
> +
> + radar_detect_width = cfg80211_chandef_dfs_required(local->hw.wiphy,
> + chandef,
> + sdata->vif.type);
> + if (radar_detect_width < 0) {
> + ret = radar_detect_width;
> + goto out;
> + }
> +
> + sdata->radar_required = radar_detect_width;
> +
> + ret = ieee80211_check_combinations(sdata, chandef, mode,
> + radar_detect_width);
> + if (ret < 0)
> + goto out;
I screwed up here during my interactive rebase to make
cfg80211_chandef_dfs_required() return 0 or 1 again. I should pass the
chandef's width to ieee80211_check_combinations() if radar detection is
required.
I'll send a v8 later today. *sigh*
--
Luca.
next prev parent reply other threads:[~2014-03-03 15:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 9:14 [PATCH v7 0/5] cfg80211/mac80211: move interface combinations check to mac80211 Luca Coelho
2014-02-27 9:14 ` [PATCH v7 1/5] cfg80211: refactor cfg80211_can_use_iftype_chan() Luca Coelho
2014-02-27 9:14 ` [PATCH v7 2/5] cfg80211/mac80211: refactor cfg80211_chandef_dfs_required() Luca Coelho
2014-02-27 9:14 ` [PATCH v7 3/5] cfg80211/mac80211: move interface counting for combination check to mac80211 Luca Coelho
2014-03-03 15:17 ` Luca Coelho [this message]
2014-02-27 9:14 ` [PATCH v7 4/5] cfg80211/mac80211: move combination check to mac80211 for ibss Luca Coelho
2014-02-27 9:14 ` [PATCH v7 5/5] cfg80211/mac80211: move more combination checks to mac80211 Luca Coelho
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=1393859821.13669.119.camel@dubbel \
--to=luca@coelho.fi \
--cc=arend@broadcom.com \
--cc=bzhao@marvell.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=michal.kazior@tieto.com \
--cc=sw@simonwunderlich.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox