Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp441069ybl; Fri, 30 Aug 2019 02:04:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz39g29VapKvER5Yh4sMm4rh1wzTtZkpvk0i+te6XBCm3W9WSQ59fhs0cilAwx3NwwGtYgi X-Received: by 2002:a63:184b:: with SMTP id 11mr12761767pgy.112.1567155856400; Fri, 30 Aug 2019 02:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567155856; cv=none; d=google.com; s=arc-20160816; b=GKIOkgrWoRUY251Lh0r8VDbV9w/QtM1jbQp1lHga5q8Mdonjktj9O4Nvs7fU2vqqtv 2hDKs3PRJ9d87RxKDtRi416gO2OYnAxFQTkCUzOx2bfhMmU7lM6E/+j0f5SaTrHf6cR5 ftC1J5V2oyL5/W5dsplZXzXgWrrI/r2/tBZGsOCjal9PtSNmI/nfK27wac0aWJyeQ21H pOUtj05LEXdpvSgJ3MoWfIn2rGD8WPwMeCZzo8c383dHdJ7zqOryGEgM3dn6YbAXK3wp Yf2EpAqRl+tyDSUIm5B3g+lraMXiodOUBGcHW4U+JDx6I/+s1DAMLSt4gU73UdIpKWv4 LJew== 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:to:from:subject:message-id; bh=EQ6AE2ifee3nxfITpyM93vAen2EV8quu2yJum/XBxww=; b=S5uIXCiJlaSHxR5jLs/1pi1ccEqkLV9fDZAnW1EI5Oi96ZE+8vzoCTl5YaSQ2Njc1i bhn7NoCLNzuNhfrAwYdfgMSrXM4i3Tbqk9jj3sT+z+QFL+jcn+8mqQ5rSgzR5aEgE4yi Gma3ODNu2Mw1mDHK7kv2Y3LpNg7vhz1QaxwuHiAoH7aBPx0uMWtc9MdmzvUSofULfuCy 7IbELYB9uHlZbjlLTjJVA1OpB345Tff9BLC57b+5MZSGFJV2e1vFdN2pr6ijYOrHrsBj bCesjprc0j8gwS5SS6Vjulki6XcMBcSZGja2l/6p7USgpgjMBIyVzpfLqyE1qUyAkOyx 7eog== 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 a22si4548312pjo.40.2019.08.30.02.03.54; Fri, 30 Aug 2019 02:04:16 -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 S1727234AbfH3JDy (ORCPT + 99 others); Fri, 30 Aug 2019 05:03:54 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:33232 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbfH3JDx (ORCPT ); Fri, 30 Aug 2019 05:03:53 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.1) (envelope-from ) id 1i3cox-00026D-St; Fri, 30 Aug 2019 11:03:51 +0200 Message-ID: Subject: Re: [RFCv2 1/4] nl80211: Fix broken non-split wiphy dumps From: Johannes Berg To: Denis Kenzior , linux-wireless@vger.kernel.org Date: Fri, 30 Aug 2019 11:03:51 +0200 In-Reply-To: <20190816192703.12445-1-denkenz@gmail.com> (sfid-20190816_212729_636741_39C4CEB6) References: <20190816192703.12445-1-denkenz@gmail.com> (sfid-20190816_212729_636741_39C4CEB6) 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 Fri, 2019-08-16 at 14:27 -0500, Denis Kenzior wrote: > If a (legacy) client requested a wiphy dump but did not provide the > NL80211_ATTR_SPLIT_WIPHY_DUMP attribute, the dump was supposed to be > composed of purely non-split NEW_WIPHY messages, with 1 wiphy per > message. At least this was the intent after commit: > 3713b4e364ef ("nl80211: allow splitting wiphy information in dumps") > > However, in reality the non-split dumps were broken very shortly after. > Perhaps around commit: > fe1abafd942f ("nl80211: re-add channel width and extended capa advertising") Fun. I guess we updated all userspace quickly enough to not actually have any issues there. As far as I remember, nobody ever complained, so I guess people just updated their userspace. Given that it's been 6+ years, maybe we're better off just removing the whole non-split thing then, instead of fixing it. Seems even less likely now that somebody would run a 6+yo supplicant (from before its commit c30a4ab045ce ("nl80211: Fix mode settings with split wiphy dump")). OTOH, this is a simple fix, would removing the non-split mode result in any appreciable cleanups? Perhaps not, and we'd have to insert something instead to reject non-split and log a warning, or whatnot. johannes