Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp971252ybj; Tue, 5 May 2020 10:36:00 -0700 (PDT) X-Google-Smtp-Source: APiQypLBgc5WwH4plxrdnSKyr2x6UE8BhKyBK1M4EufIjWGCRicwaUvEgc65IEjp1zj5GixDOrCp X-Received: by 2002:aa7:df0a:: with SMTP id c10mr3633000edy.306.1588700159944; Tue, 05 May 2020 10:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588700159; cv=none; d=google.com; s=arc-20160816; b=itDrztQxTGIUQMAgLibD6fqKm+FqrvobQNFXt1nVhqy1JqWOcu6L/fG/h0z9WDGa/G RiePLgLjHMvCS2RvX6quVBUkk0kQ1KgMD6cPG+wTW4L3kMiZ21Lg6jWPviNloTS6pWFG ni59qCPE4kC427h607L1AXvxKdnFBN6RLFuMP1AxpUHZu1jvdJf8WJ8/6ShMY0cbVnkt znYjo/iIrJNjv7t+K6+GgEfQN4YOWt9pVnqT0+FO1+wW4pfryaNBVOqmezukZWY2QcXv G4vRPgUNK9oODI1H7c5t2Y8Vdp5xXiqYNgHvagOKCdQQzWkzVKaUKGrZcXz3MUPSBydV sSoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=FNnEUcIGcED2zOGUrSu/QDzHYpQ9xz/VzkKxw++slEM=; b=LcxizAh9eATzjchmxv/15He22J0i43RLapz7L8Qk1AXDCaOfec/49ND1D2HiGorCqL omptPEhpNPGV5T9RFHJ/8u1SyVkBb0xG20DLjwmjt6cLP+w5viwsqIY2cFrzyl9LSj2d YOBmyuAP8ugERXuFQicZLA9V0l9B2pxAXouGeUsp1oO/dutqd5w44KyttgGJ/yGCGW2c BNKu/c1NqqiHgUjPTEKiKnmGM9PO6BXngqqoyPBEcZc4Fp56VUDjuw1YGRmHIYLSzX69 eYKuKFxBKQISdFZwipTqOtEYRWs4jG+l0coYiwFodbGXY0pW3wNDeWVZy3rsaPl3ZZxQ eMLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=L2nu+8qN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si1554376ejw.505.2020.05.05.10.35.26; Tue, 05 May 2020 10:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=L2nu+8qN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730215AbgEERcT (ORCPT + 99 others); Tue, 5 May 2020 13:32:19 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:34474 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730184AbgEERcT (ORCPT ); Tue, 5 May 2020 13:32:19 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588699938; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=FNnEUcIGcED2zOGUrSu/QDzHYpQ9xz/VzkKxw++slEM=; b=L2nu+8qNH3xPQztASUbqmO6RN3A6sAdKix22dWG26C5Tyl31otR4AViuxx8hunYy6hMNScBH cLloHy7ypyDQFbX2to+udA6iRfMdQKFJmoUPbrxmGrsLJildk1xJYC2J8oop9dQHyo7NVz1V o7YA5ixPXJ+nrYEAWgQYWn93LEY= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5eb1a2de.7efd0eaad298-smtp-out-n02; Tue, 05 May 2020 17:31:10 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C7CBCC433CB; Tue, 5 May 2020 17:31:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rmanohar) by smtp.codeaurora.org (Postfix) with ESMTPSA id 592A3C433BA; Tue, 5 May 2020 17:31:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 05 May 2020 10:31:10 -0700 From: Rajkumar Manoharan To: Markus Theil Cc: linux-wireless-owner@vger.kernel.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, kvalo@codeaurora.org, ath11k@lists.infradead.org Subject: Re: [PATCH 2/2] ath11k: use cumulative survey statistics In-Reply-To: References: <20200504154122.91862-1-markus.theil@tu-ilmenau.de> <20200504154122.91862-2-markus.theil@tu-ilmenau.de> <85fa2d5f9183b3a12c5283b800f3750f@codeaurora.org> Message-ID: <61f3dcc195fa4d877ddbd161523142ec@codeaurora.org> X-Sender: rmanohar@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-05-04 23:53, Markus Theil wrote: > Am 05.05.2020 um 01:37 schrieb Rajkumar Manoharan: >> On 2020-05-04 08:41, Markus Theil wrote: >>> ath11k currently reports survey results for the last interval between >>> each >>> invocation of NL80211_CMD_GET_SURVEY. For concurrent invocations, >>> this >>> can lead to unexpectedly small results, e.g. when hostapd uses survey >>> data and iw survey dump is invoked in parallel. Fix this by returning >>> cumulative results, that don't depend on the last invocation. Other >>> drivers, e.g. ath9k or mt76 also use this behavior. >>> [...] >> Markus, >> >> It depends on type of survey request is given to firmware. In ath11k, >> firmware reports >> accumulated values. So the above addition is wrong and report double >> value. Have you >> tested this change? >> >> -Rajkumar > Ok, so please drop both of my patches. My assumptions were incomplete > and too humble. I just assumed, ath10k and ath11k both use incremental > surveys. > Markus, The ath10k driver still counts survey stats incrementally. But it should be handled by sending appropriate survey request_type to firmware. -Rajkumar