Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1298527ybe; Fri, 13 Sep 2019 14:19:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCns9/wsjP5MYdGyoOKdmf5ZU8Aw5ogM+D7a4YPseddW5PLBwQosgW8CHXha8dc9ncj+AM X-Received: by 2002:a17:906:5606:: with SMTP id f6mr41062998ejq.110.1568409573545; Fri, 13 Sep 2019 14:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568409573; cv=none; d=google.com; s=arc-20160816; b=L4KM95lapOn371ybf2yjIXRsz2ArUHs8856UimrdgejmTuv8erTYkqcEvPDkRmaPQB JHD+C+rBCDdD/r2yO3LVtIFWLLX0cMj9seHQZmyGFu0+HfTARt6kGChhcG3QXgPq2l8j dUxYArBXpaVnNYoJZRUKNq2LvZvHNZa7NcnvR7D0Cb3mJTtfadAMO5C9i4ocqskThL5g qwMEaGmo9lNjdJtX/Vtu2Gny7t4cOMjNRGYuIBMMkAk5c/5wZOSUBs8mhk04VrkuFWnb +qQaUPfJTx5hXwMSzZje0M6IhQ4NWlIfNcfC4jOvzMYM5p2YdYdi/x1u9/x096DNhKS8 a2Zg== 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=YUuz0V7V7oa0s38GRBhksIbT5ZdpiR5vkrUs8FdjOf0=; b=SY6jajC4HRX0biQws6yS+gWFLW2q1qC6I+/FWkfjq3F9PryaQ+wXud8Y+piqe8NABG SylXD+IRDSxQkC/V9xMl9AI528WNnhN139lp3rr1c0U2JCzMKNsyUWP9XItBSElrPh4Y OEq/lgyCzUsYTI2SbaXIar6D4+zxfiVYDxVd0IE6aNIdLZ74BbQLWgv9QmV6WQ2Srqlt U0sKJY3O2dHpeNlGFdSnKq1mmmMIZ7EXX48x8yhZ4gvmv/XngNY+jUkdQXenPsZLhl0D 8++klqPQmUEqFthmPXDE0vjbc/xXNEsF4eM9p2C9Ws3nvGBcObIJb8BldHDGHi7BsOZI p+og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N0le8tiz; 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 b11si13746291eja.222.2019.09.13.14.19.03; Fri, 13 Sep 2019 14:19:33 -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=N0le8tiz; 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 S1731160AbfIMVQY (ORCPT + 99 others); Fri, 13 Sep 2019 17:16:24 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46161 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfIMVQY (ORCPT ); Fri, 13 Sep 2019 17:16:24 -0400 Received: by mail-pl1-f193.google.com with SMTP id t1so13770935plq.13 for ; Fri, 13 Sep 2019 14:16:23 -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=YUuz0V7V7oa0s38GRBhksIbT5ZdpiR5vkrUs8FdjOf0=; b=N0le8tizLl2mMsbCviqEdW+mOskA2nNdaNj3IYOFs6xh6/TL3B1v0/G3fOl02VRw1O 5aO/w58RWzdstmiB3by7qgnzFiCdrRWic2VqH41KkAXUvRPZY7HW1TeHbaobx/mUrBVV Pe9HkgDED7AH68uHDTFFFd1XN3eFnJRqcY9y0T3pKmQV6bluzQtOW/N7q62jSUf2jLfd EWLSYAx5r0meCD7dpgHH+dgKQ8G8TPjdgIrqv5qmuwtX4LABy+LFtKpj3UCA7K4ENPj3 abPj3/GITlDf8BYEQ4bcDFEV1RVlMlI72lkijByj4wjpJmObKjpFcFKIuUsRZ9HTtgcN fnYQ== 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=YUuz0V7V7oa0s38GRBhksIbT5ZdpiR5vkrUs8FdjOf0=; b=XzFOhAYDuXB1W5IfdJyHBlyNDF8eMtAxToBU8PvTbHtQU/SxqNUkn0j4fkXAoF/kf3 tKFPsTXMDDsADuSLw7pPCnJ47gy0gMsAcNaqNbU5Smg2v7+hU7wDy7DdFkXQc69X/cHF /ouN5ru0bdYYSddXtU/Lbc/IcGLKhdDoPSz6wp4sW+WDvw9gE1531HCDngDZJ03M+Ex1 xWWQDpg+bOLQshcvwB5ZTdyD+o0CDBrSrp3qW8QO6GQnXi+6XSFS2WJsHFLUwtdyEfcD UXLVSsAnvuloQfy9tbUMv1235zwjZEoF5DYz17RQfH7LhTzvhhbbvGIWtt/itzCAD2lr lNLA== X-Gm-Message-State: APjAAAVn9xRZbjbBKOuVYBmzuIDCuRjfcFQQU9bOfp7wfPD/E2tBZyAs eZ0y32z7SWDaEi87giIXfnI= X-Received: by 2002:a17:902:a618:: with SMTP id u24mr48138629plq.342.1568409382767; Fri, 13 Sep 2019 14:16:22 -0700 (PDT) Received: from jprestwo-test.jf.intel.com ([134.134.139.76]) by smtp.googlemail.com with ESMTPSA id q21sm32491131pfh.18.2019.09.13.14.16.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Sep 2019 14:16:22 -0700 (PDT) Message-ID: Subject: Re: [PATCH 1/2] nl80211: Add LIVE_ADDR_CHANGE feature From: James Prestwood To: Johannes Berg , linux-wireless@vger.kernel.org Date: Fri, 13 Sep 2019 14:14:27 -0700 In-Reply-To: <47aaaccf7d8fb58587f0cfbe38acd18e1420dc9a.camel@sipsolutions.net> 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 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? > > And in nl80211 you'd need the flag for if you actually have the > "change > MAC address during connect" attribute. > > johannes >