Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3080027ybf; Mon, 2 Mar 2020 22:36:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vsKM04zFQf06xT30D6p7Nt7sT+rwM+/x14leEkWAvIx+oRYhdqzsUzWIeZFkzZTSrc+NKCh X-Received: by 2002:a05:6830:18d4:: with SMTP id v20mr2323926ote.29.1583217396025; Mon, 02 Mar 2020 22:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583217396; cv=none; d=google.com; s=arc-20160816; b=B9g3F9oAEM1r1LhBsfXlrY7NcpxN4FkrrYzEWxahRZXyHSr0bL5EHdAfKMsh7PL5Rj kTUY4yJeEWBBafciY8hYgAr/QQ6ik5P9Bp1JmLNERcMK5eof8wjKCwRMMhReIrJ/zUNE g9/foZB525ppwF6em9p7Am0W5gR2xXUW236q6FBecPU1gqYMWgzVkFKbza2SfR2J7riU a8CmoFKAeedTSBmPKxmdaNXeKEiHApwF4ZwhDXoo5EWJc8WVODTIyMseBgZxDUIbUB34 dO4E0jpsXaidiz3ADbFY9m+NtSwJ72UTAESaK3mIUYQ3vekEbPobvSi/S7hzAlHpU3os qKtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=5n0SGknmTdxCqNnoICct68WokXZI6WNYDf2AENYDRa0=; b=EwqL/HvCSGi3t0bpkY9kAIfiULMMf/MFqZmSSqQ0zQ79hnMa6NG1ThCmaE4f0XCNWj CcX4Yw5s1W9eh40xV1ed1+S6e4VZUf/mypFoMKcziqCfKVy6WISisXUz0txgThtiL9GO T8928RVsQJwOKoys/StTyPwOw8IqHeD3IWyMb0rzLcEdEbwn7NXRggHM5bAX+oBti+th biBqgdzn7k/yi4d1kXz4neTSGjVtr4DR5rKon7Y1fbWbaj01v2zXtNCWdPsCnuo2D7X3 gsM0+dLJf5AyRXE0OQQNc/KVMADQ4rAd0XpJT/CxYj0uCSViTwoDwRNimeoO0MfyNldY +9Tg== 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 m4si1988050otr.64.2020.03.02.22.36.13; Mon, 02 Mar 2020 22:36:36 -0800 (PST) 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 S1727502AbgCCGf1 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Mar 2020 01:35:27 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:53756 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgCCGf1 (ORCPT ); Tue, 3 Mar 2020 01:35:27 -0500 Received: from marcel-macpro.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 07588CECC8; Tue, 3 Mar 2020 07:44:53 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH] net: wireless: Add module_param(mac_prefix) to mac80211_hwsim From: Marcel Holtmann In-Reply-To: <20200302234946.75425-1-rkir@google.com> Date: Tue, 3 Mar 2020 07:35:25 +0100 Cc: Johannes Berg , linux-wireless@vger.kernel.org, lfy@google.com Content-Transfer-Encoding: 8BIT Message-Id: <70C09381-125F-427A-83AF-4882AE71DACD@holtmann.org> References: <20200302234946.75425-1-rkir@google.com> To: rkir@google.com X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Roman, > By default mac80211_hwsim creates N radios with > MAC addresses like '02:00:00:nn:nn:00' where nnnn > is incremented. > > We (Android Studio Emulator) need a way to have unique > MAC addresses. Currently in mac80211_hwsim this can > be done by sending HWSIM_CMD_DEL_RADIO and > HWSIM_CMD_NEW_RADIO commands. > > The 'mac_prefix' parameter provides an easier way to > make MAC address unique by specifying two octets in > MAC address, i.e. '02:pp:pp:nn:nn:00'. since we have an API for creating radios, wouldn’t it be better to add a kernel option to allow setting the default number of radios on module load to 0 and then let userspace create them on demand. I for example always set my testing kernel to load 0 radios. Regards Marcel