Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2406676rwn; Fri, 16 Sep 2022 09:48:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6J77MIcQ+fubfgTEcTXDJzhtaTxWwPQvHB5r0NDDjaqW5/puY1qXQFeYcvLKZnKiVwY+fV X-Received: by 2002:a05:6402:1911:b0:451:6e0b:7eee with SMTP id e17-20020a056402191100b004516e0b7eeemr4718701edz.170.1663346889924; Fri, 16 Sep 2022 09:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663346889; cv=none; d=google.com; s=arc-20160816; b=nKWbHOLzsGLK5wKGaGX5zk3tdp8Uw1apo8eyWOM0GyT5BLkUcWFwU0NTEhKFYTq/YM NsGZ5S1SJ2PzNrEBhddqdEHcD/JlAkbITJeBvKfyDxarA9BhQ6oNqgnYgYGzqmDqMipv NX+P84Z0JetH1dtqUZ3CnY3cXVO8U8FjJYU/9JW/S5QjcLnpT2J+DTh3G0BTUut9T5w8 xxsI0Aycu6MfmVubQG3NccNDYVu/jj+rOtzJwUKWmxE+qNGQwzh47vv730b7tCRfk7cz MxrvRFTY+ikyQ99V9k+Son6a0AD8Id023+1rEP+P/xIVqFjuZsTad8gWP1bBdXTrdlRZ 3Xww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=LEDsCQxg94Ho/eSvAXdsw7dBF4zL19ANIEnTAH5+po8=; b=vN4TUtncxywdsrYdrypZhJAWpq/o/KFs3yvotM7C6Fltx8s+fvSECFQhyJiURiYSxl VUgb/NHLdW1nEaHAC91uElXV/CUCMwtLR8XFr8XDfS1GZhwTJjJ3UQSUhz4PfU7umkLJ YQfziZIXib2n0zdIdPOzSLl5iG3hCRDp4hesS3tZgGqOczHqDixYLNqKSC8dNpEYtgOQ 0Sgq+YxlMyajmAUCyTpsNnLu4oqpPKCxoLiW16xqPbPVzVQVMPJ7QNDVJOgczcfwyGwH 3dyUnJ4xAZnxw5PCxN5ZEmcMlIhJFy4sDKUnz5n+j7QXb4V+8cM5VveRzD5zIwdDAhgI 1T+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zTYYsWG2; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a170906081000b00741c0bd7061si14031546ejd.644.2022.09.16.09.47.51; Fri, 16 Sep 2022 09:48:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zTYYsWG2; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbiIPQmL (ORCPT + 64 others); Fri, 16 Sep 2022 12:42:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiIPQmK (ORCPT ); Fri, 16 Sep 2022 12:42:10 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F05A3DBC6 for ; Fri, 16 Sep 2022 09:42:09 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id v4so20834789pgi.10 for ; Fri, 16 Sep 2022 09:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=LEDsCQxg94Ho/eSvAXdsw7dBF4zL19ANIEnTAH5+po8=; b=zTYYsWG2PwhmbAyvgkK6bo8KmNvqXUMkrcoqnoeKOPAkmTjw0VkOHdf3CR3UagVMAS 1yPP/O+QqYyWPdORQyguxxwh3bC9A8rYmFym65+nhzKErWIUquKhTp/gBV7Tz5aIbe/r IyUI9CL4D9uQvbINQSIqsqm9x528vlqldvtI/kg6eu6YaWSeodUcw+weRcT5bcWtPoCL E6tgPXrppmk9kC7l5AKwF1STKgv1RanxnOFXUSoc7U7kc0J+Azyl+gaYKa8QNLw1wI5W ZDJf+X1vyls+0Asa4owaigwZLJjMT8nhDxr/poQ6kG5xgZLzSeK14bWdnyMdwe2QqSEz Xg4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=LEDsCQxg94Ho/eSvAXdsw7dBF4zL19ANIEnTAH5+po8=; b=Zr5hCOjjwRDEphmS2/zz2XYu1ea/MyC9SF48s8Ht6p1qKMwtRbUmZpAOT11IeekTG8 YV0zQ/4ctGoWZWDIYCpXvt43ki6f+U9OYl/d47WrDMRV9km9TG/9QF7BF8Lj5Ek7SuUG 1Vqcv74/0GgPC/lUf2kRDfD9c5O6vuJ6euZoY3FnaQo0nEji2+JECLXrope+M4d/zcyw NUv6Yl8R6WX1WsDOGp3DZNJYoXdfhmOIjJJoee9+lMIDpSJzDuuR4qA6zhRxNJ19PkOj v7f21WzPhcI7nmm1tb7z5Y+RAr77K+MDuKjbJ3OqMvLGoLzXbWcQPCl8/M3ZRMq18O3F G9xA== X-Gm-Message-State: ACrzQf1w/fHFntfZv3qgme7mlufH4IemDHoj0FP43K1y/2hnFqS0fMOa WufscBz8zHc4SzUKZjVAGdZoRGZ2Z0KvW2KOdsXzew== X-Received: by 2002:a63:1d1a:0:b0:433:f6ea:dce6 with SMTP id d26-20020a631d1a000000b00433f6eadce6mr5188833pgd.178.1663346528832; Fri, 16 Sep 2022 09:42:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:7300:8b26:b0:78:c13b:6a7a with HTTP; Fri, 16 Sep 2022 09:42:08 -0700 (PDT) From: Loic Poulain Date: Fri, 16 Sep 2022 18:42:08 +0200 Message-ID: Subject: Re: [PATCH v3 1/1] wcn36xx: Add RX frame SNR as a source of system entropy To: "Bryan O'Donoghue" Cc: "Jason A . Donenfeld" , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, kvalo@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, wcn36xx@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 15 Sept 2022 at 02:41, Bryan O'Donoghue wrote: > > The signal-to-noise-ratio SNR is returned by the wcn36xx firmware for each > received frame. SNR represents all of the unwanted interference signal > after filtering out the fundamental frequency and harmonics of the > frequency. > > Noise can come from various electromagnetic sources, from temperature > affecting the performance hardware components or quantization effects > converting from analog to digital domains. > > The SNR value returned by the WiFi firmware then is a good source of > entropy. > > Other WiFi drivers offer up the noise component of the FFT as an entropy > source for the random pool e.g. > > commit 2aa56cca3571 ("ath9k: Mix the received FFT bins to the random pool") > > I attended Jason's talk on sources of randomness at Plumbers and it > occurred to me that SNR is a reasonable candidate to add. > > Cc: Jason A. Donenfeld > Signed-off-by: Bryan O'Donoghue Acked-by: Loic Poulain