All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Brivio <stefano.brivio@polimi.it>
To: Luis Carlos Cobo <luisca@cozybit.com>
Cc: linux-wireless@vger.kernel.org,
	Johannes Berg <johannes@sipsolutions.net>,
	Mattias Nissler <mattias.nissler@gmx.de>
Subject: Re: [PATCH 08/13 v2] o11s: other changes in mac80211 for mesh interface support
Date: Sat, 23 Feb 2008 07:41:33 +0100	[thread overview]
Message-ID: <20080223074133.32a4609c@morte> (raw)
In-Reply-To: <47be7741.05d6720a.44c4.ffffd0c9@mx.google.com>

On Thu, 21 Feb 2008 20:17:08 -0800
Luis Carlos Cobo <luisca@cozybit.com> wrote:

> diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c
> index da8462b..5322486 100644
> --- a/net/mac80211/rc80211_pid_algo.c
> +++ b/net/mac80211/rc80211_pid_algo.c
> @@ -15,6 +15,9 @@
>  #include <linux/debugfs.h>
>  #include <net/mac80211.h>
>  #include "ieee80211_rate.h"
> +#ifdef CONFIG_MAC80211_MESH
> +#include "mesh.h"
> +#endif
>  
>  #include "rc80211_pid.h"
>  
> @@ -148,6 +151,9 @@ static void rate_control_pid_sample(struct rc_pid_info *pinfo,
>  				    struct ieee80211_local *local,
>  				    struct sta_info *sta)
>  {
> +#ifdef CONFIG_MAC80211_MESH
> +	struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(sta->dev);
> +#endif
>  	struct rc_pid_sta_info *spinfo = sta->rate_ctrl_priv;
>  	struct rc_pid_rateinfo *rinfo = pinfo->rinfo;
>  	struct ieee80211_supported_band *sband;
> @@ -178,7 +184,14 @@ static void rate_control_pid_sample(struct rc_pid_info *pinfo,
>  		pf = spinfo->last_pf;
>  	else {
>  		pf = spinfo->tx_num_failed * 100 / spinfo->tx_num_xmit;
> +#ifdef CONFIG_MAC80211_MESH
> +		if (pf == 100 &&
> +		    sdata->vif.type == IEEE80211_IF_TYPE_MESH_POINT)
> +			mesh_plink_broken(sta);
> +#endif

I'd like to have this moved, maybe right before this:

        /* Compute the controller output. */

>  		pf <<= RC_PID_ARITH_SHIFT;
> +		sta->fail_avg = ((pf + (spinfo->last_pf << 3)) / 9)
> +					>> RC_PID_ARITH_SHIFT;
>  	}

What do you need fail_avg for? Please note that we have better estimates of
the frame failure trends (e.g., err_avg). What these magic values are?


--
Ciao
Stefano

  parent reply	other threads:[~2008-02-23  6:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-22  4:17 [PATCH 08/13 v2] o11s: other changes in mac80211 for mesh interface support Luis Carlos Cobo
2008-02-22 16:16 ` Johannes Berg
2008-02-25 19:32   ` Luis Carlos Cobo
2008-02-25 19:32     ` Johannes Berg
2008-02-23  6:41 ` Stefano Brivio [this message]
2008-02-25 21:15   ` Luis Carlos Cobo
2008-02-26 20:36     ` Stefano Brivio
2008-02-29 20:56   ` Luis Carlos Cobo

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=20080223074133.32a4609c@morte \
    --to=stefano.brivio@polimi.it \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luisca@cozybit.com \
    --cc=mattias.nissler@gmx.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.