Return-path: Received: from mail-pz0-f201.google.com ([209.85.222.201]:61206 "EHLO mail-pz0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711Ab0ATSPJ (ORCPT ); Wed, 20 Jan 2010 13:15:09 -0500 Received: by pzk39 with SMTP id 39so3849013pzk.15 for ; Wed, 20 Jan 2010 10:15:09 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1264011010.11396.22.camel@johannes.local> References: <1263985353.2819.0.camel@johannes.local> <43e72e891001201005p5207345es6eb1a4b196b22a47@mail.gmail.com> <1264011010.11396.22.camel@johannes.local> From: "Luis R. Rodriguez" Date: Wed, 20 Jan 2010 10:14:49 -0800 Message-ID: <43e72e891001201014s7083af5ajc9f0250f6af4975f@mail.gmail.com> Subject: Re: [PATCH] cfg80211: export multiple MAC addresses in sysfs To: Johannes Berg Cc: John Linville , linux-wireless Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Jan 20, 2010 at 10:10 AM, Johannes Berg wrote: > On Wed, 2010-01-20 at 10:05 -0800, Luis R. Rodriguez wrote: >> On Wed, Jan 20, 2010 at 3:02 AM, Johannes Berg >> wrote: >> > If a device has multiple MAC addresses, userspace will >> > need to know about that. Similarly, if it allows the >> > MAC addresses to vary by a bitmask. >> > >> > If a driver exports multiple addresses, it is assumed >> > that it will be able to deal with that many different >> > addresses, which need not necessarily match the ones >> > programmed into the device; if a mask is set then the >> > device should deal addresses within that mask based >> > on an arbitrary "base address". >> > >> > To test it all and show how it is used, add support >> > to hwsim even though it can't actually deal with >> > addresses different from the default. >> > >> > Signed-off-by: Johannes Berg >> >> Any reason to not export this via nl80211? > > Laziness, and the fact that we only exported it in sysfs before. > >> Can we say, use this on Atheros devices for storage of the bssid mask? > > That was the intention of the mask, yes. Neat thanks :) Luis