Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4798360ybp; Mon, 7 Oct 2019 14:13:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4I0e7KIpthsQO8kcDysDiRUR7+wQLLt2h+2X2XnEXIY9bkQojYW9Kjr6Gua/mqp9fl3gT X-Received: by 2002:aa7:dcca:: with SMTP id w10mr30794255edu.183.1570482809064; Mon, 07 Oct 2019 14:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570482809; cv=none; d=google.com; s=arc-20160816; b=MapNBaXbEVdjbneSZyZgjdW/mTxAToIZXeoRCON2NFZZh7vsw1dtDS/b1TBZYTDpi4 AZ8h0fxEgwacEFfpDiOICpVl81PxS6sBZO9nNKvcwU+BjA7NQogM7Hz8GOUxm+7kfZ6L GuIzVL8tbUnVjrmk/PaE2nH54w/MRo0c5q4jGOug/0K1hFwvhiPIc6tvSeFCTPoKvXYb JmgKPBnSHw889ostcz7Z15JMD1b1bDbEmg6Rg1D/oalKXbvjGydRtkfbnfctiVCTx01M hbqB2Es1K3tv8Y+l8v46CIm6Ps8qKqLjbNM/DOJBI6fiN9QvsaHxOUz4KeDsuTWei3lM ymqw== 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=Wkw9zdXt7oVEtNuDALM1OARtHT4GkoVkI/VOecG+J68=; b=UhET6SxhueemAIHXMvlLXY7Y5TUVEwtR4q0zt9P68lmpd/GJQ43F7X5gFPb/19wsDA 1t98EsWBylw+6ye/RaNxqEPp24OksquJtHXgmI4OP7Dts7/1hl20se3sfizWaXwSzHa9 D0nQR7ngWUn5QoMyAMhSVL2Rn/bnyYp8xBzeS69tHYFybF5WGBT+cIdXkYB4DGXkRHck FzHVlwXyANQGjHD1roXgORG0gTqVeJUWiARC3Ng6Ek/T2FwAsrSsKOr+qMbHW1aDP6UJ 3TX9OENb8sV4LAWnf8fqUVVoI6dvV4OeLgBxS19plkMdhumjIEnn20+96yRbPa6hFq1O LqJw== 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 om23si7736344ejb.194.2019.10.07.14.12.57; Mon, 07 Oct 2019 14:13:29 -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 S1729345AbfJGVLm (ORCPT + 99 others); Mon, 7 Oct 2019 17:11:42 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:46742 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728273AbfJGVLm (ORCPT ); Mon, 7 Oct 2019 17:11:42 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.2) (envelope-from ) id 1iHaI8-0001fg-A1; Mon, 07 Oct 2019 23:11:40 +0200 Message-ID: Subject: Re: [PATCH 2/2] mac80211: Support LIVE_ADDRESS_CHANGE feature From: Johannes Berg To: James Prestwood , linux-wireless@vger.kernel.org Date: Mon, 07 Oct 2019 23:11:38 +0200 In-Reply-To: <90ae00044bc0834d87d3f9fb75ce63dce4cfadd5.camel@gmail.com> (sfid-20191004_182756_493717_F6EB75F5) References: <20190913195908.7871-1-prestwoj@gmail.com> <20190913195908.7871-2-prestwoj@gmail.com> (sfid-20190913_220113_985031_7C3A66BD) <90ae00044bc0834d87d3f9fb75ce63dce4cfadd5.camel@gmail.com> (sfid-20191004_182756_493717_F6EB75F5) 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-10-04 at 09:25 -0700, James Prestwood wrote: > > > I'm not even entirely sure it _is_ needed - if we've still not > > created > > the IBSS but are scanning for it or trying to merge the MAC address > > won't really matter yet? Probably? > > I guess its just paranoia, rather be safe than sorry. I can take this > out, but is "Probably?" a good reason? ;) Fair enough, nobody really cares about IBSS anyway ;-) I guess I was mostly wondering if you had noticed anything that would actually be a problem. > Ok so no switch statement, simply just check that we aren't offchannel > or scanning. I guess this would then cover the IBSS case too. Don't think it covers IBSS - that one is really specially accessing some IBSS data. > > If you do care about this being more granular then you should check > > *which* interface is scanning, and then you can still switch the MAC > > address for *other* interfaces - but I'd still argue it should be > > independent of interface type. > > I think maybe in the future we might want this, but for now lets not > worry about it. But just to make sure we are on the same page, your > talking about e.g. hardware with multiple radios so you could be doing > offchannel work/scanning/connecting simultaneously without having to > wait for the current operation to complete? Not really multiple radios, who cares? Just multiple interfaces would be sufficient. You're just removing/adding some interface (as far as the driver is concerned) - doesn't matter if you actually are scanning or something on another interface right? > > And, I'm confused, but isn't the polarity of the scanning check > > wrong? > > Ah yeah, after you pointed that out I realized 'scanning' is a bit > field. I should be doing: > > test_bit(SCAN_HW_SCANNING, &sdata->local->scanning) I think checking for all the bits is fine (and necessary, just HW scan is unlikely to be enough, changing the MAC address would also disrupt a software scan) - just need to invert the polarity? > Either way I'll send another patch with these things addressed. I'll wait, thanks. johannes