Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp449866ybl; Thu, 15 Aug 2019 21:30:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIyRGqbost4m0YiW+D+CMbTaukTHMkspI7ElawKVE5w/A82mlJTMaFcY0QxsFiXs0rfO5g X-Received: by 2002:a17:902:7d8b:: with SMTP id a11mr7382293plm.306.1565929822591; Thu, 15 Aug 2019 21:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565929822; cv=none; d=google.com; s=arc-20160816; b=wArhwbZcyiRQj1jJAV5Lutwl2uJAMD3sCabvcMv7y08miQ+HFsblvf6rG5M/XZ8/6T 6HVdLEm3zSOMonCApn8Rx5FBPDotiZ6H9Ji7BsvZwZmSajoqR5tjZXGcONq6U3ogBJlq 7k6XAMdb9vs9fFgWnTISxvfmgW6920cd8w9cGgt0LuZ+9g1682DlYXZK9tB4YV5OQeOd FE4oXpc9eEpAFbX6XDSc0DnLYNeXbaGJy+WPTKGtdCysCr4Me6Batu+OAaZHH8YFCyN4 JOA7yf+3P3w6+i/w6slMKMeJrSKq4JVeOJ0i0OjJU+gAkTAd81laPuXrep+U1nPVTZww 6Bmg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=3XlZYMRFin0Z7cZTXT/iQxq3F7h241nqtpeIkiCO2wE=; b=XN1vPrSjQsZBsD5o/FeL/LBBYsOgOsLyJJK8Z5f0inSuRgRF6OENE3bF/FXTnaOWEO 9wuTRjgfsUBiIJjcIM7pQ/qW4JVmp5bGWeuEgeWGLy2PmSFiCyRMVxAQYlyMQZormLCC PkEc0HPP9LM112MDh0HQCOItZsac5lB6g7gI+1LixQoNrgPXbtlE9DkbvdnEWzhyatJS mcPNMIT4O4qGHpgyp5UrO6rIgthST6Du/nCWQMJ3T5bE+90AY3Rq0pPaqYQmSm2R7ZgX 4zGWCuhOR3VPLCAJpIOFLo1ON68cxMDw4e3zAv+YLJqyewPAe7i/y0LUWDxsGY6l8HAd dggQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b="pvV6zT5/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si3189575pla.262.2019.08.15.21.30.06; Thu, 15 Aug 2019 21:30:22 -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=@newmedia-net.de header.s=mikd header.b="pvV6zT5/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726088AbfHPE36 (ORCPT + 99 others); Fri, 16 Aug 2019 00:29:58 -0400 Received: from webmail.newmedia-net.de ([185.84.6.166]:53789 "EHLO webmail.newmedia-net.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbfHPE35 (ORCPT ); Fri, 16 Aug 2019 00:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=3XlZYMRFin0Z7cZTXT/iQxq3F7h241nqtpeIkiCO2wE=; b=pvV6zT5/9Bw1KUGZvMVi004mF7dzbzR4S99IgiKoAKTi6YCuZykp4ltKnwmnIOKFkw3PPkc7tcccvH3JfF1F+m7disropIsUbmPbRKKoLDNl5b4VT1uyBRZGoqKi1HP56SpTdkd/CA6xwoco5EBbk+IqDFhVm3ffdSI8rO01BPw=; Subject: Re: Implementing Mikrotik IE To: Josef Miegl , linux-wireless@vger.kernel.org References: <20190815152844.k5mmddvbwrohkzr6@pepin-laptop.localdomain> From: Sebastian Gottschall Message-ID: <3a079683-6f57-3b42-f909-90c46e14f14f@newmedia-net.de> Date: Fri, 16 Aug 2019 06:07:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190815152844.k5mmddvbwrohkzr6@pepin-laptop.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Received: from [2003:c9:3f31:fa00:e41f:2151:796d:3095] by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1hyTX6-0007UE-4z; Fri, 16 Aug 2019 06:08:08 +0200 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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. >