Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2011 15:33:11 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: How can I clone a mac address on wlan0?
Message-ID:  <AANLkTim=nM6u9vcHKgyn1paadOh4gPYahs3Ws4bd47NZ@mail.gmail.com>
In-Reply-To: <4D917E73.9080809@FreeBSD.org>
References:  <4D917E73.9080809@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The way I'd debug this (without being a developer) is:

* get another laptop with say an ath card;
* put that interface into monitor mode;
* tcpdump -vveni wlan0 -y IEEE802_11_RADIO | grep -v Beacon

Then try associating to the access point and see what station MAC it's
sending in its packets.




adrian

On 29 March 2011 14:38, Doug Barton <dougb@freebsd.org> wrote:

> For a variety of boring reasons I need to clone a mac address on wlan0. The
> documented way to do this:
>
> ifconfig wlan0 create wlandev wpi0 wlanaddr 00:11:22:33:44:55:66
>
> works in the sense that it sets up the interface with that mac, but then
> the wlan0 interface never associates. Doing everything the same but omitting
> the wlanaddr argument (which causes wlan0 to use the mac of the wpi0 device)
> works.
>
> This also doesn't work in 8.2-RELEASE, so either we've got a long-standing
> bug, or I'm doing something very wrong. The wpi0 card is an intel 3945abg, I
> also have a couple of ath cards I can try (although so far they haven't
> worked either).
>
>
> Doug
>
> --
>
>        Nothin' ever doesn't change, but nothin' changes much.
>                        -- OK Go
>
>        Breadth of IT experience, and depth of knowledge in the DNS.
>        Yours for the right price.  :)  http://SupersetSolutions.com/
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim=nM6u9vcHKgyn1paadOh4gPYahs3Ws4bd47NZ>