Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp794517ybl; Fri, 16 Aug 2019 04:13:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgS4RtYzFjVgrnUW7giaxO4YGzfqXzPt+j2Xagx7yUiPrU71z2SNzsdBTUpWCjWCj575cM X-Received: by 2002:a62:e910:: with SMTP id j16mr10496397pfh.123.1565954007481; Fri, 16 Aug 2019 04:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565954007; cv=none; d=google.com; s=arc-20160816; b=ZNj5OZ/QcEplmKOlnTUuMNJOQoA7deotcCzej2LU0+0+4o9EXT9hLAb1F3R9RfwD6/ IEMtPmRJYvzBRivqpycqUXBzQdhdKrVkUvdyKzRhwBNKatKkC8kfK6NM4BIOdJaLzUc9 7IsMt0ZbauMq4HHqggeAsYMXJvyipWkJeiMn9Dw8Iqtr+vl3DngeW1XDbxA1t23yLhBL vXE3vI+FhYC6UKZVvPBbFBe7wAivWncM6BX+9IO0iGVKUQHbfcvYI7p2E/AERatGH+GL ZErcep4WH2fu/8ANLq1XzGXItw8OinK6q+h7lokWxn1oIt2cv4bGE2lJgGv+Fx7cU5b9 FTlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VfUlCRtQ++3BDxV6nzWRKs2yZtxIDikJKUHP+1UGJzk=; b=F8jT/02Z3GQvmf2mwQIp/81PtXWQ6iDH0reVt5roKWQ4blAzGppuDWByIngQTASpZY q/ra2ee8rGgC+dxtzzrMV/EDpfGpvok5TrFYmnbip/XiS0IeeIEZXLYUVkZBPJvWB1bX gjTVGDnz/ZwZ1xor8XUa7m8DYZafKuBkuO3eDH1O474Yr+72hka7ctu6AP25PrpAUgjX 1k3VSIrpLcKJZge3y4wFptCEVIwGrHt0aC2Ry9FmKl45actexYYssu36u7f9n8eBMINs hdLwg6AwgsC6P8U7YYU8IDCThMMs6x9IVqwQIABDROCP0TB3sSA4ni7dCH2CO5pOXwm6 FZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@miegl.cz header.s=dkim header.b=RjrCsyyI; 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 v189si3639863pgd.289.2019.08.16.04.12.59; Fri, 16 Aug 2019 04:13:27 -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=pass header.i=@miegl.cz header.s=dkim header.b=RjrCsyyI; 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 S1727052AbfHPLKx (ORCPT + 99 others); Fri, 16 Aug 2019 07:10:53 -0400 Received: from ocelot.miegl.cz ([195.201.216.236]:60790 "EHLO ocelot.miegl.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbfHPLKx (ORCPT ); Fri, 16 Aug 2019 07:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=miegl.cz; s=dkim; t=1565953850; bh=U5QNjjmSjPR1Tc6nSH7JQtKMSInXcthJGV6j8RUwDmM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=RjrCsyyIM+9ZZakaR/vbJPL5lllezaSQfyDHcNwkuKVEWWdi0d/jpzOV2gQKSRstR qaQT0FZ1cWvvxY1VEgPDqUXuyWZictnOFi5LOIYy7LzvV4erG6efYbrz0x9bgmvmvM WFqitFGAJn9b5m30OOvmG3IRAroi3clds8D/hJoekggUrDTguCFcMjdMd83O6+uAZf /ODliYJGVFU3QeP1hW8J/kPq3/cVkGf/o03f7KOp7QHs2QT8qt71hsZLEGrI3h+aoK iyS/yOHfll/lvY7WWXbmKvJOBzjun6g+NVQx+r84FmRzDrgNO2IkTb/N6M+ZK5IKOV Cg2wO63css7qA== Date: Fri, 16 Aug 2019 13:10:44 +0200 From: Josef Miegl To: Sebastian Gottschall Cc: linux-wireless@vger.kernel.org Subject: Re: Implementing Mikrotik IE Message-ID: <20190816111044.4ntizgmpa3twbzcg@pepin-laptop.localdomain> References: <20190815152844.k5mmddvbwrohkzr6@pepin-laptop.localdomain> <3a079683-6f57-3b42-f909-90c46e14f14f@newmedia-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a079683-6f57-3b42-f909-90c46e14f14f@newmedia-net.de> User-Agent: NeoMutt/20180716 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, setting vendor elements in hostapd works great - but I need to add these custom elements to assoc/reassoc management frames in station mode. Given that the vendor elements option in hostapd works great would it be possible to patch wpa_supplicant for it to work in station mode too? Does nl80211 allow setting NL80211_ATTR_IE for station mode management frames? Also what are the 'evil hacks' you are talking about? On Fri, Aug 16, 2019 at 06:07:02AM +0200, Sebastian Gottschall wrote: > Hello > > Since i already have done this for dd-wrt for mac80211 i can tell you, its > not easy but possible. the most easy way for broadcasting a custom IE > is just adding a custom IE with its properties to the hostapd configuration. > it does allow to set such properties > so you dont need to change anything in mac80211 which requires some evil > hacks > > Am 15.08.2019 um 17:28 schrieb Josef Miegl: > > I've been trying to implement Mikrotik IE. It is a vendor IE that > > carries stuff like radio name. Even though it is Mikrotik specific, UBNT > > has a patch for madwifi: > > https://github.com/jhairtt/ubnt-hal-0.7.379/blob/master/patches/madwifi-dfs-r3319-20080201/074-mtik-ie.patch > > > > The IE is sent in beacon and assoc/reassoc frames. I think the correct > > place for this is mac80211, but I'm not sure how should I expose a > > switch to this functionality. Is there something like ioctl, or do I have > > to implement a switch in nl80211, then in cfg80211 and then finally in > > mac80211? > > > > Any advice is greatly appreciated. > >