Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2443 (new defect)

Opened 11 years ago

madwifi is changing the MAC address

Reported by: justincase@yopmail.com Assigned to:
Priority: blocker Milestone:
Component: madwifi: other Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending: 0

Description

I checked out madwifi from svn on 20101227.

These are the relevant lines from:
/etc/modprobe.conf
options ath_pci ratectl=minstrel
alias ath0 ath_pci


I have no /etc/sysconfig/network-scripts/ifcfg-ath0 file.


After a reboot if I type in:
ifconfig ath0 up
and then type in ifconfig I get this:

[root@wilber ~]# ifconfig 
ath0      Link encap:Ethernet  HWaddr 74:EA:3A:AF:7F:CB  
          inet6 addr: fe80::76ea:3aff:feaf:7fcb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wifi0     Link encap:UNSPEC  HWaddr 74-EA-3A-AF-7F-CB-A8-FB-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:53 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:280 
          RX bytes:6527 (6.3 KiB)  TX bytes:920 (920.0 b)
          Interrupt:233 

}}}}
[[BR]]
Next if I type in:[[BR]]
wlanconfig ath0 destroy[[BR]]
wlanconfig ath0 create wlandev wifi0 wlanmode ap[[BR]]
ifconfig ath0 up[[BR]]
and then type in ifconfig I get this:[[BR]]
{{{
[root@wilber ~]# ifconfig 
ath0      Link encap:Ethernet  HWaddr 76:EA:3A:AF:7F:CB  
          inet6 addr: fe80::74ea:3aff:feaf:7fcb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wifi0     Link encap:UNSPEC  HWaddr 74-EA-3A-AF-7F-CB-B8-26-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:67 errors:0 dropped:0 overruns:0 frame:0
          TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:280 
          RX bytes:7319 (7.1 KiB)  TX bytes:9154 (8.9 KiB)
          Interrupt:233 

}}}
[[BR]]
It can be seen that my MAC address has changed for ath0:[[BR]]
{{{
HWaddr 74:EA:3A:AF:7F:CB
HWaddr 76:EA:3A:AF:7F:CB
}}}
and even the MAC address for wifi0 changed:[[BR]]
{{{
HWaddr 74-EA-3A-AF-7F-CB-A8-FB-00-00-00-00-00-00-00-00
HWaddr 74-EA-3A-AF-7F-CB-B8-26-00-00-00-00-00-00-00-00
}}}
[[BR]]
[[BR]]
This is causes the scripts to fail as when I have a /etc/sysconfig/network-scripts/ifcfg-ath0 file it complains that the hardware address had changed(I normally specify HWADDR).