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*. johannes -- 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