Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5773297ybe; Tue, 17 Sep 2019 13:16:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr9zQI+OKkwGZWxFpYyxHo5E8EcXiEO3ql4xLuY3VmbX14JfW1/6Y1c6h9S8g1VCgdbn8S X-Received: by 2002:a50:eac3:: with SMTP id u3mr6872756edp.9.1568751404978; Tue, 17 Sep 2019 13:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568751404; cv=none; d=google.com; s=arc-20160816; b=zakkVpqgEP6S63PBVP8jsWcEKRLn/jEs1/sGDcjROLESb9Muu+SSOXIOTg5ADTJ/WX VHuLYyr/6EWxBCg4Knw0Ik1560AmDNhOFiw2BqyCK3ymjlwP7gnGPmL0iVtQg6/O/wNT xXZkh+1g/4JKarMBo1tAAqEn/K7V/k6eP8i6CXF7nKkxDA04X9mZyjkbojsuMC1NIOnX onMaiVl0HFAwyNw0rtK0eye6kerqP9cFA5BbXXbRf1agz2Dqm8ZY72DLkf9T7omi4RoO RQHLIm/VSvfOQwFdW5ovAbuGJZ1L6SHge2tvCLFpabKdnsaXOQrgJa3PREYQubJ4F2U6 lxxg== 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:to:from:subject:message-id :dkim-signature; bh=PXpiNS4jjMNOlNr96UmlOM7e+IlCRwBQJjxXkdEJG+g=; b=u2gK/jTVN9w6UVBtIuEqanNxSzyXWyr3SY3Sz+3ZXtOHL0m2IKkzpD6lb4EXBpI+/g 82lFqVlby/yze4XGrlyjsgJeAOU0vrmpuOsJCYpE6TYsdGHbNIMlPHXpmTz65p0SK9lg 01um8oMABgltbr3CrA5yjD/EAqlVCTfK7rHpi9w4pgVq5ROFcs5jl52+O6rbw1K5bg/n MWAa14NpC9WdqwH0EDBWgZ3JyL3tLI3NHVN68LJ3PTbJYFIFGWaP6R14GoDOZ9grqTeE ya1T3jEcK6JxvhHiUP6eIRur7D2G1/vbXaWcfwGeneIsqLfwYst37BHQFyOZM9DHDpmy 9JyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WlRz9//9"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si2082271edr.3.2019.09.17.13.16.14; Tue, 17 Sep 2019 13:16:44 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WlRz9//9"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbfIQULh (ORCPT + 99 others); Tue, 17 Sep 2019 16:11:37 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45102 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfIQULg (ORCPT ); Tue, 17 Sep 2019 16:11:36 -0400 Received: by mail-pf1-f196.google.com with SMTP id y72so2769523pfb.12 for ; Tue, 17 Sep 2019 13:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=PXpiNS4jjMNOlNr96UmlOM7e+IlCRwBQJjxXkdEJG+g=; b=WlRz9//9e+9spraySYghDmktiOpEerBsgrNW7HpH1LlYNZ5ZgI93cokW8YhY4lX1LO oJrYvm7ZWr1ro05HstUkL1ezb3JPfUYZivmVY0GErw34hDMlK0j1pB/5qFKiCpFf3tMg Jux5YwS1KO+OA/VrFLWCSGR1BH876zwVvuqF/B5Lm+TUeh3sro7gNaNjEeL7yo9nnJZY J4C1eCuHMd5cqloZCOy/O+PW0uwDtllgW2CPZ8cHFrdImOIyRtkx3oKl3Yz9ykFZqQGT hXOyTmSoxnEQ2mMSWA9VH/RvVZU5tmTd+vPC16n5YxWJNKNH3FpYWTTihmbQ1ko2QjtR Xx6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=PXpiNS4jjMNOlNr96UmlOM7e+IlCRwBQJjxXkdEJG+g=; b=NN3pwQySSzrHinchcUns9XufVAGYkPQo0ZRAL49jidEg3XXz82gTuNjs3tL9GKhF02 52ot7OE7vtymwS/7myjdq9znk7zRS8fIGJw1ABcm4RZ5DI8xs4/Nfy0Tg94sYN5Xgcbc un3PJCM+h0QNogOCy6pNSuFMXmBAbutAUrWeW/DXUq34S1oOx505ozhH0s6u+JZ0jYcp kpzvnYXXHJjgLCSHgyVkzNmoWlB1EkmVgn3vuaCQXaCLK6xfO1WISRGEDi50czLNRXsY s+LICVnuakznbXqfDATr72/XH7hlkU1l8K9IMDdPaJY6/zrhDVws1v1ZH+OhhSYNmULJ XXUQ== X-Gm-Message-State: APjAAAW0vnPu691Maq0wKysFreDB9XypA7Dmiqt2GP7scivIGDaWOQZV vBFhnAy0wPjX04P0vXMTcwQ= X-Received: by 2002:a17:90a:a47:: with SMTP id o65mr6827827pjo.90.1568751096010; Tue, 17 Sep 2019 13:11:36 -0700 (PDT) Received: from jprestwo-test.jf.intel.com ([134.134.139.76]) by smtp.googlemail.com with ESMTPSA id p66sm9863419pfg.127.2019.09.17.13.11.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Sep 2019 13:11:34 -0700 (PDT) Message-ID: <0937f6e2435976756db362889e4b828cc1b46f83.camel@gmail.com> Subject: Re: [PATCH 1/2] nl80211: Add LIVE_ADDR_CHANGE feature From: James Prestwood To: Johannes Berg , linux-wireless@vger.kernel.org Date: Tue, 17 Sep 2019 13:09:30 -0700 In-Reply-To: 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) <47aaaccf7d8fb58587f0cfbe38acd18e1420dc9a.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 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 Johannes, On Fri, 2019-09-13 at 14:14 -0700, James Prestwood wrote: > On Fri, 2019-09-13 at 23:01 +0200, Johannes Berg wrote: > > 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? > > The intention of the flag was not soley related to > CMD_CONNECT/CMD_AUTHENTICATE. Its an indication that the > hardware/driver supports a live address change. If you don't want it > here could you suggest a better location for it? Could we continue this discussion? Is there some other way you can think of to let userspace know that this feature is supported rather than an ext feature? Thanks, James > > > > > And in nl80211 you'd need the flag for if you actually have the > > "change > > MAC address during connect" attribute. > > > > johannes > > > >