From patchwork Wed Sep 28 23:56:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pedersen, Thomas" X-Patchwork-Id: 9355379 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 F1C036077A for ; Wed, 28 Sep 2016 23:59:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E473429651 for ; Wed, 28 Sep 2016 23:59:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8D602969B; Wed, 28 Sep 2016 23:59:03 +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 A139229651 for ; Wed, 28 Sep 2016 23:59:03 +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 1bpOkd-0006io-4d; Wed, 28 Sep 2016 23:58:59 +0000 Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bpOka-0006cg-La for ath10k@lists.infradead.org; Wed, 28 Sep 2016 23:58:57 +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=1475107136; x=1506643136; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=ZblZlAKlQGaPmLVw4lmPWvYM8R3RFBt54xMuvzEnDs8=; b=P+ZzxJ4bVlV0mwjbJvTbO0oI6Q8PXeXHwu9jySqIVmMIS71FZViC7JSL 8NuuZeufzuaZcFEkzaxuwclCkweiMPus55BD19dK+Oxp0h7FZ4aATPuzr MmbnkT6x3v6ifkGo2llCDG1h3a8Q0t/YauyWkFr8GLIOzp+6r4KNnD77B k=; X-IronPort-AV: E=Sophos;i="5.30,412,1470726000"; d="scan'208";a="227889191" Received: from ironmsg01-lv.qualcomm.com ([10.47.202.180]) by wolverine01.qualcomm.com with ESMTP; 28 Sep 2016 16:58:39 -0700 X-IronPort-AV: E=McAfee;i="5700,7163,8302"; a="35856607" Received: from nalasexr01d.na.qualcomm.com ([10.49.56.24]) by ironmsg01-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 28 Sep 2016 16:58:17 -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; Wed, 28 Sep 2016 16:58:17 -0700 From: Thomas Pedersen To: ath10k Subject: [PATCH 4/4] mac80211: mesh: decrease max drift Date: Wed, 28 Sep 2016 16:56:31 -0700 Message-ID: <20160928235631.9197-5-twp@qca.qualcomm.com> X-Mailer: git-send-email 2.10.0.297.gf6727b0 In-Reply-To: <20160928235631.9197-1-twp@qca.qualcomm.com> References: <20160928235631.9197-1-twp@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) 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-20160928_165856_855394_9751188F X-CRM114-Status: UNSURE ( 7.93 ) 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 The old value was 30ms, which means mesh sync will treat any value below as merely TSF drift. This isn't really reasonable (typical drift is < 10us/s) since people probably want to adjust TSF in smaller increments (for ie. beacon collision avoidance) without mesh sync fighting back. Change max drift adjustment to 0.8ms, so manual TSF adjustments can be made in 1ms increments, with some margin. Signed-off-by: Thomas Pedersen --- net/mac80211/mesh_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/mesh_sync.c b/net/mac80211/mesh_sync.c index 22ca43c..faca22c 100644 --- a/net/mac80211/mesh_sync.c +++ b/net/mac80211/mesh_sync.c @@ -28,7 +28,7 @@ * could be, for instance, in case a neighbor is restarted and its TSF counter * reset. */ -#define TOFFSET_MAXIMUM_ADJUSTMENT 30000 /* 30 ms */ +#define TOFFSET_MAXIMUM_ADJUSTMENT 800 /* 0.8 ms */ struct sync_method { u8 method;