Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1242926ybl; Fri, 23 Aug 2019 16:03:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzB9O4BsD5o/IbC4zMxX0pk+uJZ1D9rpqJDUlvX4IX3hrh+7kkcFVRy3HUew6SeUv7PuHe3 X-Received: by 2002:aa7:9719:: with SMTP id a25mr8166418pfg.2.1566601418015; Fri, 23 Aug 2019 16:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566601418; cv=none; d=google.com; s=arc-20160816; b=Gj0LcdPalj9Nih2Dljv73Cwuj84WGnEwadh7iS2mx6mFPLmToF7p+Aa+SKSD64WlPz SmiusI0+rIWubmfSrK69nnZhtgT6X/q4JDlMfzglFuruPyCJcHJIHRG+XLapuxWxjatR D3SINwcqA+8g0i8tIE+iPUzOtVd9lYCWS8vSxliUVBRve6pvGih3OR3mWhMGo12HzSqA WP/tWnaYyvcM68N9fMSliPRz/D/JfPEJkD+Bl8I9YAmb5cqWXJvuGpffYocrmt5x8aTq zUtrqisy2yzsFRmTHBAJYXI++7tXIdRT2Z2Pzj8iT287LSatDxdYR9v+uf2RDLXMPpgr zlhw== 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=rZtKfh4xkdaqIu6R2PIroQERu/0loyLbsCURD1LqLNU=; b=HV5WN+Ux5g0tIayDZvmTnje+c1Al1tCsAqUxaHEHpDsyZaK3CNJLajt6W/8I9+nFSY zwuqKCSIDF5WKoZeihtNNmlfxwdeFLbQdYIgSjbW4kV7YvmSEZpZMDLN93dbfVGT+9v8 NUPgmT4T5qp0AdXMcMU/uqabMM16x0DyPIOYzT0Agx4hKbZGRtHPpcAUH3pdzFWK6Ktb jmlnvHb9MQfV1LiU4QtTDeLOHbcYWaAuf1cDDec1jZx/itkDNzASL0rkT+4n1CYcjpk+ yCUMVVoxZSS2BPUXyh2x21lOTlSpevruHxKVuHjg93FEliEnDw/E60sx69Db1o4T2aYX rfYg== 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 e139si3766600pfh.270.2019.08.23.16.03.23; Fri, 23 Aug 2019 16:03:38 -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 S1732338AbfHWKyt (ORCPT + 99 others); Fri, 23 Aug 2019 06:54:49 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:57186 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731280AbfHWKyt (ORCPT ); Fri, 23 Aug 2019 06:54:49 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i17DQ-00023m-8j; Fri, 23 Aug 2019 12:54:44 +0200 Message-ID: Subject: Re: Implementing Mikrotik IE From: Johannes Berg To: Josef Miegl Cc: Sebastian Gottschall , linux-wireless Date: Fri, 23 Aug 2019 12:54:42 +0200 In-Reply-To: <68A3B9AF-8864-4C0F-A50B-71CCB76AE81D@miegl.cz> References: <20190815152844.k5mmddvbwrohkzr6@pepin-laptop.localdomain> <3a079683-6f57-3b42-f909-90c46e14f14f@newmedia-net.de> <20190816111044.4ntizgmpa3twbzcg@pepin-laptop.localdomain> <20190816113818.ohktykc4fyetzyvq@pepin-laptop.localdomain> <9985fddfb059640f36665efc9c1ef2dc0bdb7662.camel@sipsolutions.net> <20190819113706.ujsz67sxcwt2ulmt@pepin-laptop.localdomain> <6efb9b56c77cd9ea945f89c3371b49c301dc2b4e.camel@sipsolutions.net> <58A25955-2A17-4DE7-82FB-3B20E00C96EC@miegl.cz> <5ee160209eb1f9e70f6224c393389266280d7d80.camel@sipsolutions.net> (sfid-20190822_090033_537095_4B41631C) <0452a0cbb36bcffa8371a58dfd931864c1f79eef.camel@sipsolutions.net> <68A3B9AF-8864-4C0F-A50B-71CCB76AE81D@miegl.cz> 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 > Works great. Is there a possibility that a toggle for this could be > accepted upstream? After all, WDS isn't really standardized. I general, I'd say yes. However! There's ongoing to work to make EAPOL frames go over nl80211 instead, see e.g. ieee80211_tx_control_port() in mac80211, and this patch for hostapd: https://patchwork.ozlabs.org/patch/1108185/ I'd prefer to have it in this path, by having a flag like the "bool unencrypted" passed to ieee80211_tx_control_port(), (and replace "bool unencrypted" by "unsigned int flags"). That way, we don't have to actually keep any state. In mac80211, we can pass this down to __ieee80211_subif_start_xmit() and ieee80211_build_hdr() in the ctrl_flags or something like that. It doesn't actually need to be a control or info flag, so we could add yet another argument to save the space, but dunno if that's worth it now. johannes