Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1283229ybe; Fri, 13 Sep 2019 14:04:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9mq5Ml2jMZEY8G14fpkKEgEgdGxdT6owibVot7oYmaZjJ1VPVkTz9yKZLXqopoOzyiIgB X-Received: by 2002:a17:906:6448:: with SMTP id l8mr41454772ejn.233.1568408694169; Fri, 13 Sep 2019 14:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568408694; cv=none; d=google.com; s=arc-20160816; b=yuDD1dRXxxHjxNwqYPdb6UOo8SGlW7JKF7L/KWIYXyFn4njATQh8IMWOUUIGv67ewV aEgsfkIGYRJmnT4STUqTW6+f/Ti8ESr3btZGor8wY4Pe2Tv7O1PeM1wl0PEYX69SBEuU sCmFcQxvjGJIZH7RFVY0Rvo70SoXleTsR5Y2tROEZPxPC50E5hz5JMcA6dWWVt6s/2af BbIFfAYN4Nv5capiq6NZaOE/O/tNixGChNEE7ObJJQ6uI/u9Ip5CrAiKCdotREmcB+s3 jCJZv+ORkE4nLoXN9VY8q4jtAz98dUS8G8x6RUvrc9lbfru6gFY6+3knZdIScWhCz15X mgVg== 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=hSr23Qi0d44ty+D9bhtcfN3+asENtbxsKxk5rhpKEaA=; b=jMPmETBUS9Cyd+F/GcmCg4wXrFg5njDYB05fgNEh174M7jPKHv5hnv7ZPfdQTMwF4k 7MSoYmLhDN99VfGyUX8aVmtFfhwnZnK4MXmh3APwDLOuYbaodXhOzngj+p8xSwOFgx86 jPLs07CbMCeomB8G4swcAw2FfKHM7QBSOvzaWzf3Zyj1cFiftYaJLZuzTSj6qqbUkO6F UP6YD0DBQaoeby2ARxL2VCv3Eph3Yf/BLW+Gi44X9iSCuFBmCOcSD/iFDNrNyqqL8HmO AOi9NscjKCwYP6+e8BppLSXkokZIKxic3rAuRYEdRMRDlQ2CFIhSjuu1+D4GnPaCXbTD XPyA== 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 22si15302634ejx.65.2019.09.13.14.04.25; Fri, 13 Sep 2019 14:04:54 -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 S1731263AbfIMVBb (ORCPT + 99 others); Fri, 13 Sep 2019 17:01:31 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:33476 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfIMVBb (ORCPT ); Fri, 13 Sep 2019 17:01:31 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i8sh8-0000x1-1C; Fri, 13 Sep 2019 23:01:30 +0200 Message-ID: <47aaaccf7d8fb58587f0cfbe38acd18e1420dc9a.camel@sipsolutions.net> Subject: Re: [PATCH 1/2] nl80211: Add LIVE_ADDR_CHANGE feature From: Johannes Berg To: James Prestwood , linux-wireless@vger.kernel.org Date: Fri, 13 Sep 2019 23:01:29 +0200 In-Reply-To: <38c222129dd182de4c55e536a89eada7f58a1bf1.camel@gmail.com> (sfid-20190913_225826_111097_E5ED9AB1) References: <20190913195908.7871-1-prestwoj@gmail.com> (sfid-20190913_220113_419728_36032050) <6c85d9b108825939afb84ebc8a708a211f7e2b98.camel@sipsolutions.net> <38c222129dd182de4c55e536a89eada7f58a1bf1.camel@gmail.com> (sfid-20190913_225826_111097_E5ED9AB1) 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-09-13 at 13:56 -0700, James Prestwood wrote: > Hi, > > On Fri, 2019-09-13 at 22:48 +0200, Johannes Berg wrote: > > On Fri, 2019-09-13 at 12:59 -0700, James Prestwood wrote: > > > Add a new feature bit signifying that the wireless hardware > > > supports > > > changing the mac address while the underlying net_device is > > > UP. Note > > > that this is slightly different from IFF_LIVE_ADDR_CHANGE as > > > additional > > > restrictions might be imposed by the hardware. Typical > > > restrictions > > > are: > > > - No connection is active on this interface, e.g. carrier is > > > off > > > - No scan is in progress > > > - No offchannel operation is in progress > > > > Hmm, what do you need this patch for? > > > > IFF_LIVE_ADDR_CHANGE should be sufficient to discover it? > > Because userspace needs to know if this is supported? > IFF_LIVE_ADDR_CHANGE is a private flag... AFAIK userspace has no way of > obtaining this. Oh, annoying. But that doesn't really mean that nl80211 is an appropriate place to advertise it, IMHO? And in nl80211 you'd need the flag for if you actually have the "change MAC address during connect" attribute. johannes