From patchwork Tue Sep 6 19:05:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pedersen, Thomas" X-Patchwork-Id: 9317865 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5215F60760 for ; Tue, 6 Sep 2016 19:20:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F74228DF9 for ; Tue, 6 Sep 2016 19:20:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2387928E45; Tue, 6 Sep 2016 19:20:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A5B3528E23 for ; Tue, 6 Sep 2016 19:20:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhLul-0007pc-RK; Tue, 06 Sep 2016 19:20:11 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhLuj-0007Ac-Lj for ath10k@bombadil.infradead.org; Tue, 06 Sep 2016 19:20:09 +0000 Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhLi2-0006yE-KR for ath10k@lists.infradead.org; Tue, 06 Sep 2016 19:07:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1473188822; x=1504724822; h=from:to:cc:subject:date:message-id:mime-version; bh=3WiuNSHqmCjGIpsGqqSclVNDIObLIk2NIBx5ngih+n4=; b=sxPoWb3VGUERTTXYNo3EE74OaNwyr877VATFblbQYI4Z6VeRUux6ZQUJ 0Wt22ND/yUQtWLuVoLNfdlXSl0voLyh9FS4pYfg5PYmCduj1RtE5otTko P5cFDrk1RqPhN60tI+zdYaZXgHavLYHIOmT14Xb3POmxsoWsstU2uuWb/ Y=; X-IronPort-AV: E=Sophos;i="5.30,292,1470726000"; d="scan'208";a="107021711" Received: from lv1-pdmz-css.qualcomm.com (HELO ironmsg12-lv.qualcomm.com) ([65.197.215.5]) by sabertooth01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 Sep 2016 12:06:38 -0700 X-IronPort-AV: E=McAfee;i="5700,7163,8280"; a="211431" Received: from nalasexr01d.na.qualcomm.com ([10.49.56.24]) by ironmsg12-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 06 Sep 2016 12:06:37 -0700 Received: from twp-linux.qualcomm.com (10.80.80.8) by NALASEXR01D.na.qualcomm.com (10.49.56.24) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 6 Sep 2016 12:06:37 -0700 From: Thomas Pedersen To: ath10k Subject: [PATCH] ath10k: enable peer stats by default Date: Tue, 6 Sep 2016 12:05:28 -0700 Message-ID: <1473188728-14995-1-git-send-email-twp@qca.qualcomm.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To NALASEXR01D.na.qualcomm.com (10.49.56.24) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160906_200702_958676_89117684 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Pedersen , linux-wireless Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP IFTYPE_MESH_POINT need to rely on these for accurate path selection metrics. Other modes will probably also find them useful. Enabling peer stats has the side effect of reducing max number of STAs from 128 to 118. There should be negligible performance impact. If users really need 128 STAs and don't mind losing out on peer stats, they can still disable them: echo 0 > debugfs/ieee80211/phyn/ath10k/peer_stats Signed-off-by: Thomas Pedersen --- drivers/net/wireless/ath/ath10k/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index c9d163e..c0ab4f4 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -2145,6 +2145,9 @@ static void ath10k_core_register_work(struct work_struct *work) struct ath10k *ar = container_of(work, struct ath10k, register_work); int status; + /* peer stats are enabled by default */ + set_bit(ATH10K_FLAG_PEER_STATS, &ar->dev_flags); + status = ath10k_core_probe_fw(ar); if (status) { ath10k_err(ar, "could not probe fw (%d)\n", status);