Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2330974ybi; Thu, 20 Jun 2019 13:10:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8LnJpw1Fuelm3MqG1G6X0SyD6qXw0zm5q21fcLAYSUuEd0W6/GYcnXahUKjhmTqRewSCz X-Received: by 2002:a63:6dc5:: with SMTP id i188mr1211654pgc.188.1561061424126; Thu, 20 Jun 2019 13:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561061424; cv=none; d=google.com; s=arc-20160816; b=z5ZPpaN3byCyC7ZkeUMgPaN/9IY6wSkOIiVs3yDtuqZhd+rBee68X08BGeZAd1pmNo k10JWs8rNbPIsLYsWUC5YCvAcpv4RYIzbSXrLUGRFwRodXSWmC++gtXMrQkXvLXGrBk+ BgmG6KipZGlgGCP8Ov/P0JwkXnLJ3MrSrBJxgAqWkYlzOwD3Mb559crsJVv0+/UG7ZZq MlNMTNW/ROQ7NqBBow8ssilwXK817hT48gduL1lagfJV628FhCn+lD9YRmqdzERsfvny xf38lJNDVaBtxFB8S9vxQMHJFcKhc0vZtM0hGW3idY0zquhTtb/mb5pqgHiygWkSXko6 tc/g== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Z8zT/P+FmNDsp44nATYSRC3MzwXgP7wYNzVecLT2oKs=; b=pIlVKaIvJq9Bkd+xUYZvQp3iO+lxphfF4UmuOgR01BZsi4HuyAX6i3SHbJfHwmYGtE 81Sk9OCQvRT+K4MxHs1AZCzfp35Q3qKOXo0Iv5CY3hz5DLtiIxFB2Jqfw7II3Q0PfGp4 nKVMLHaaiEYxqRTFsTX0BlP5hIJFrK+an4WwVc0SfugOFyCYN9FxTh+3FXRlU2CriQx5 zS6WQJbWSdcLv2oPHe9RTKs3c0snFSiSjmCmIN7Yvmq6LRGlsQA9A5vPs0fmeu6aJhV7 mvzomFpctesJGbBbaXFV520ZbCzI+MgpmkSWAK+aVu/V5ahnNSgCN/QAxy837Dv/2HAm nRQA== 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 w3si395251pgh.525.2019.06.20.13.10.08; Thu, 20 Jun 2019 13:10:24 -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 S1726469AbfFTUJr (ORCPT + 99 others); Thu, 20 Jun 2019 16:09:47 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:44888 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfFTUJr (ORCPT ); Thu, 20 Jun 2019 16:09:47 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1he3NR-0004kv-U5; Thu, 20 Jun 2019 22:09:46 +0200 Message-ID: <144f36779085498bdc1b2f7ac0d0c267d431f51d.camel@sipsolutions.net> Subject: Re: [PATCH 3/3] nl80211: Include wiphy address setup in NEW_WIPHY From: Johannes Berg To: Denis Kenzior Cc: linux-wireless@vger.kernel.org Date: Thu, 20 Jun 2019 22:09:44 +0200 In-Reply-To: <427f488f-98f5-f888-f079-e2bbbb6eedf3@gmail.com> (sfid-20190620_220528_438291_AA97E7A5) References: <20190619223606.4575-1-denkenz@gmail.com> <20190619223606.4575-3-denkenz@gmail.com> <7da9b924-78c7-ba72-fecc-a11700a34ff4@gmail.com> <44923833f1068e360b1f9534a9bbd37be41e4833.camel@sipsolutions.net> <427f488f-98f5-f888-f079-e2bbbb6eedf3@gmail.com> (sfid-20190620_220528_438291_AA97E7A5) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.fc28) 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-06-20 at 15:05 -0500, Denis Kenzior wrote: > > Ugh. So, if I understand this correctly, NEW_WIPHY events that are > generated when a new wiphy is plugged would only send the old 'legacy' > info and any info we add in cases 9+ would be 'lost' and the application > is forced into re-dumping the phy. Yes. > This is pretty much counter to what we want. Well, you want the info, shouldn't matter how you get it? > If you want to keep your sanity in userspace, you need proper 'object > appeared' / 'object disappeared' events from the kernel. Sure, but you don't really need to know *everything* about the events right there ... you can already filter which ones you care about (perhaps you know you never want to bind hwsim ones for example) and then request data on those that you do need. > And those > events should have all or nearly all info to not bother the kernel going > forward. That's what you wish for, but ... > It sounds like nl80211 API has run into the extend-ability > wall, no? I don't really see it that way. > Any suggestions on how to resolve this? Should NEW_WIPHY events also do > the whole split_dump semantic and generate 15+ or whatever messages? No, that'd be awful, and anyway you'd have to send a new command because otherwise old applications might be completely confused (not that I know of any other than "iw event" that would event listen to this, but who knows) johannes