Comment 19 for bug 478297

Revision history for this message
Aleem Hossain (i-admin-aleemhossain-co-uk-deactivatedaccount) wrote : Re: Wireless PCI device MAC address changes

Whilst you ponder this, I have found a workaround:

*~*~*~*~*~*~*~*~*~*~*~*~*
grab the WIreless PCI card "device" and "vendor" IDs using lspci -nn
add a rule to /etc/udev/rules.d/70-persistent-net.rules that reads:

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{vendor}=="0x[vendor_id]",
ATTRS{device}=="0x[device_id]", NAME="wlan0"

(Where [vendor_id] and [device_id] are the IDs you picked up from lspci)

This ensures that the card is always wlan0.

Then I have written a script that runs at boot which assigns the desired MAC address to wlan0:
ifconfig wlan0 down
ifconfig wlan0 hw ether ma:ca:dd:re:ss
iwconfig wlan0 up

*~*~*~*~*~*~*~*~*~*~*~*~*

it's a bit of a hack, but it works for now...still, a fix if it is a bug would be better