Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp569774ybm; Thu, 28 May 2020 09:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPiDhR2m0uFQ6hRRdYngd6at2ZFEHmWF7skkJLIpFEjPNMPy2cm2VBOzrlUgkVxX9kWD9s X-Received: by 2002:aa7:c617:: with SMTP id h23mr4166486edq.305.1590683981293; Thu, 28 May 2020 09:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590683981; cv=none; d=google.com; s=arc-20160816; b=g1lNa46KSBcljvX83hprmTfway4bdbElwR5Q+9aPzdkq5lrJlhQCmDSO8BzXuBxBOL v4CaBFG1+/YSQ25bGE/ZiYvCisD3ehnkdjhP3fXszHgY+xc6E8yJFFJrVN+YXsGGkp7q ggRdaIWRPPI/Tsz3wxXj8bqyYqH+kBpH0bprv6BRulvmmXQmEe/JRym8PsS59sR/mvr9 rvXXqAJ5cLdjagLQo4ypYL1J5UMzHtimk13FKvyIxubPogoJH6qqiidIsVspJITvWTrJ kkzCZDkbglSpFXSULzZ4uZOCXDU/5yim0VWe+e2lVhL73CZMJ6HcGWMJ0lrp1GuWzGIW 1hww== 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=37GVd2qCaHc/PApzUklVATAhxMn12e6gMsKcoaFgtio=; b=bcymHtKVpkrd40kO1WOE8xrkr/WpngfjLXfm9eQyrXrsWtXgn1uUYoUoKhF3uSIw4Y pQ1osHLUkUK06gAzOXwyoM+nfBbXCitBnjDTr+XClV2nSKt1Txc3qBZYimnQucgZCVzO 8u1CA+pfQbK2/0mxWahOffL2ABzik3xcQsNAWxpljGv+mweWhwtK1rCc01x3LcWYyVdK Fa4AiNq2GwRH3c9SUnLUHYHqyGmCCNQ851FQyO+KqHaUbeCz6XxPNsj6g1pYg5kMyRnt ShcfLTvZmpTGRrUmhEnbKbE1ZZoV2oxw0ekzgDYc0p7zN7DZ3I+EvYcx/XowBlV44pTY s1xA== 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 bf15si399447edb.553.2020.05.28.09.39.17; Thu, 28 May 2020 09:39:41 -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 S2405098AbgE1Qi4 (ORCPT + 99 others); Thu, 28 May 2020 12:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405042AbgE1Qiz (ORCPT ); Thu, 28 May 2020 12:38:55 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4385C08C5C6 for ; Thu, 28 May 2020 09:38:55 -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 1jeLYT-004z32-5I; Thu, 28 May 2020 18:38:53 +0200 Message-ID: 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 18:38:50 +0200 In-Reply-To: (sfid-20200528_174911_413757_32DBA783) References: (sfid-20200528_174911_413757_32DBA783) 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 11:48 -0400, Bruno Dantas wrote: > I hope it's not too inappropriate to ask a support question here. I've > tried at my distro's forum to no avail. > > Please, how do I make "sudo iwlist scanning" display only > results from current scan? Cached prior scan results (including no- > longer-available hotspots) often show up in the output, which breaks > one of my shell scripts. You cannot. You should use 'iw' instead of 'iwlist', which does have options for flushing the cache. johannes