I bought the Miniature WiFi Module from ADAFruit (http://www.adafruit.com/products/814) and was wondering if it is possible to change the MAC address associated with it. I have tried using the following code:
sudo ifdown wlan0
sudo ifconfig wlan0 hw ether 00:11:22:33:44:55
sudo ifup wlan0
or
sudo ifdown wlan0
sudo macchanger -r wlan0
sudo ifup wlan0
or by adding a line in /etc/network/interfaces
hwaddress ether 00:11:22:33:44:55
When using lsusb
the device shows up as "Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter". In /etc/hostapd/hostapd.conf
, driver=rtl1871xdrv
. I am running ISC DHCP Server.
The device works otherwise. I just want to be able to change the MAC address
sudo ifconfig wlan0 up ; sudo macchanger -r wlan0