Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4510231ybl; Tue, 20 Aug 2019 13:07:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUWjkehuwlBCneR6MI0zpOQrhiqVTUFM91qTcYih+O4zFp9Hto2C5YSiqvMYS6v4X4wK80 X-Received: by 2002:aa7:8a47:: with SMTP id n7mr33254242pfa.182.1566331660848; Tue, 20 Aug 2019 13:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566331660; cv=none; d=google.com; s=arc-20160816; b=nde0EBYEwFb1B1yK7+PSH0nmg3Js4iEKqZy3ob8PWUUCn0RY/e2ZYj77cNAogHVKh5 deuK6jd+2nAIkpUJBknlPbGpOrP/gv7w/ljTpAKwG3LjAG9QMGHvjfJ/Ztj5upMQgMDI QmnPWjsqdF85g+ftlvPtBsB4NRC3BwBxPhLZtldtmhJhd1DDmYtTrZraZGDkfaAvQxwI czv2uEz1xS5/PLTs/ekiMR3ceq84guo1skU2qef4QERfoAhIq9mSS3rjHUCAhiMKZcE6 IAP/4ra3NGDQLlKrJNqRJ96SN2wVv0oneIrQ8Ww6HjH3jk+rmCrF3GyFDw/9aso2QlKv tABw== 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=1/Mi67/0iCCtRWNG3ZgxDRBwA16f1/EPiJeEtDzVl9w=; b=03x3BvhK1nF//5utQKzYokCkCGV+lMS3pAMft5StIhYm1hgAWv4/nIZU2PXDNzSVe+ os5nsenEjNpIeqLUeRFeIeN9aPL4Izo3msITFI8Cb24LDQuqiil5bvpjGvgz/Xfsaglm sBkg930fWQ8tOOBjg5Y0ltXTVscGBbOB2rJog5Q/BxExNsWKGxkPyfzrj+cygUtGIX7V BA43VNprptWBaqfdO07rxYPBK/4cq+r7AFFf3xgN63DSyHpXOnDLmh7t7Cjf5Ts+D3NB c+tFfMrLQD4q5YLPpjWwS1au0Cq3xO74JKcrYdCxg4b3wdm4L9V9nmBY6cAXsDuSI5R1 CY3A== 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 p4si7725475pli.307.2019.08.20.13.07.14; Tue, 20 Aug 2019 13:07:40 -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 S1730744AbfHTUGp (ORCPT + 99 others); Tue, 20 Aug 2019 16:06:45 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:42816 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730618AbfHTUGp (ORCPT ); Tue, 20 Aug 2019 16:06:45 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0AOw-0007QV-W7; Tue, 20 Aug 2019 22:06:43 +0200 Message-ID: Subject: Re: [RFC 0/1] Allow MAC change on up interface From: Johannes Berg To: James Prestwood , linux-wireless@vger.kernel.org Date: Tue, 20 Aug 2019 22:06:41 +0200 In-Reply-To: <661903fa345563615cb781a6d9608607a3db963d.camel@gmail.com> (sfid-20190820_215350_076033_9D62468D) References: <20190815185702.30937-1-prestwoj@gmail.com> (sfid-20190815_205833_978900_86B1E73D) <645af7dad899e8eb186b3fee0f8a8a151a408557.camel@sipsolutions.net> <394092a2f20697c9b055166a8254a5ef888551a5.camel@gmail.com> (sfid-20190819_175627_344053_E33FB9B0) <4848c3a9d0b330fab4442436244387a2c127fa03.camel@sipsolutions.net> (sfid-20190819_231529_805133_AD4E6DEE) <6835732fcc59ba8dbbcda4abc6e17dad499a7d8d.camel@sipsolutions.net> <661903fa345563615cb781a6d9608607a3db963d.camel@gmail.com> (sfid-20190820_215350_076033_9D62468D) 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 Tue, 2019-08-20 at 15:53 -0400, James Prestwood wrote: > > I thought so, but I had another thought later. It might be possible > > to > > set LIVE_ADDR_CHANGE, but then block it in mac80211 when the > > interface > > is already connected (or beaconing, or whatever, using the MAC > > address > > in some way - even while scanning, remain-on-channel is active, etc.) > > Yeah that makes sense. > > > I still think you'd have to bake it into the mac80211<->driver API > > somehow, because we normally "add_interface()" with the MAC address, > > and > > nothing says that the driver cannot ignore the MAC address from that > > point on. The fact that iwlwifi just copies it into every new > > MAC_CTXT > > command and the firmware actually accepts the update seems rather > > accidental and therefore fragile to rely on. > > I havent looked into the actual drivers WRT add_interface so I'll take > a look. But I think I see the separation now and why it may not work > for all drivers/firmwares the way I did it. > > So are you thinking we need another driver method: > "change_mac/set_mac"? Perhaps. Let's continue that in the other sub-thread, where I replied in more detail to Denis. johannes