Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp514972ybl; Thu, 22 Aug 2019 00:12:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqAngBHi1DGEbaDo6mM2ARmWTw5Q0kDdFh7+oGTC3GHTmNl1v+6MFbdcT5izunUacAVBAC X-Received: by 2002:a17:90a:9f09:: with SMTP id n9mr3980526pjp.72.1566457976865; Thu, 22 Aug 2019 00:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566457976; cv=none; d=google.com; s=arc-20160816; b=ErmL7sBlrKF+wzlEdn75yjqKnPnfPfcquuIbtqp3tiFYybDhr8T2I5h2oJ8VDE8XiS Uz3OQCm7CzUqgReQEbgY7aEQdH0PD726/IuBELAekxKFkSVK6Yjq7sdO8S/U6w2yPAN1 OSELyxlvRMK+bcV0K9f4PG39p3dcEzgud+og2tGyu+kRzMTSik/NDCjIPQwH92yoc+0g lG28nicsV6HFkaS5hgN3WItY5onacA5CC/d3zY3d9EOCd/JSzD6VfdapgNbmuwyXuZNd EBRGQXghX1jqZszVmnMrgeAizvSteu/63ClpL8WsIeIdojJ79a0BQzxL42YXtpPpQMCL qwgw== 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=j4WTqz9LhIyoGCg0Gyx96j4buY48QOY9GkakJKektLY=; b=QkK56otfhXDS/nJgrpJ+POsu1V3iit3DY1gCZuTVwYhJskmQrfePoUGxZWmwOO4Cdo N5HjRYTEZuj9x0UD+vuF5/8pnQBQVxC+JlUVDvgnrh5vaXzskG3rr+kkgJ1H0FBBsuJ8 Ws5JBQjId+3XNUMcvkZmM0IAZ+vfZqnAjYxL3iS7sQSBbKTIfyNIeQUd+K2YjFoNlvE5 DtBKsUnu1QedOSw0j+HCJiCTWCrzPREi7nuF92lRm8KW4zOGp4sXsVVy/MS8NqYqEDis UaaJcfMq2pOqMWevRnE0K8tKYGocEuZkfgQbUWDIwEXierYtyGQzj7T/c2ZmrEq3ool1 DCZA== 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 x3si16763431plv.422.2019.08.22.00.12.41; Thu, 22 Aug 2019 00:12:56 -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 S1731156AbfHVG6v (ORCPT + 99 others); Thu, 22 Aug 2019 02:58:51 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:56364 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731064AbfHVG6u (ORCPT ); Thu, 22 Aug 2019 02:58:50 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0h3X-0000g0-Qr; Thu, 22 Aug 2019 08:58:47 +0200 Message-ID: Subject: Re: Implementing Mikrotik IE From: Johannes Berg To: Josef Miegl , Sebastian Gottschall Cc: linux-wireless Date: Thu, 22 Aug 2019 08:58:47 +0200 In-Reply-To: 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> <8ec8202e-ca07-3594-5873-5b282d553711@newmedia-net.de> 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 On Thu, 2019-08-22 at 01:57 +0200, Josef Miegl wrote: > On August 20, 2019 2:36:21 PM GMT+02:00, Sebastian Gottschall wrote: > > i know. thats why i never even tried to contribute it upstream. but > > from > > hostapd side it was more complicated than just hacking mac80211 > > and from stations a second mod for wpa_supplicant would be needed and > > since the dd-wrt webgui just uses nl80211 to show the station table > > its more comportable and takes less code just todo it within the driver > > i there is special interest in it i could of course try to clean it up > > and make a upstream patch out of it > > I don't think something like Mikrotiks IE belongs to hostapd. The > cleanest solution is probably parsing the IE and generating the IE for > hostapd with an external tool, that can the dd-wrt GUI then use. I've > made a simple C program for this, can share if you want. Sebastian was talking about yet another case - namely recording it for the stations, to be able to show it. I guess hostapd could be made to just generally record *all* the association request IEs that a station sent and make those available over the control interface. Alternatively, you could have another application just listen to nl80211 events, I guess. Or even the kernel could capture *all*, but I don't see why we'd waste unpageable kernel memory for it. johannes