Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp326683ybl; Fri, 23 Aug 2019 01:15:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWpejWy5GEbybKIc8Xcw4o/CqqkzXyIl23LIZ5C1b6W7+rrgsstAGTwgDBNfsi4tDm5Xjd X-Received: by 2002:a63:5a0a:: with SMTP id o10mr2922463pgb.282.1566548100229; Fri, 23 Aug 2019 01:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566548100; cv=none; d=google.com; s=arc-20160816; b=yNs/srXBig8JjaKrZ4JL9ROvbafEaF9ijFyRa3NzL0mDPv/8DrFfIlvVcwjEXEh0nx hlhf3hTERT9HES81rOptcMg0um2VbZe7tAyrlges5XEsOUlQ6sT+bpTa3lPcMRNz5mpe 88rgmGonUVyADEmqYP9iKNlmdsuemd5B/RBus9PJ6x3v5cOYGc4EbqixjYGUvljVWBYU xf4RHUMeBOXTqyN5MMJuG9y6jvIxcedoS9G0jK7uMdjB3oDIP8CwFb6zg7IMov+cFW0O x8wNzPI8+lRmnk9JIzrH6/pazsvE8+flXX2VHK3XalgwWe2kMeomwzuZX/25y8X7UY+o WTWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=sbvyW35Vki4TMFBEzUehnHoE+KGPJNuKZL0cLSw3AUk=; b=fny4zykSTPDUTybaDbHzL/SwjpxHIfL3SitUj/voq6IvOdWff13p9tnTXHPNj4lvzs CzLDaBTwvnKGx1L8aBS7K1KmFgwgJBKDykmL7ohUKrmDpY0gqFtbO86TBDSsj4shFcDv i5wX+qrHbXzvZlb04TYIwRdIIP+FJLe3E5wNg8wKLs9G6qnnr0aLyA+O7aW3o4RFgCry 0m6/gFquHPBSYpKLPWrFecXo3X832dDd3WiszvQ731jmYKrtGTva+X//jN9ptRPSEniG R2SMb6NoXjk9gcv+duvcDeW+B9Tu3hINnqxeTaIkGndy9wiG8li/9uxrV1iDncWSIcV3 z5Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@miegl.cz header.s=dkim header.b="BdXAq/my"; 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 j16si1953858pfh.0.2019.08.23.01.14.39; Fri, 23 Aug 2019 01:14:59 -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; dkim=fail header.i=@miegl.cz header.s=dkim header.b="BdXAq/my"; 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 S1730825AbfHVVGt (ORCPT + 99 others); Thu, 22 Aug 2019 17:06:49 -0400 Received: from ocelot.miegl.cz ([195.201.216.236]:32972 "EHLO ocelot.miegl.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729994AbfHVVGt (ORCPT ); Thu, 22 Aug 2019 17:06:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=miegl.cz; s=dkim; t=1566508005; bh=oS+W+U0LENqjrKjT0VVEx1eyDvgQSHg/pCPsP97vWT4=; h=Date:In-Reply-To:References:Subject:To:CC:From; b=BdXAq/mydfr5k0AIt6vddfzFM8DoSoRJvqTi4mnU/7zga2GQ/siQvMkM1ANXjrkGL rLi8Bak00lV3zbUsEONRvkuPLwV1aHJwrQWY0vXBQJEdTLsrwcQ2GMPTPYtaFpDkZ1 l0A/akgBz3CRWUYGt+//nZ7CdF794hYPNeXys/UmlnTN4lKF2DdohWwfcLMjY4XON/ YF3dLllF5PkioHnEBYBoKOaBpuajXjP1jH+Im6Bzndesm6n05SYHLabJojYkN/82EI 1TdJdu0hacGC1gwQBZovccn8GZwbLMbk5dBB6Airt1mGkdvusVzlSdLi6R8infEw3B 694zg424ZtMjw== Date: Thu, 22 Aug 2019 23:06:41 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <0452a0cbb36bcffa8371a58dfd931864c1f79eef.camel@sipsolutions.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Implementing Mikrotik IE To: Johannes Berg CC: Sebastian Gottschall , linux-wireless From: Josef Miegl Message-ID: <68A3B9AF-8864-4C0F-A50B-71CCB76AE81D@miegl.cz> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On August 22, 2019 10:08:13 PM GMT+02:00, Johannes Berg wrote: >On Thu, 2019-08-22 at 09:00 +0200, Johannes Berg wrote: >>=20 >> Perhaps it expects the 4-way-HS to already be in 4-addr frame format, >or >> something else special in the 4-way-HS if you have WDS? > >I think this is actually the right guess=2E Yes, it indeed it! Thank you so much Johannes! >As a hack, you could do > >--- a/net/mac80211/tx=2Ec >+++ b/net/mac80211/tx=2Ec >@@ -2623,8 +2623,7 @@ static struct sk_buff *ieee80211_build_hdr(struct >ieee80211_sub_if_data *sdata, > memcpy(hdr=2Eaddr2, skb->data + ETH_ALEN, ETH_ALEN); > memcpy(hdr=2Eaddr3, sdata->u=2Emgd=2Ebssid, ETH_AL= EN); > hdrlen =3D 24; >- } else if (sdata->u=2Emgd=2Euse_4addr && >- cpu_to_be16(ethertype) !=3D >sdata->control_port_protocol) { >+ } else if (sdata->u=2Emgd=2Euse_4addr) { > fc |=3D cpu_to_le16(IEEE80211_FCTL_FROMDS | > IEEE80211_FCTL_TODS); > /* RA TA DA SA */ > > >in mac80211, then it should send 4-addr frames even for EAPOL=2E Works great=2E Is there a possibility that a toggle for this could be acce= pted upstream? After all, WDS isn't really standardized=2E Thank you! Josef