Ticket #2249 (closed defect: wontfix)

Opened 3 years ago

Last modified 3 years ago

wlanconfig create wrong MAC (with 06 at beginning of MAC)

Reported by: anonymous Assigned to:
Priority: major Milestone:
Component: madwifi: tools Version: trunk
Keywords: wlanconfig Cc:
Patch is attached: 0 Pending: 0

Description

Ubuntu 9.04 kernel 2.6.28-7
rev. 3952 from svn (also tested 3925)
ifconfig after modprobing ath_pci:

wifi0 Link encap:UNSPEC HWaddr 00-15-XX-XX-XX-XX-00-00-00-00-00-00-00-00-00-00
wlan1 Link encap:Ethernet HWaddr 00:15:XX:XX:XX:XX

wlanconfig wlan1 destroy
macchanger wifi0 -m 00:11:22:33:44:55[[BR]] wlanconfig wlan1 create wlandev wifi0 wlanmode sta

ifconfig:
wifi0 Link encap:UNSPEC HWaddr 00-11-22-33-44-55-00-00-00-00-00-00-00-00-00-00
wlan1 Link encap:Ethernet HWaddr 06:11:22:33:44:55

It always creates new interface with 06 at beginning of new MAC
I can try to change the MAC again with:
macchanger wlan1 -m 00:11:22:33:44:55[[BR]] Current MAC: 06:11:22:33:44:55 (unknown)
Faked MAC: 00:11:22:33:44:55 (Cimsys Inc)

But when i try to connect to my AP, i still see MAC of the client as 06:11:22:33:44:55 and i am unable to authorize with my AP (WPA2). The interface is not working at all.
The card is UBNT SRX (Express Card):
[ 5990.353294] ath_pci 0000:0e:00.0: PCI INT A disabled
[ 5996.348172] ath_pci 0000:0e:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 5996.348187] ath_pci 0000:0e:00.0: setting latency timer to 64
[ 5996.907450] MadWifi: ath_attach: Switching rfkill capability off.
[ 5996.909972] wifi0: Atheros AR5424 chip found (MAC 10.3, PHY SChip 6.1, Radio 10.2)
[ 5996.911053] ath_pci: wifi0: Atheros 5424/2424: mem=0xf68f0000, irq=19
[ 5996.915862] udev: renamed network interface ath0 to wlan1

interface is renamed in udev rules (i can test without renaming, but i do not think it will help)

Change History

(in reply to: ↑ description ) 02/16/09 13:44:47 changed by mrenzmann

  • status changed from new to closed.
  • resolution set to wontfix.

Replying to anonymous:

It always creates new interface with 06 at beginning of new MAC

This is no bug but intentional behaviour. It denominates a "locally administered address". See here for details.

07/27/09 12:03:12 changed by anonymous

is there a way to avoid the "locally administered address"? According to some ones advise, i used

wlanconfig ath0 create wlandev wifi0 wlanmode sta uniquebssid

But I still had the mac address atarting with "06" for ath0. Help please. Thanks!

(follow-up: ↓ 4 ) 07/27/09 12:11:06 changed by stintel

Afaik, if you use autocreate=sta, there will automatically be an STA VAP, and in my case, this has the original MAC address.

(in reply to: ↑ 3 ) 07/27/09 15:33:29 changed by anonymous

Replying to stintel:

Afaik, if you use autocreate=sta, there will automatically be an STA VAP, and in my case, this has the original MAC address.

Hi, thank you for your reply. I have tried as you advised, but it is still the same. The following is the sequence of commands I used, Can you spot anything wrong? Thank you again. I am using ubuntu netboox remix (9.04) and Installed with the latest madwifi ( madwifi-hal-0.10.5.6.current.tar)

# airmon-ng stop ath0 (or modprode ath_pci=none) # modprobe ath_pci autocreate=sta # ip link set dev wifi0 down # macchanger --mac 00:11:22:33:44:55 wifi0 # ip link set dev wifi0 up # wlanconfig ath0 create wlandev wifi0

After the last command, when I checked the mac address of ath0, it is starting with "06:..." instead of "00:..". The mac address of wifi0 is changed without any problem.

08/17/09 16:31:14 changed by Jon

Does anyone know when this change was incorporated? Is the change in the madwifi driver itself or somewhere else? I intend to revert / modify the applicable source (if I can find it!).

Regards,

09/25/09 20:06:58 changed by n0PxN0p

Same problem. Debian "testing" 01:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)

root@blackusza:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

pan0      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11b  ESSID:""  Nickname:""
          Mode:Managed  Channel:0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:0 dBm   Sensitivity=1/1
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@blackusza:~# uname -a
Linux blackusza 2.6.30-1-686 #1 SMP Sat Aug 15 19:11:58 UTC 2009 i686 GNU/Linux
root@blackusza:~# modinfo ath_pci
filename:       /lib/modules/2.6.30-1-686/net/ath_pci.ko
license:        Dual BSD/GPL
version:        svn r4068
description:    Support for Atheros 802.11 wireless LAN cards.
author:         Errno Consulting, Sam Leffler
srcversion:     5179E97F52752C9A394F7FE
alias:          pci:v0000168Cd00009013sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000023sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Dsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Csv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Bsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000019sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000018sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000017sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000016sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000015sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000101Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00001014sv*sd*bc*sc*i*
alias:          pci:v000010B7d00000013sv*sd*bc*sc*i*
alias:          pci:v0000A727d00000013sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000013sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000012sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000007sv*sd*bc*sc*i*
depends:        ath_hal,wlan
vermagic:       2.6.30-1-686 SMP mod_unload modversions 686
parm:           beacon_cal:int
parm:           countrycode:Override default country code.  Default is 0. (int)
parm:           maxvaps:Maximum VAPs.  Default is 4. (int)
parm:           outdoor:Enable/disable outdoor use.  Default is 0. (int)
parm:           xchanmode:Enable/disable extended channel mode. (int)
parm:           rfkill:Enable/disable RFKILL capability.  Default is 0. (int)
parm:           hal_tpc:Disables manual per-packet transmit power control and lets this be managed by the HAL.  Default is OFF. (int)
parm:           autocreate:Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable (charp)
parm:           ratectl:Rate control algorithm [amrr|minstrel|onoe|sample], defaults to 'sample' (charp)
parm:           intmit:Enable interference mitigation by default.  Default is 0. (int)
parm:           ath_debug:Load-time driver debug output enable (int)
parm:           ieee80211_debug:Load-time 802.11 debug output enable (int)
root@blackusza:~# wlanconfig ath0 destroy
root@blackusza:~# ifconfig wifi0 down
root@blackusza:~# macchanger -m 00:00:00:00:00:00 wifi0
Current MAC: 00:15:af:b2:da:74 (unknown)
Faked MAC:   00:00:00:00:00:00 (Xerox Corporation)
root@blackusza:~# airmon-ng start wifi0


Found 3 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!
-e
PID     Name
2298    avahi-daemon
2299    avahi-daemon
2646    dhclient3


Interface       Chipset         Driver

wifi0           Atheros         madwifi-ng
ath0            Atheros         madwifi-ng VAP (parent: wifi0) (monitor mode enabled)

root@blackusza:~# macchanger -s ath0
Current MAC: 00:00:00:00:00:00 (Xerox Corporation)
root@blackusza:~# wlanconfig ath1 create wlandev wifi0 wlanmode managed
ath1
root@blackusza:~# macchanger -s ath1
Current MAC: 06:00:00:00:00:00 (unknown)
root@blackusza:~# iwconfig ath1 mode managed
root@blackusza:~# iwconfig ath0 mode managed
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ath0 ; Invalid argument.