Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3358655ybn; Fri, 27 Sep 2019 05:18:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi4Ho6DGcEw0Z3SiBHL1p+I1ruAvXsy9Idvqg8Pt4QLuhf+VqQLgNLlFuHKEIRju0r5d7I X-Received: by 2002:a50:cd1a:: with SMTP id z26mr4049619edi.75.1569586687497; Fri, 27 Sep 2019 05:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569586687; cv=none; d=google.com; s=arc-20160816; b=lElmO5Ej+zMNGug5fu0N+r4KS/gYa116uuvoZBTkkzwzERKq89kgrCK5nMf+tnbMiA Pbp98+ziKDvhrV+RWaURGdvJu72evHfbZu4eYu9+q7cmcOACHYpoiSnRkxERevColPIY +C7YuDScPWo0GTkKdhzjaRzCXWsloe9dA75S6yaptptVC7EZq2TyXCQjdZxgze1G00iP 0JTkYqd7qwXv0+SUfqloYSbEtkghtmQhy0zEefJ5m29AjmlpmqeIuRykn7QiciHACt70 7su4E1oJDOSIS0KHeusYU35nNMAIpmMhH6M4jRV3XSFTAl20wUdAH1W6Ia/kq/NyzQCb vPTA== 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=y8AGwZNdO1OdhmEsIAvM65NbyyCnF0Jg3KB3XiEg9lc=; b=mOEwLStm6x5EG/4EXF7gE2TEN2gpXbvghjxyOzZykUJK4d5lamGGFkNK6G48j3EWw0 rwdQSRTyTI1Do+5jAsrbbPzricAoYgOfsDqcyfwvDdF0F0wPZkKL3ztKPKbBllqOjqBX w7cxbehn5sdhscO+qXXiMG+Vry5cjOeCw8LMoYw9mveJzCGjV4m24R/1oWx9rPMUiiq0 D5c9Z2Dk2Oyjjgx5aVnm5AVrvPoQZt/69ilU1ZlKgZ24Oric3Yp0TcRRKe2T4Ut/tRsq jkQ01kEOOR4rnW+hflye1kwp8lspNv9t0sclkOz5wFJmqdKh119wmVgX8vk7Sz/33q6B AR8w== 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 v19si1484350edm.103.2019.09.27.05.17.25; Fri, 27 Sep 2019 05:18:07 -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 S1727529AbfI0MQO (ORCPT + 99 others); Fri, 27 Sep 2019 08:16:14 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:54268 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbfI0MQO (ORCPT ); Fri, 27 Sep 2019 08:16:14 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDpAS-0007CY-Kb; Fri, 27 Sep 2019 14:16:12 +0200 Message-ID: <49ded6ae8a23c29168ab7061235292ac7a853e0f.camel@sipsolutions.net> Subject: Re: mac80211_hwsim: packets being transmitted through the monitor interface From: Johannes Berg To: Ramon Fontes , linux-wireless@vger.kernel.org Date: Fri, 27 Sep 2019 14:16:11 +0200 In-Reply-To: (sfid-20190927_035500_898243_B3F3D103) References: (sfid-20190927_035500_898243_B3F3D103) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) 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, 2019-09-26 at 22:54 -0300, Ramon Fontes wrote: > Hello, > > I've noticed that packets transmitted between two clients connected to > a hostapd AP are also transmitted (injected) through the monitor > interface. Is this expected behavior? You mean on 'hwsim0'? That interface is just for monitoring what's happening on the 'virtual air', so yes. > I can easily modify such > behavior by changing mac80211_hwsim, but it works only with hwsim0. On > the other hand, if I create a monitor interface via iw it doesn't > work. The two are completely different/unrelated things. johannes