Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp535218ybm; Thu, 28 May 2020 08:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrocgmknI2O3bqD3ZutvM95fBCdpLhWsc86eJIoaiXliC+mbYPlzL2WFlw2ECumsR9evbt X-Received: by 2002:a50:ccc5:: with SMTP id b5mr3621479edj.340.1590681084593; Thu, 28 May 2020 08:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590681084; cv=none; d=google.com; s=arc-20160816; b=0AMlFtVwj9cVwf4abzoenVR1Ji+zsbijGapyacc1ipXMggXE1omTB5WqJqn2wjT83o 7+Es2zORqrW+Kj6jk0vAUyATtol3+62T3JSxAJKzZVF84lu3PpzQfGKYlwyHaH8x1mYe aNq+zGaeSeH8r45PD95tGSlyCX5fnY6TR5Nzs5d7XHV4wczR/dP6F6Oz1lI4xk7wqFE5 ObZ6kFZMSOVHQAg8ck4XUgcCSDNe7nzabrjs7fvlFaTru0Y6eibfi1y8xsFBslJWk532 FPr4WDSGeVxp5NUcMhphWVHYtfK/4M3avA/B+2+qHMtqJA82jmIaREr6UpL5zxWM0bNR 5n3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:to:from:date:message-id :mime-version:user-agent:dkim-signature:dkim-signature; bh=ZjIyY2t+T7o6kEo1qjWU0rAD640q46uU23qh6ON+RtM=; b=NKPKES46ECmML0I8ySH/3TAeIN21vPsOVXhieJK+FeYta1d+9rIIJN0l6WFaDjoihO w/NpqslKIY7c9/jQU52chJyfQN3Qk8W0/NI1aAa84E6/jZ+hXtTL8IzfB5dRFU6E9C3X q/DiOSWaTpBuDcWEeSjk3Uujepw+v73piDaGtgf+2bX3FIRO/ck9XtlBAmsmu0DEYQV7 ZBYv7IHt71MSItfDVccPS0mF8kIb7N9f4nkcVZtxwp/J5LuycKBpZuEpNFjMciIW8tuq h4MebaFGUbIEA6yiweGA4dQNoBMNVN01+PZOL0NKNqqmuVn5JLhs0L57M8nepw/5r14O BtMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@airpost.net header.s=fm3 header.b=XslSpmMU; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ohMSvmvY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=airpost.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qp27si3891468ejb.557.2020.05.28.08.50.51; Thu, 28 May 2020 08:51:24 -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=pass header.i=@airpost.net header.s=fm3 header.b=XslSpmMU; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ohMSvmvY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=airpost.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404581AbgE1PtE (ORCPT + 99 others); Thu, 28 May 2020 11:49:04 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:47889 "EHLO wout3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404542AbgE1PtC (ORCPT ); Thu, 28 May 2020 11:49:02 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9C447A0F for ; Thu, 28 May 2020 11:49:01 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute7.internal (MEProxy); Thu, 28 May 2020 11:49:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airpost.net; h= mime-version:message-id:date:from:to:subject:content-type; s= fm3; bh=ZjIyY2t+T7o6kEo1qjWU0rAD640q46uU23qh6ON+RtM=; b=XslSpmMU 5APkJ09XlKmkoerRUEKVD7Tbcee7PyfpVyu0UyG/66R+PQBmqbGZhHkfp0gib+FP rZfVtJMrgJRYgNn2EqA+PYCnj3gj9xpNrHP5FRrWDBxZ32STBDLopTm4XFmOPvCO jNeV296MHqFiszeA3YjgmsKvGdbaAsqfFoE4cUTN5mhAVwpTz7iiFzFk+ny6YJEJ saG+S7OzBkP85Kr4j6r0aYHAXmPEXkJI4SwaPO52TlWoJmjeo/01zXubn50AaSzN ZkyOa92+hF6lZhD3jli1vdSSTYY9T+lU/BER1gt3rOnl/W9uh1dGHV2qlYbLPnXx rQUEm670Ez3TEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=ZjIyY2t+T7o6kEo1qjWU0rAD640q4 6uU23qh6ON+RtM=; b=ohMSvmvYQu7QQWUh472p/eZhWqBFkgmqigMuBtlFHtUaW p/VESkYknGj+MMw1LZcmLaDHlXYb2LFVPnYVNcQVMzALWydHLCgvpmQQgx41GdMg 2F6/VIkiiC32k/z4xzUBKmshKG+QF8grL/dtdqE5RkmXsxrc1QojYct8WBdP7P40 eaS1gw9Vn6uPWx2zMHSIt2kV1mpNR9gaMTFyWmWgYJd0JsqztmS6Nt51+tjA/aQx R76l2uqtdD3+at2xAJ2ZzPp36t7rEa91Lhkr5FUyfpkjAiVLWj7Vt3kMoXTUbIm+ TUJKvAGOWkDmgmsZ1OtviFEmrT/L1DSVbQ660CvOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddviedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfuehruhhnohcuffgrnhhtrghsfdcuoegurghnthgrshesrghi rhhpohhsthdrnhgvtheqnecuggftrfgrthhtvghrnhepueehgfejhfefheeuveejtdeive fhteduuddvtedutdeuveejtdefjeefveevfeffnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepuggrnhhtrghssegrihhrphhoshhtrdhnvght X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 01492E00A9; Thu, 28 May 2020 11:49:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-504-g204cd6f-fm-20200527.002-g204cd6f2 Mime-Version: 1.0 Message-Id: Date: Thu, 28 May 2020 11:48:13 -0400 From: "Bruno Dantas" To: linux-wireless@vger.kernel.org Subject: iwlist scanning: how to exclude old scan results from output? Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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. If iwlist does not include an option to ignore old scan results, a workaround would be to first flush the results of old scan, then scan. The problem is that I can't figure out where prior scan results stored. Surely one of you guys would know? The only way I've found to flush old scan results is to unload then reload the wireless interface's kernel module, but this approach seems heavy-handed when a simple "cat /dev/null > somefile" might be sufficient if I knew where old scan results are kept. Thanks a million for any insights. -Bruno P.S. Here are some possibly relevant details about my system: - OS: Tiny Core Linux 11 64-bit - linux kernel version: 5.4.3 - wireless card: Atheros AR928X - wireless driver: ath9k - iwlist version: 29