Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp366298ybh; Wed, 11 Mar 2020 02:37:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuapjJyYhdvqMh9r7URIebkltQUSvquhmRhzjQ5YfEEjjCgqS6vLkx6byhKc/3l0qxtqm9N X-Received: by 2002:aca:56c2:: with SMTP id k185mr1201825oib.141.1583919460061; Wed, 11 Mar 2020 02:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583919460; cv=none; d=google.com; s=arc-20160816; b=rGzddXRqBmgzVjmvuwvm70YJcMYVpKOtYvAtqRLubuTUkk08XRe/C/LRN4LCAdqqMz cWhrFgEGoElKfrSjB7iLePC+OkoOwjwcLg9y8VgyCuR5ozQC67wWo+vG8gtmBPS3EL3C 6datxGh04VyjOfuUtAkHj9MkECwZTM4z0sXAjVtVOleXRyULyX3Lj+MrpQIQn8wCo9Wj 3YFlaPDAAuuUnvGY27EMZSloOyGlfny4ZhjvB37kK57hviAAIIMH/v4NsQ4k1Mn0T5x1 1V5D3JQdWqZY/RA1SAOrTfh338cTq24oIMkRSAoRETqGl+yFNjjKjrJnlvh1NdacWryi oTgQ== 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=7jSOmj1PfhddYYjOo5E1xfud2cig898RnRvCvaXwgjA=; b=oLx3dqNR4vMjJUSjm45pE0H/vnyD9G6c5kvExpdSzEZP3gxIyUjmjvg/am/Udjvrkr JHgzqVp0LHSOMRdbiZfLMLwwEgOZO2Tvbc87xWrqenotKJqD74h6EsBMQ7EqWIHcf60H Pbib14fIXWKdxnimhrSm/xgIWWP9m24WI3GWigplYmIcHGU60hUrZo8MhB8OHiP2HaD9 qhZ4uqvWO52x4WHxB8nit/LlwLgFA30Jcn91jh2fPDI1HclUR8qnX5u/NV+evtTacpSM /z0rYTZxqQNbxbgeIVrFdSpj0glc/j19eIsZycOzNN3XcOjByVw8np2O5IQerJi3H1ke BOFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si900219oig.116.2020.03.11.02.37.28; Wed, 11 Mar 2020 02:37:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728444AbgCKJgT (ORCPT + 99 others); Wed, 11 Mar 2020 05:36:19 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:45658 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbgCKJgT (ORCPT ); Wed, 11 Mar 2020 05:36:19 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jBxmi-000w5d-SV; Wed, 11 Mar 2020 10:36:16 +0100 Message-ID: <75fcee24b6eacd59473731087f854dfc451cab40.camel@sipsolutions.net> Subject: Re: [PATCH 1/3] nl80211: add monitor mode scan feature From: Johannes Berg To: Markus Theil Cc: linux-wireless@vger.kernel.org, nbd@nbd.name, lorenzo@kernel.org Date: Wed, 11 Mar 2020 10:36:15 +0100 In-Reply-To: <91e4b8c4-5fc3-536f-9209-124b0cfc230f@tu-ilmenau.de> References: <20200303115017.9845-1-markus.theil@tu-ilmenau.de> <8445336f5d71533acf17b6c53fcc88e7faeab3bf.camel@sipsolutions.net> <91e4b8c4-5fc3-536f-9209-124b0cfc230f@tu-ilmenau.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) 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 Wed, 2020-03-04 at 10:30 +0100, Markus Theil wrote: > > I used this patchset for some time to build a combined monitoring and > channel survey tool. > A mt76 based USB dongle is used, because mt76 supports the channel > survey cmd which yields the channel's busy time. > At the same time, the tool listens for beacons over the monitor > interface to log available networks and their RSSI to the user. > When the user changes into heatmap mode, he can issue active scan > requests at different points on the floor plan. All of this this > can be done with a single interface in monitor mode. I change the > frequency of the monitoring interface periodically to passively listen > at other channels. > > nl80211 is able to receive scan results in my setup. "iw dev $MON_IF > scan" also works as expected. > > A combination of an unassociated STA VIF and a monitor VIF (scan on STA > VIF, receive Wi-Fi frames on monitor VIF) does not work, because > I cannot freely set the channel on an unassociated STA VIF. Trying to > set the operating frequency on the monitor VIF also fails, when the STA > VIF is up. > Bringing the STA VIF up would be needed for scanning on it. > > Therefore this patches solved my solely monitoring-oriented use-case. Yeah, I kinda see where you're coming from, but I still don't think this makes a lot of sense. I'm actually surprised that "iw dev mon scan" works (in that it prints results) - would have expected the results to just go nowhere? And as you say, you're actually sending probe requests here, while you cannot even set the MAC address properly on a radiotap monitor interface. I don't really think we should mix all these concepts, the more things we try to allow in monitor mode, the more confusing that becomes (is it active now? or passive?) johannes