Setting MAC address

Denis Vlasenko vda
Wed Jan 22 23:08:44 PST 2003


On 21 January 2003 06:09, Jouni Malinen wrote:

Ahh, I didn't see your post for a while 'coz you removed me from direct
recipients... my mail sorting setup selects mails with me in To or CC
and shows them first...

> On Mon, Jan 20, 2003 at 09:58:56AM +0200, Denis Vlasenko wrote:
> > I seem to be unable to set MAC address.
> > It seems to work and I can see my frames with right
> > MAC address with tcpdump. The problem is, other hosts
> > do not like me anymore :( I see zero incoming packets.
>
> This works in my tests, both as an AP and as a station. When running
> hostapd, one must restart hostapd after this change. Other than that,
> there should not be other limitations on this. Anyway, I would
> recommend changing the MAC address when the device is down.
>
> Please give some details about the system and configuration that
> behaves incorrectly. Are you changing the MAC address in an AP or a
> station? Which firmware versions are you using? I'm mostly interested
> in which command you run and in which order, what ifconfig shows as
> the MAC address of wlan0 device after the changed, do you see errors
> in 'dmesg' output, and what 'hostap_diag wlan0 -r | grep FC01' shows
> as the own address.

DLink DWL-520, firmware 1.4.9, used in STA mode.
kernel 2.4.20-pre11, wireless extensions 14.
hostap-2002-10-12 is installed, but I use mainline kernel's orinoco_pci.

Will try with hostap (and kernel 2.4.20) instead.

Just curious: what "kernel: eth0: Station identity 001f:0006:0001:0003"
means? It prints this at modprobe time.

Gory details just in case you are interested:

lspci -vvvxxx:
==============
00:0f.0 Network controller: Harris Semiconductor: Unknown device 3873 (rev 01)
        Subsystem: D-Link System Inc: Unknown device 3501
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 32, cache line size 08
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at d8000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: 60 12 73 38 07 00 90 02 01 00 80 02 08 20 00 00
10: 08 00 00 d8 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 11 01 35
30: 00 00 00 00 dc 00 00 00 00 00 00 00 0b 01 00 00
40: 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 7e
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

syslog at modprobe orinoco_pci
==============================
kernel: hermes.c: 5 Apr 2002 David Gibson <hermes at gibson.dropbear.id.au>
kernel: orinoco.c 0.11b (David Gibson <hermes at gibson.dropbear.id.au> and others)
kernel: PCI: Found IRQ 11 for device 00:0f.0
kernel: PCI: Sharing IRQ 11 with 00:07.5
kernel: Detected Orinoco/Prism2 PCI device at 00:0f.0,
    mem:0xD8000000 to 0xD8000FFF -> 0xd0c66000, irq:11
kernel: Reset done....................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    ...........;
kernel: Clear Reset...................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    ..................................................
    .................;
kernel: pci_cor : reg = 0x0 - DD5 - DA3
kernel: eth0: Station identity 001f:0006:0001:0003
kernel: eth0: Looks like an Intersil firmware version 1.04
kernel: eth0: Ad-hoc demo mode supported
kernel: eth0: IEEE standard IBSS ad-hoc mode supported
kernel: eth0: WEP supported, 104-bit key
kernel: eth0: MAC address 00:05:5D:FA:1A:DA
kernel: eth0: Station name "Prism  I"
kernel: eth0: ready
--
vda




More information about the Hostap mailing list