On Sat, 2008-02-23 at 07:41 +0100, Stefano Brivio wrote: > > +#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: Why? pf and tx_num_xmit (which is checked in an if leading to this lines) are modified between this point and where you want to move the code. If it is necessary I can add a 'broken link' flag to execute mesh_plink_broken later. I think by now I will keep using fail_avg, but if you figure out a better way to compute a meaningful value please feel free to modify it. What we need is the probability (value between 0 and 1, now using integers from 0 to 100 to represent it) that a frame sent in the near future to this station will fail and will have to be retransmitted. -- Luis Carlos Cobo Rus GnuPG ID: 44019B60 cozybit Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html