From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66E6BC4360C for ; Fri, 27 Sep 2019 12:16:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48052206B7 for ; Fri, 27 Sep 2019 12:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbfI0MQO (ORCPT ); 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