Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp665066ybm; Thu, 28 May 2020 12:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMMeidBAp6jqBSQRYoF7WZRPW3XqBZdqXRufOxN0vziFA7wpRZPRMVT3Y/xq0ioNibDcgy X-Received: by 2002:a17:907:217a:: with SMTP id rl26mr4299512ejb.209.1590692592451; Thu, 28 May 2020 12:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590692592; cv=none; d=google.com; s=arc-20160816; b=TM/HyllSwqyPWUUd3P2nUPlRlS0GnYDu+EtJusO2Bm37cFAshmYtnr0vxWvpk+zIgy 45zX+oNxh8ecvBOjY5vJWLN3+66GHSiPK71MhRKeAv/EA668B+n47hkgB4BumCeQGe33 /6sD17b3tdrqqzQZSy+bKBg8VDli6Xr/dMDEkB2zwScUbg0FFjzjZdEHGWoXuGo4R61z ZHYUTOeio5/CG/ojfC/Z8mA3LrIYNz9v6hFCNLepUe0fxP8pgpoe7eexp8s51eo2F+l8 LVyCs/7dLRzWIvLFRdlyAIOrXP2+mycfGiwY3e9JWoOFyX4YerlCroXyCDt2kbcUf5NL zExQ== 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:to:from:subject:message-id; bh=MXa11zFfjI43aFSc0leJ+L/gwK94Fn82j8sNkHHUbK0=; b=yI/K7WnnvZflvO4C4eDYDX3OyGgfcp3cuzuOl+/d6SSHr6QxvoXunBl+HSOSIF/fXb qWrENePKfxMkNSLEdbBdw2c0zp9YGGLuTfk5IuSCkDhtfIH0a6T2Nfk2gN1fM0oiTbi+ ff3IbtgDkvuEphggmsq+Qyy7LZnnD90E+fcB4VBq8XfVSsMoo6mJalYkk+zP+qlswjBI kmPZ+dBz2VL1ciPoODSu0TcSe24vqXGK5AVOK2S2jFFN810B55Ji/84jOd2vRy4UPz0t DvK58ilYoc1a5gjH7aZrn4aj46HueKguWucZOH5MmMw8SPgplYs3PhvNwNe56upLSn1M ptQQ== 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 z3si3925240eda.578.2020.05.28.12.02.45; Thu, 28 May 2020 12:03:12 -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 S2406048AbgE1TCe (ORCPT + 99 others); Thu, 28 May 2020 15:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406029AbgE1TCd (ORCPT ); Thu, 28 May 2020 15:02:33 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5AEDC08C5C6 for ; Thu, 28 May 2020 12:02: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 1jeNnT-0053IB-57; Thu, 28 May 2020 21:02:31 +0200 Message-ID: <6d5994325bbb28ff855b527a26e4e7e87760705f.camel@sipsolutions.net> Subject: Re: iwlist scanning: how to exclude old scan results from output? From: Johannes Berg To: Bruno Dantas , linux-wireless@vger.kernel.org Date: Thu, 28 May 2020 21:02:30 +0200 In-Reply-To: References: <(sfid-20200528_174911_413757_32DBA783)> <99c4ece3-15ca-42cb-aa09-c86d466d6429@www.fastmail.com> <7406af4a9e852d99735e1b1af63deed2f0c5d703.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-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 Thu, 2020-05-28 at 14:57 -0400, Bruno Dantas wrote: > > Does it go away if you wait long enough for the "last seen" to go above > > 30 seconds (30000ms)? You should use "iw wlan0 scan dump" (no need for > > sudo, and don't scan again) to check. > > > > Because if not, then there's a bug in the references, and the entry is > > just being kept alive by ... something. Did you previously connect to > > it? Does it also happen if you never connect? Then I guess we'll need to > > know what the kernel version is too. :) > > Yes, it goes way if I wait 30 seconds. Whether I had connected to the > hotspot or not makes no difference. Kernel version is 5.4.3. So at least it's not completely stuck. > I thought discovering *currently-available* hotspots would be a common > need. I'm a bit surprised that getting this information is tricky. That's why 'flush' exists :) > Like I said, reloading the wireless interface's kernel module does the > trick. Obviously. But still, now I'm wondering if there's a bug? But then again, I think we use this a lot in the hwsim tests and rely on it for a quick succession of tests to not find previous APs, and "scan_for_auth" seems to be a fairly direct test for this as well? Hmm. Not sure. What driver are you using? johannes