From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Green Subject: Re: [RFC PATCH 2/5] OMAP2+: add cpu id register to MAC address helper Date: Fri, 18 Mar 2011 09:13:04 +0000 Message-ID: <4D832220.9030704@linaro.org> References: <20110312224440.27728.60593.stgit@otae.warmcat.com> <20110312225047.27728.1835.stgit@otae.warmcat.com> <4D831D4B.8090407@nokia.com> Reply-To: andy.green-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D831D4B.8090407-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roger Quadros Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org List-Id: linux-omap@vger.kernel.org On 03/18/2011 08:52 AM, Somebody in the thread at some point said: >> + /* mark it as not multicast and outside official 80211 MAC namespace */ >> + >> + mac[0] = (mac[0]& ~1) | 2; > so here lies the answer to my question "From where do you get the MAC" :) > > Is there a guarantee that this MAC will work in all Ethernet setups? Yeah it's in 80211 spec. You have to buy the spec, I can't point you to it directly, but here is the wikipedia article showing the structure http://en.wikipedia.org/wiki/MAC_address#Address_details the random mac addresses generated by the kernel also use this scheme. -Andy -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html