Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp588413ybl; Sat, 17 Aug 2019 06:46:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCoivpf80+c6oc0P73O1bb73tevMIa1ozdr2aPYNEqHLGkNuM4h+kDHQPuqG4ALjbiD90v X-Received: by 2002:a63:dc4f:: with SMTP id f15mr12183031pgj.227.1566049571859; Sat, 17 Aug 2019 06:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566049571; cv=none; d=google.com; s=arc-20160816; b=om4X9dTej6cUN7hgF4alGZXQL3j/m6F/n9+KbiO3BKSjuRp7rP/MmFzCD3a2o38flJ Vtty1hUnl/8Gjv6NW+eEnd9lTB2iI1aRIcy2vgh1eAaEr481Dyf+ZCBcTixeJrp6P/C7 yb3ON1Jw9hhuFAQm1p90VL1jIYM+rc/OlwySUjjDIGX3vzfqvJibjNmMO+kWU80a03tF atvgxgjOOzVl+q+xGfH8CDKEm+Xel/2ASpZmZCxr5yvK/g13+S47/BxuAHrxKz61shgr J7NNbxR2x+Mh7V7JncJmdwvF18Cq5UPFQG12vQFd/6BJ5ppjleTHx+jG5rnzsS0sTY2j csEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=Zi3acJcVMVsPvdPbPnBhHZSPBQmT3/0u/Il5XwoAjbc=; b=so2eV9+kWohX71YdezwvaeUqV2cttVLwKcu2pgPK+bLcQIobC2rYpKVCrvp2CkBnVx zLNa++CiCC79iOoqB7uFnpwGEbuiZYwfWt5weaCX4Fv4zqlEHkkH0WfZqvrxd0LInAU0 /QqZyuzPkrdw3qWrJNj4C/2mKzMP0Ks6wlH3uLghW+p1ljRjrB8vJ9+bZsGSbb3md75m G1GT1RGUve/l0ycakpB7XhbFT9FYIk3tK+IQ5Kp/Tk0DQH87XPWapPlehg8lNxXsBmMw WEpLlpxI6yWrqH96wYYV+I8Odgw1J5km7mYAzai7NKbA9k4YsW/Q8PP7/UEAW3ar8v6r ElNw== 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 o1si6257693pld.73.2019.08.17.06.45.31; Sat, 17 Aug 2019 06:46:11 -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 S1725966AbfHQNkj convert rfc822-to-8bit (ORCPT + 99 others); Sat, 17 Aug 2019 09:40:39 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:42751 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfHQNkj (ORCPT ); Sat, 17 Aug 2019 09:40:39 -0400 Received: from marcel-macbook.fritz.box (p4FEFC580.dip0.t-ipconnect.de [79.239.197.128]) by mail.holtmann.org (Postfix) with ESMTPSA id A772ECED30; Sat, 17 Aug 2019 15:49:19 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Flag for detecting 802.11r Fast BSS Transition support From: Marcel Holtmann In-Reply-To: Date: Sat, 17 Aug 2019 15:40:36 +0200 Cc: Johannes Berg , Matthew Wang , linux-wireless , Kirtika Ruchandani , Jouni Malinen Content-Transfer-Encoding: 8BIT Message-Id: <7CCE8D56-9E1A-4E04-9C28-E384C1B2E2EA@holtmann.org> References: <20190403210200.GA93453@google.com> <211816ff03cf188d834a21b1fbc98b4f8c5b81f4.camel@sipsolutions.net> <7687225C-D965-479E-BAE8-769B0AEADD76@holtmann.org> To: Brian Norris X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Brian, >>> Well, I guess we could just run the command and look for EOPNOTSUPP... >> >> this kind of API design and usage is bad. Try-and-error approach is just not sustainable. > > Sure. That "suggestion" was quite literally an afterthought. Not > really a proper suggestion. > >> Even while it is late to add a proper flag that indicates support, we need to do this to make nl80211 better for the future. > > I suppose. I'm not quite sure how I would make use of that properly > though, given the corpus of kernels out there where the flag doesn't > exist (but the feature does). Some other heurestic for determining > kernel recency? Compile-time flags for the relevant user space, such > that one builds it for "new kernel API (w/ flag)" vs. "old kernel API" > (with the latter not even trying to look for the flag)? > > Or I guess a more proactive approach: implement both a "supported" and > an "unsupported" flag, so user space can figure out a tristate: flag > not available (old kernel -- user space is left to guess) vs. command > supported flag vs. command not supported flag. > > That seems a bit awkward though. I would not make it this complicated. Add the flag for future kernels and the move on with life. Trying to workaround older versions is something I would not bother with. It is always possible to backport the feature to older kernels. And if you have a distribution or an OEM that cares, then that is what is going to happen. Regards Marcel