From: Johannes Berg <johannes@sipsolutions.net>
To: Javier Cardona <javier@cozybit.com>
Cc: Ashok Nagarajan <ashok@cozybit.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] {nl,cfg,mac}80211: Enable control quality monitoring for mesh
Date: Fri, 24 Feb 2012 17:44:32 +0100 [thread overview]
Message-ID: <1330101872.3426.32.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CAPjQAd9ezrXpNSQUTy5FE5x57DdRTJCi7OVH98cXUBhUMfea4Q@mail.gmail.com> (sfid-20120224_174111_118939_FDE573EF)
On Fri, 2012-02-24 at 08:40 -0800, Javier Cardona wrote:
> Hi Johannes,
>
> On Thu, Feb 23, 2012 at 11:19 PM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
> > On Thu, 2012-02-23 at 18:30 -0800, Ashok Nagarajan wrote:
> >
> >> +/*
> >> + * NOTE: Mesh peer links are established only if average rssi of the peer
> >> + * candidate satisfies the threshold. sta_meets_rssi_treshold doesn't use
> >> + * hysteresis as fluctuations around threshold have no adverse effects.
> >> + */
> >> +
> >> +#define sta_meets_rssi_threshold(sta, sdata) \
> >> + (sdata->vif.bss_conf.cqm_rssi_thold == 0 || \
> >> + ((s8) -ewma_read(&sta->avg_signal)) > \
> >> + sdata->vif.bss_conf.cqm_rssi_thold)
> >
> > This also isn't right, you're using a value (bss_conf.cqm_rssi_thold)
> > intended for *signalling* for actual *decision making*.
>
> Isn't that value used for making the decision (in userspace) on
> whether a signal is good enough to associate?
I don't think so, and if it happens to be the same value, that's still
not encoded in the API -- this value is really meant to be only for the
signalling in the API.
> On an open mesh this
> decision takes place in the kernel. It made more sense to us to reuse
> that parameter for mesh than to introduce a new one. Would you rather
> see a separate mesh parameter for this?
Yes, I think that makes more sense.
johannes
prev parent reply other threads:[~2012-02-24 16:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-24 2:30 [PATCH] {nl,cfg,mac}80211: Enable control quality monitoring for mesh Ashok Nagarajan
2012-02-24 5:21 ` Javier Cardona
2012-02-24 5:24 ` Javier Cardona
2012-02-24 7:18 ` Johannes Berg
2012-02-24 7:19 ` Johannes Berg
2012-02-24 16:40 ` Javier Cardona
2012-02-24 16:44 ` Johannes Berg [this message]
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=1330101872.3426.32.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ashok@cozybit.com \
--cc=javier@cozybit.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).