Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2369099ybn; Thu, 26 Sep 2019 10:50:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu1bacRE0/hzGeGCNX3DqLhC/5CKdIN9yOlFUYF22ryweszJ9cHjvGfCZ65RmHsol3auXf X-Received: by 2002:a50:a7e4:: with SMTP id i91mr5239419edc.9.1569520249291; Thu, 26 Sep 2019 10:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569520249; cv=none; d=google.com; s=arc-20160816; b=DpjpzLmJNcPkuB4mIFtZmiH8ykJjiP1EYy72Od99+YBYgzf5LO4kL82KskrXW+QdeX MhvaNT/uCpEF108djjB9OF497gXwA8UoOCmySdHkXpGV+bFLlXQG4Fa98S9ePiizFidK +95ovSN0M/JP3UoOP9If3rKJWFpIQN7CjWrlvHGFnaSb3SuX+ioJR0+ILGfIIDpQcU5S 0jMxMg98bTC48vhyC7dGy9/1PLt/MoHnZ1oXY8Lb8l1GmdTWta/vF+G2DDJmI/jzmXaa q9XwjcAZm5kbnHF0quMD894yrp6ICbC7nYp8HBNW5NgmvZF63fNmKFh7laOaTwKQX08k kDXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=PvJmqELckz4IoFVxF4Ox7VfJ9eUWIlIXqpWHK3OsEMM=; b=eU+sc56W4jU6ihi+t80dSeEo2bIKf7Ff5qo1752mMMrmNzdeFYCe+XF17Jf/kRCJ4G 5xmNei2sGl1pq2GHAUIJPa1VbesQ/HxZo/ICV5UfcGGmwLArLMFHL689LaTJRyLvVjta wpHXVteku2hSMpnUPNFTVD+Qt2U+/F3Sba5XrcpkYvTe6gJojfLK+tfRYHesX3uF/f5J i6xA+IMb2sylVGlFZCQfuQo4x0X7QXVtAWvXVn/WtXVD4SdQtylcvGNdhslmENcfETrr PYOMDTyBEKFqe1RKhtb1vG2DcSVwomhBTQ9OS345rbH3O6O7qzp/ctM+dqjvXi+/VQWq EZ9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Jn8pQesN; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pw28si1427972ejb.43.2019.09.26.10.50.24; Thu, 26 Sep 2019 10:50:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Jn8pQesN; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbfIZRrg (ORCPT + 99 others); Thu, 26 Sep 2019 13:47:36 -0400 Received: from nbd.name ([46.4.11.11]:55252 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbfIZRrf (ORCPT ); Thu, 26 Sep 2019 13:47:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PvJmqELckz4IoFVxF4Ox7VfJ9eUWIlIXqpWHK3OsEMM=; b=Jn8pQesNzv6Lt7seZdLrcZQnv6 34J/xN/ZUZk/xzBN4D/Ma2siO/b8QGfrmJPsRcd7DVz90JVYX+b5pv/sm+nowcM0xgp7Esi4R+JLT 1YrWxOvIHxP4QGf4RAxhFfz6pmgh66s1VhFNpHrbhvmbishJ3Tr9vyrHUUysQJT/9Cqg=; Received: from p54ae9b80.dip0.t-ipconnect.de ([84.174.155.128] helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDXra-0000yw-Ih for linux-wireless@vger.kernel.org; Thu, 26 Sep 2019 19:47:34 +0200 Received: by maeck.local (Postfix, from userid 501) id B836C69B6A8D; Thu, 26 Sep 2019 19:47:32 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 07/15] mt76: mt7603: switch to a different counter for survey busy time Date: Thu, 26 Sep 2019 19:47:24 +0200 Message-Id: <20190926174732.42375-7-nbd@nbd.name> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190926174732.42375-1-nbd@nbd.name> References: <20190926174732.42375-1-nbd@nbd.name> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org MT_MIB_STAT_PSCCA only counts rx CCA busy time, which does not include tx time. MT_MIB_STAT_CCA counts full busy time, including Rx, Tx and NAV Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c index caa1456adc50..8e6568d4505b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c @@ -1578,7 +1578,7 @@ void mt7603_update_channel(struct mt76_dev *mdev) return; state = mdev->chan_state; - busy = mt76_rr(dev, MT_MIB_STAT_PSCCA); + busy = mt76_rr(dev, MT_MIB_STAT_CCA); spin_lock_bh(&dev->mt76.cc_lock); cur_time = ktime_get_boottime(); -- 2.17.0