From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-x243.google.com (mail-qt0-x243.google.com [IPv6:2607:f8b0:400d:c0d::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 49DA33B2A0 for ; Wed, 14 Dec 2016 17:36:00 -0500 (EST) Received: by mail-qt0-x243.google.com with SMTP id l20so4797472qta.1 for ; Wed, 14 Dec 2016 14:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=Eb9QjDurgXNWmfgi1HRStfMfO/MRVVqo2WBzXUBCjtM=; b=CuE/2cjb5CYL2ynNqoF9dnKhiaGGkh0nGgPXpDgzhq1C/kehpTlPWcfHUhpZCwsPHK Foqi7Ka8B2gLPRDZZn8l6MONoRjpJHKDhM1KP9PFdPXWpmdqOslo8f0t6o5vERjczlhF tKAbGQQlOB9gF8xgK51WmZa2zOxoXLi6fs8m6ToPLMw5xmrOnLItEMS1AxafMA0XalwD j2/V5yBTM6ysJEsJjd01D+pzeSCXGDwkmkkKWtlaRCLJgoEnCrrtHr7meb77UEN4Z9Ho /xvp16hKU1GSzBbO1F0pb74HN3uTMqOaXULsIwqchtO1elvP/iTnswKmavMz3blG2h5I 5WSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=Eb9QjDurgXNWmfgi1HRStfMfO/MRVVqo2WBzXUBCjtM=; b=pqdW+Ur0RxIUvsrtO1mjE5U2LfWUPC2UDJmnlYGPkMnkb08CuQqnqXrIze26FBWaxZ ZUXVKNS+bU5I9rznJlkFiDRsguVuSxNZnV5pPx87XFmOMwwcnNFNoMTtdnsD2928yAY1 UpjViUt4Bz0qwPXO3QLvrlxVK13gvdxD28rnVMb5206oOieQ4VGgMY9lt0sJW4CcH7PT s8z96dvbDwRt6LUjTurjD44DC10ggCN20CmDloJ1Hzmsy8Vvu5VH4VGyQzVgrJhgrSaL sO/dfqeFHXZqmmBAexy9HtncKz1k8J7tLVQQCwFoL8v77BJ3ajTHM/9M1g2R/GCyzL+0 yWVg== X-Gm-Message-State: AKaTC01j/ps/Tn7O8PIwARNHQltJslH15LNGJyjsRiyLDoqCBX1abf2L/sPoX6VIIsSAnVXSHRPIH9hJAX+MqA== X-Received: by 10.237.61.210 with SMTP id j18mr88782624qtf.137.1481754959743; Wed, 14 Dec 2016 14:35:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.152.197 with HTTP; Wed, 14 Dec 2016 14:35:59 -0800 (PST) In-Reply-To: <20161214194703.33429-10-nbd@nbd.name> References: <20161214194703.33429-1-nbd@nbd.name> <20161214194703.33429-10-nbd@nbd.name> From: Dave Taht Date: Wed, 14 Dec 2016 14:35:59 -0800 Message-ID: To: make-wifi-fast@lists.bufferbloat.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Make-wifi-fast] Fwd: [PATCH 10/10] mac80211: minstrel: avoid port control frames for sampling X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 22:36:00 -0000 I was delighted to see this patch series go by today. What's the best way to get at minstrel stats from userspace nowadays? ---------- Forwarded message ---------- From: Felix Fietkau Date: Wed, Dec 14, 2016 at 11:47 AM Subject: [PATCH 10/10] mac80211: minstrel: avoid port control frames for sampling To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, thomas.huehn@evernet-eg.de From: Thomas Huehn Makes connections more reliable Signed-off-by: Thomas Huehn Signed-off-by: Felix Fietkau --- net/mac80211/rc80211_minstrel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstre= l.c index 11a4cc3..3ebe440 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c @@ -367,6 +367,11 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *st= a, return; #endif + /* Don't use EAPOL frames for sampling on non-mrr hw */ + if (mp->hw->max_rates =3D=3D 1 && + (info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO)) + return; + delta =3D (mi->total_packets * sampling_ratio / 100) - (mi->sample_packets + mi->sample_deferred / 2); -- 2.10.1 --=20 Dave T=C3=A4ht Let's go make home routers and wifi faster! With better software! http://blog.cerowrt.org