Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp53834ybp; Tue, 8 Oct 2019 13:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAClJBzblr+NDmFVhLYnnmuZujxqohgBIVSxDD2zynp6ZZr4ATOX8SNQ23oCdNF689Zk+q X-Received: by 2002:a17:906:839a:: with SMTP id p26mr29997218ejx.94.1570568202443; Tue, 08 Oct 2019 13:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570568202; cv=none; d=google.com; s=arc-20160816; b=D6OP7X2v4bzU21+OYc/Tg4/OrzNsoNi5PP+yQY5icJ90sugxqjFOM44KAZcfkzus76 UD6I5kEXlWyESJNlKGm1su37pn46R1Abqr9+HkSXVttHTU1s1gQFwa3eskQUy98/pgsf Y4CUEY6Cz2CYFX0qidInaV95CxhRx8ihwcBbAWbaAJITnlGJ2ZIAJExsVzJNNRzQEJtP Eqdt9Qi5PdDBQcnzj5ZeGY6Yk6FTBz/cQ8CNvnaIS8dtTcCgpSrAvOipeo/eJR9jtggt yqRk1ORdssughUNIe0xF7t5RIXYvZninTWjQsaJQULH9lx1MmbIrkbLvRJzR83ebdnNj egZw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=yCyVhjClXNjq0YQsKGkIC8fBv7zTeXfGYpTR/X/NJOw=; b=oQaHQOq/YFKOTmqhRDPz3dhh5eKwxD6uILvna44aWehJgKf73RG5Sn0W1rIGeYiLzp mgQxYYoJ45P+51Oyprj0jLW7gBnbX3ywbNSe2MHdjNg0pq9vuW58ERLQF43mxKLyOVRn 5b3QyfF+GaFUfta0akclM09vE70EK3ougmK5IBFa2GrjWk2v9YaFJgw4r9RA7yeHTn2P L3rWfUAEVo4qUEnALqE7cx7rNDXVyV5Cz0J/NIAwbg34t4jFlJacTiapFvFZ1hLIZVX5 OsgQX4OIihE2ytij3EpqUXY7sJUngbT5OOA1K1IShlPjGh1yiWM23zWQRS27+Fa0I+OZ rARw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DNaHBaGG; 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 j52si121343eda.338.2019.10.08.13.56.05; Tue, 08 Oct 2019 13:56:42 -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=DNaHBaGG; 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 S1731016AbfJHU4B (ORCPT + 99 others); Tue, 8 Oct 2019 16:56:01 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:39913 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730523AbfJHU4A (ORCPT ); Tue, 8 Oct 2019 16:56:00 -0400 Received: by mail-oi1-f193.google.com with SMTP id w144so16061693oia.6 for ; Tue, 08 Oct 2019 13:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=yCyVhjClXNjq0YQsKGkIC8fBv7zTeXfGYpTR/X/NJOw=; b=DNaHBaGGja++PJFx1ICQDovPst/jYbNFfC14YiyjFaBEvyeEgz5BJol3O/gzA4dQx8 B4naJbVxTOYSRTM88dWIcWysw3r2X5+CJrpWrqM1DWMWVkTwd2zklDHkbFcal6rFkED1 OERDWwLkCqxWMWaK6GlyRDjzBpgUfvN1zdEaje2WOzUuohEFbmCxwuhh+0EGajPFDfY8 VYnS/CLtE+wc6cYQ5zao3jKI5VdQPGreYMSEuvnE3sU4bJyb4kZoDkoQtLI79nC4A2kb Vm2vRWiLl7xZBTzIiRhItku54sgSfMmjQAviCLdnCHKI/WtUWwTKld3gBLP9Fa52PKQL eXcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yCyVhjClXNjq0YQsKGkIC8fBv7zTeXfGYpTR/X/NJOw=; b=JPasWP7DPZrQ6Fv6O/z2nfY7dg2ABW2wJD3ooxYx/VY1kAf3usiqYcFZPXtNrJpiJU HP2agHeyK+CT+0l8zt762WlaKQKNxe8xu+Gs9SzE4zmqr1elWOKypHqPYtSUWk3hcYa/ 78Magc1q00VpXHKQ07M0wO2YPKtsGzICfH+66i//rcTdzOaKr/Rl4rHvcVox9afkG9LV c6I7GJ0hq32WTEWWnrFg9Eyg7t0wF9SHB5wRd6AL8ZR9VctM2LHAHpbX1cEkliA0oP/o LH8x2IIlxMhSO8upSmC9UZWLwpJI4yjSTm95z0tcstHZuLDi7YCnT+bNMcMbQRZ9lxvx bz+g== X-Gm-Message-State: APjAAAULhwOll57M0GiKY9uyhZuZEU90qZGs3xOOc9852Svk0L1F9Xw5 /TgmF/hS/29OOmEZZuu9d8rzShzJ X-Received: by 2002:aca:f1c1:: with SMTP id p184mr5219872oih.43.1570568159925; Tue, 08 Oct 2019 13:55:59 -0700 (PDT) Received: from [192.168.1.249] (cpe-70-114-247-242.austin.res.rr.com. [70.114.247.242]) by smtp.googlemail.com with ESMTPSA id o23sm5884620ote.67.2019.10.08.13.55.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2019 13:55:58 -0700 (PDT) Subject: Re: [PATCH 2/2] mac80211: Support LIVE_ADDRESS_CHANGE feature To: Johannes Berg , James Prestwood , linux-wireless@vger.kernel.org References: <20190913195908.7871-1-prestwoj@gmail.com> <20190913195908.7871-2-prestwoj@gmail.com> <90ae00044bc0834d87d3f9fb75ce63dce4cfadd5.camel@gmail.com> <0b57c1288016310050ccd6233dda886fc4a89b02.camel@gmail.com> <6fa34e4c-5c81-4875-da29-cada1a078e2c@gmail.com> <6530a6b06176790c5a6949d6ffccf37b506975bd.camel@sipsolutions.net> <864267ec-9158-940d-6e0e-db84a395888e@gmail.com> <1bb5450b-bc4e-8c83-f99e-fc7e739b08f0@gmail.com> <193168d4-6466-60a4-bc89-c4a44e84ac46@gmail.com> <9c49ec27489333d7f27831de19e9d1c9cd65eeee.camel@sipsolutions.net> From: Denis Kenzior Message-ID: Date: Tue, 8 Oct 2019 15:55:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <9c49ec27489333d7f27831de19e9d1c9cd65eeee.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, On 10/8/19 3:16 PM, Johannes Berg wrote: > On Tue, 2019-10-08 at 13:50 -0500, Denis Kenzior wrote: >> Hi Johannes, >> >>>> But they shouldn't change due a mac address change? I wonder if we can >>>> further relax the requirements to allow mac change if >>>> NL80211_SCAN_FLAG_RANDOM_ADDR was used? >>> >>> No, at least with HW scan that would completely confuse the driver - >>> since from the driver's POV we'd remove the interface it's currently >>> managing the scan for. >> >> So help me understand this better. > > include/net/mac80211.h: > > int (*hw_scan)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, > struct ieee80211_scan_request *req); > > How is it difficult to understand that with an API like that, it might > not be a good idea to remove the vif from the driver while it's > scanning? Right, so you're talking in the context of this implementation which performs a remove/add interface. You're right about that. But I was asking more in general terms. If all we're doing is scanning, can we just change the mac? Anyway, not important. Maybe I bring this up once this set is accepted. Regards, -Denis