Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp455633img; Tue, 26 Feb 2019 03:07:10 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaeeb+II/YTeoOs4IQGceQ4SDogsoyVvLFLnZOi+XFxd+eGEiUisqGunAphrb2ZCNt8vrpZ X-Received: by 2002:a62:be08:: with SMTP id l8mr25225500pff.162.1551179230085; Tue, 26 Feb 2019 03:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551179230; cv=none; d=google.com; s=arc-20160816; b=ZgcjmWXVEHGzsVoaKbkRO9SPacr4E20tedMGhIlsBPbq8JQl1M8/ZOPEV52P7AOo1d y9nMe4gAz4KhDgnyqypLvzCsInIlEiZrl+gPyl3uxwhHQAg2TWqR1EjwIAmzY0St3ubw JuDMZsnUYYGoDGQLMX3y7P8hEDxXq0iCEd4pSWfJv+CQpdEEtngRDGvbRTnubpZssFOb mjPwMk/EYxuynIjvAdKY5+yZCfhL+UaaC4oZsHJcUO0zjGbVAx4frIqiF9zA+vdcuiIw pABnpmuwCFCt/Vej2PQ2KNc6jsvWz2M7ReFWsyloBAMxZwSCf2dfYoRAc9PCr145ef9j CerA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NTJ1/GTBQLroPgv3yXOXY9ou18+4xRGJwgU9nlQMKtA=; b=rSzoLygrld/wbcgCGwZovNpbfhyoIw4PXVu+gSeChlWkCb5vvva9zQhUqubXMZaXpA wYWCBYMXZ7SVAPxtqAu1OeVk5gb7OGCz6I+ZRjmOZSaB6Y71Gh6oyJCdXXPLD1ZkN1Mq LQmdkE0A/96GbsFuYIeO9YNBmMT8vRq0ZAO0/QuxW6oRSgoItTiIQ/aYCNQCuw4Ixj4I 2QXND6AwWI0cbx5EpgJSoDJ4MJkbXlhJDgxTWxPlpd4Yh8eIpev5M+GCflDaaqIx9/8R guvEBTbh5CI0jGCo65s8BWnwhhCDwkNb59s3ZwvzE5MY/JzO3xwaZxH8H/4weCFRtGJm osdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=pwbLUlaU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 z192si11707064pgd.500.2019.02.26.03.06.54; Tue, 26 Feb 2019 03:07:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=pwbLUlaU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728192AbfBZLFG (ORCPT + 99 others); Tue, 26 Feb 2019 06:05:06 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:34324 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbfBZLFG (ORCPT ); Tue, 26 Feb 2019 06:05:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1551179104; s=strato-dkim-0002; d=hartkopp.net; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=NTJ1/GTBQLroPgv3yXOXY9ou18+4xRGJwgU9nlQMKtA=; b=pwbLUlaUpEgbCsVLWboz7iIhynXApQlkGlZJ3l5FSGdoE+VWdflPt8KZ/E8xKRp6zk c2PGNZ1PwhHafWzHMl2S4b3tVf8yI3wCCXGAU70ScL9J3ltqwTnEtOK7pQGt7/GGpT/p fPiMRVAoc1e34S3S0M1bOhyekKmpmVJQ9KqjnWnBYppEY0fSKuwUiN5ND7cBATNZuUlv IRVuytF8HniIuypq4qWRBCtgCJDMOmhkGHR9MiAPQGcuvRrFaT8PMKajvBl95266ldwZ +g0Yds2wAB6kPHDl6QAT0/eF4W1fJjhXdgnb2nO6ISwjxjPjE9497cBKy214Sz8kbve0 xL/w== X-RZG-AUTH: ":P2MHfkW8eP4Mre39l357AZT/I7AY/7nT2yrDxb8mjG14FZxedJy6qgO1q3jXdVqE32oRVrGn+2w7fg==" X-RZG-CLASS-ID: mo00 Received: from [10.180.89.44] by smtp.strato.de (RZmta 44.13 AUTH) with ESMTPSA id e06351v1QB4D5KF (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 26 Feb 2019 12:04:13 +0100 (CET) Subject: Re: [PATCH RFC] mac80211: Use IFF_ECHO to force delivery of tx_status frames To: Julius Niedworok , linux-wireless@vger.kernel.org Cc: ga58taw@mytum.de, david@redhat.com, nc@net.in.tum.de, "David S. Miller" , Johannes Berg , Edward Cree , Jiri Pirko , Ido Schimmel , Petr Machata , Kirill Tkhai , Alexander Duyck , Amritha Nambiar , Li RongQing , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190226094104.35192-1-julius.n@gmx.net> From: Oliver Hartkopp Message-ID: Date: Tue, 26 Feb 2019 12:04:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190226094104.35192-1-julius.n@gmx.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julius, On 26.02.19 10:40, Julius Niedworok wrote: > In order to force delivery of TX status frames for research and debugging > purposes, implement the IFF_ECHO flag for ieee80211 devices. When this flag > is set for a specific interface, IEEE80211_TX_CTL_REQ_TX_STATUS is enabled > in all packets sent from that interface. IFF_ECHO can be set via > /sys/class/net//flags. The default is disabled. (..) > + /* > + * Force TX status frames on ieee80211 devices. > + * Since IFF_ECHO is used by CAN devices for a different > + * purpose, we must check dev->ieee80211_ptr. > + */ The reason for IFF_ECHO was, that the data frame which is sent onto the wire (by one application) is not visible to all the other applications on the same (local) host. Therefore a successful transmission on the wire triggers the 'echo' of the sent content into the local host. So what are you getting back after you enabled IFF_ECHO on your mac80211 device? Is it just a 'status' about a sent packet, or is it the packet ('full content') itself? Regards, Oliver