Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1300799ybt; Thu, 25 Jun 2020 02:46:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjHxpTOS2LONHtarFUrqTr06O02OxoOIJuHyVxkS5Kf/NFpD2LfhQSmuSRXu13orsSHGD/ X-Received: by 2002:a05:6402:3138:: with SMTP id dd24mr16529991edb.118.1593078360632; Thu, 25 Jun 2020 02:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593078360; cv=none; d=google.com; s=arc-20160816; b=SuJJ2G9i5ZiXykoz3Pk/k6OGqYcXP10owa54O0Pz8IZaZCGiFxK4ds7xQZ5QSqjLjq HyeAOlUvozwfstNAwnQtihonTjx5Z62HdvbZCYZ2Z/OUaR6l9wdZuvS5z5l5nioFJm67 qD16sTPJ4ExIUjbGXyvPTZ/DReL2ZbFOBRZo+hrrI3PFZ/ww2bcjDYVsdDFA/MnX6IWx 3jCp2KHP9W50Ayh5H92lh/eD1j3T2qFRxZBo/mGyMwsoICIvF0YxoP1rapGILy/BF1Ck OovRSi9pGzCkLm4u1MCScm9yyFN7pE7xOlZ9MQhk9+Q0D7t7DQhNitZd5JYEncjTGSNd Nq5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=ISvY6knVO0fMx1m5ygBzMaIn1g7LWtnG3ygjeWpWECE=; b=cSbQZ3SYs3TxPLNgdhZs3c4/9NJqR95s1aJkRwyTnb3+CuuvJcYE4z0fPoH4CBorLB hb3mKyZydU1OHV8RLVc5WF2X2IGu1oiES0/Z7qJ8o+4/Eq5tyssYKBsBW9hvrKfnug7V ZTl0r4n0elNlHB8X0cVsAq/XTVGmuTmUblrGpjOWnJnKq3jyJWgjSnrU61uyNzS5aqmM ukZrMJXjxv4QgOydngMStjLfOZkuh7EZPpFjMlIOxKHq+puK0t/UnExV2758QG+azGLD 1Laq++0omXkZpJELZ+QUVH7ORYbDfMPjo2SSpz3k/hESZa2uFaChmllbKvtIyOTOZn0c GgbA== ARC-Authentication-Results: i=1; mx.google.com; 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 g6si6678561edl.330.2020.06.25.02.45.16; Thu, 25 Jun 2020 02:46:00 -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; 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 S2390004AbgFYIke (ORCPT + 99 others); Thu, 25 Jun 2020 04:40:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbgFYIke (ORCPT ); Thu, 25 Jun 2020 04:40:34 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9041C061573 for ; Thu, 25 Jun 2020 01:40:33 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1joNQs-00BmTB-F8; Thu, 25 Jun 2020 10:40:30 +0200 Message-ID: Subject: Re: [PATCH] cfg80211: flush scan entries upon suspend From: Johannes Berg To: Luca Coelho Cc: linux-wireless@vger.kernel.org, emmanuel.grumbach@intel.com Date: Thu, 25 Jun 2020 10:40:29 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2020-06-23 at 21:10 +0300, Luca Coelho wrote: > From: Emmanuel Grumbach > > When we suspend, we can't really remember our BSS table. Sure we can. We do today :-) Yes, I know why you want this for iwlwifi, but this commit message isn't good. And if you had a good commit message, you'd know that it's actually only needed for iwlwifi, not for basically anyone else. And, in fact, it's not even needed for iwlwifi because if you had WoWLAN then the firmware stays running and you don't need it. > Purge all the data. We age it already since commit cb3a8eec0e66. That should be sufficient for most devices. And in fact, if it weren't, then this should have removed the ageing that's now completely pointless :) > Export this function to allow driver to purge the BSS table > in case they feel the need to. > iwlwifi will need to do that. I think we should just have a patch to purge it, without the call in sysfs.c, and do then iwlwifi can call it in the right places (when it resets the firmware.) Note this won't even be _perfect_ because there are reasons (like being connected) that mean the entry is not removed even when flushing, so that should probably be documented. johannes