Hello everybody!
This is my first contribution for the O4X community. Hope you like it!
I have managed to change the Wi-Fi MAC address of my device and now I share this technique with you.
What is a MAC address?
A Media Access Control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. It may also be known as a burned-in address, an Ethernet hardware address (EHA), hardware address or physical address. (Source: Wikipedia)
Why would somebody change his/her MAC address?
- To access the internet where it is restricted to particular addresses.
- To hide his/her illegal activity. (Though this is not effective enough since the Android system sends product information and a lot of other things to the Google servers and I'm sure that previous IP addresses could be searched for if somebody does something really nasty.)
Is it legal to change the MAC address?
As far as I know, it is. However, I firmly discourage you on doing anything illegal with changed/unchanged MAC.
Let's do it!
What do you need?
- A rooted device.
- A file manager that can explore the root filesystem.
How does this exactly work?
Normally, the Wi-Fi driver gets the MAC address from the built-in chip then it writes the address to '/data/misc/wifi/config_mac'. This is done at a very early stage at bootup, I didn't check when, probably in native binaries or somewhere at the framework (though I doubt the latter). This is the original burned-in address. This cannot be changed with software modifications, but only by soldering off the chip from the motherboard and rewriting its contents. Our Wi-Fi device is a Broadcom BCM4330. It has very good built-in features and the open source driver can be found in our kernel sources. So what you have to do is editing the '/data/misc/wifi/config_mac' file with a modified address.
Before you change your MAC address in any way, turn off Wi-Fi! I recommend writing down your original address somewhere (just to be extra secured).
- If you delete the file or use an invalid one (e.g. 000000000000, ffffffffffff or 133713371337), Wi-Fi will stuck at turning on and you need to do a reboot to get it working again.
- Since the file is created everytime again at boot, it is not persistent. If you reboot, it is gone. If you would like to use it permanently, create a script (like 'echo "001122334455" > /data/misc/wifi/config_mac') with some script manager application and set it to run at each reboot.
I did not test this on CM. Since CM has the Wi-Fi module built into the kernel (Anybody knows why??), it may not work. Somebody pls try and report.
Every custom modification to devices have risks. Use this at your own risk!
Have fun and enjoy!
Hi, thanks for the support
I would like to say that I have managed to change the mac adress on the Cyanogenmod (cm10.1) by editing a file called "bcmdhd.cal", which is located in system/etc/wifi; the line is for example
macaddr=00:90:4c:c5:12:38
Click to expand...
Click to collapse
I only change the "38" with "39".
I have to edit it before installing the rom (every time I install the rom, I must say ), because my sister has another 4X, and with the same mac adress the router goes crazy
Thanks for pointing it out. :good:
Does the bcmdhd.cal editing change the MAC persistently? I assume it does.
Sent from my LG-P880
Adam77Root said:
Thanks for pointing it out. :good:
Does the bcmdhd.cal editing change the MAC persistently? I assume it does.
Sent from my LG-P880
Click to expand...
Click to collapse
yes, i change it in the zip, then after the install the wifi menu reports the new adress.
EDIT.... i found that my trick worked on the first nightlies of the cm10.1; your way does work on the stable cyanogen and last nightly
sorry for my english...
I just use MAC Address Ghost from the play store
arx-7-arbalest said:
Hi, thanks for the support
I would like to say that I have managed to change the mac adress on the Cyanogenmod (cm10.1) by editing a file called "bcmdhd.cal", which is located in system/etc/wifi; the line is for example
I only change the "38" with "39".
I have to edit it before installing the rom (every time I install the rom, I must say ), because my sister has another 4X, and with the same mac adress the router goes crazy
Click to expand...
Click to collapse
I know this is an old thread, but this post of yours just solved a problem I've been having for months.
Related
Hello Everyone,
I recently bought an EEE PC as a second computer and seeing as it's about the most easily lost or stolen laptop ever made, I thought it might be an idea to run some software on it that might help me recover it should it ever go missing.
After trying a few existing bits of software and not finding any satisfactory, I resorted to writing my own.
Since it seemed useful to me, I thought I'd make it available to anyone interested. It's a very early version at the moment and very basic, but I don't think there are too many bugs (famous last words!! ).
I thought I would post a message here as I use this forum quite a lot, and I know a lot of people here won't have a problem with editing the config file to set it up, I've tried to make things as simple as possible. However, if you don't know the difference between POP3 and SMTP mail servers, this app is probably not for you!!
If people are interested, I'll continue to develop it further. A few ideas are listed on my website.
Visit www.ajhonline.co.uk for download links and help.
Alex
this isn't hard to circumvent.
Nice app, but wouldn't they probably wipe the HDD?
How would it compare to Lojack's (utilizes Computrace) service? Some laptops have the Computrace service embedded in the bios. I currently use a Dell D410 and Panasonic CF-19, and they both have Computrace built into the bios. If someone formats my hard drive, or installs another harddrive, the bios will rebuild the neccessary files, run in the the background and start reporting the IP address back to Lojack.
Yes, of course the hard drive could be wiped, or it could never be connected to the internet. It is also easy to circumvent, although if I do develop it further, it would be fairly straight forward to make it less obvious and better hidden. This is only a very first version, to gauge interest more than anything,
It's not meant to be 100% foolproof, that probably isn't possible anyway. The advantage is it's free. I really developed it because I couldn't get Adeona to work (it just kept failing to connect to its server), not to compete with commercial solutions.
Hmmm, you know how I said I didn't think there were any bugs....
I just found that the Windows version was not saving the detected IP addresses correctly, so it would email you a "new" IP address message every time the computer was rebooted.
However the problem is now fixed, and a new version 0.1a available for download. The cross platform version wouldn't have been affected, but there's a new version of that too, just for completeness.
Sorry
Alex
I've now made some additions and released a new version which includes the changes below:
Added a separate configuration application to simplify initial setup
Added the ability to encrypt the mail server password for better security
Added a link to DNSTools to the IP Detected email for easy lookup of the WHOIS records for the IP Address
As before, visit www.ajhonline.co.uk and download version 0.2 from there.
Alex
PS - If you are using the Windows version and doing an upgrade from a previous version, make sure you keep a copy of your existing fyl.properties file, otherwise it will be overwritten during the install and any existing known IP addresses will be lost.
huff,.
i wish i have seen this before i lost my friend laptop,.
great help sir,. keep up,.
Version 0.22 is now available for download from www.ajhonline.co.uk.
It's only a small update; you are now able to specify a range of IP addresses as already known so that you don't get an email when one of those is detected.
Alex
Hi,
yesterday i tried nearly the whole day to change my mac address on my x1. first i made a hardspl for x1. the new bootloader is working.
After that, i connected via mtty. I tried some commands like emapiTest, emapiWlanMac and some other what i found at xda-dev. I only go "command error" in mtty.
Then i flashed the latest rom (R2A) and tried it again with mtty. Same bad results.
There is a posting at xda-dev: NOTE: To use rbmc you need to
authenticate with proper password .... otherwise bootloader returns "Command error !!!" or "Command is Locked!". (if you're using Hard-SPL, this is unlocked, and any address can be read with 2.30.Olipro)
Do i make the same authenticate with the X1 HardSpl that i am able to work with any commands?
Best regards
strohrum
You can't change the MAC address of a network device. It's the unique hardware serial number of the network device.
My guess is that you're trying to get your Xperia to connect to a hotspot that only allows specific MAC addresses. In that case it makes more sense to find the wifi MAC address of your phone, go into the configuration page for your wifi router and enter the MAC address on the filter list.
You can get the phone's wifi MAC fairly easily. Turn on wifi, then:
Start > Settings > Connections > Wireless LAN > Advanced
... and the MAC is there for you.
ZenithUK said:
You can't change the MAC address of a network device. It's the unique hardware serial number of the network device.
My guess is that you're trying to get your Xperia to connect to a hotspot that only allows specific MAC addresses. In that case it makes more sense to find the wifi MAC address of your phone, go into the configuration page for your wifi router and enter the MAC address on the filter list.
You can get the phone's wifi MAC fairly easily. Turn on wifi, then:
Start > Settings > Connections > Wireless LAN > Advanced
... and the MAC is there for you.
Click to expand...
Click to collapse
Actually it is possible to "spoof" a network device.
I'm just not sure how to do this on a WM device.
i tried the registry method... didnt find any data for mac address
and i tried what jockyw wrote:
"You can run or flash the USPL (see sticky) and set a MAC address of your own choice.
Connect with MTTY and at the command prompt type:
emapiWlanMac 01 02 03 04 05 06 (the six two-digit numbers are the hexadecimal MAC byte values and should be replaced by anything you like)"
but i only get "command error" at any command.
strohrum said:
How to change the X1 mac address?
Click to expand...
Click to collapse
Is that legal ??
who cares ?
exxi said:
who cares ?
Click to expand...
Click to collapse
hmmm...
Maybe you are right and xda-devs wouldn't care about that...
.
That is not legal I am sure.
Legal WHERE? 50% of the content here is probably not koscher! What a stupid question!
ANY medling with software is illegal worldwide! Read the license agreements!
I would suggest NOT to discuss this...waste of time and effort! Just a thought ;-)
why should be illegal to change mac address? It's not IMEI
guap said:
why should be illegal to change mac address? It's not IMEI
Click to expand...
Click to collapse
BTW, I was just asking, not stating
Fulgore69 said:
That is not legal I am sure.
Click to expand...
Click to collapse
Well, its not illegal in the "go to jail" sense... but more of a torts way. SE won't care that a relatively small group is tinkering with their own phones since it doesn't affect their income at all. Rather, if we filed a warranty claim, they can deny it on breach of terms.
The only time a modified MAC could be considered "illegal" is if you are pirating as a result of modifying it.
Why would you even want to change the mac-adress?
Fulgore69 said:
That is not legal I am sure.
Click to expand...
Click to collapse
Please don't assume that something is illegal simply because it's "sometimes" associated with "hacking". Password recovery is not illegal, port scanning is not illegal, packet sniffing is not illegal. These are all used by most large companies on a regular basis. I'm a network engineer and I can assure you that it is legal to "spoof" your mac address. Even though there may be some unethical reasons for doing this, there are also unethical reasons for owning a kitchen knife. We change our mac addresses of many of the devices at work all the time for many, very legitimate reasons.
While there's no easy way to change the actual information stored in the CIS of a device, depending on the NIC driver, many drivers support dynamic mac addresses. Even Microsoft provides support for configurable mac addresses.
I dug around in the registry a bit and it doesn't seem like there is a default setting for this on Xperia (well, that I could find), but I'm sure there's a way to change the NDIS miniport drivers to simply call a new string value containing whatever you're trying to change your mac to.
Check out these MSDN articles that might help with a solution.
http://msdn.microsoft.com/en-us/library/bb648482.aspx
http://msdn.microsoft.com/en-us/library/ms893567.aspx
hi jhoffa,
thanks for the solution links. but i already need help:
At MSDN:
Finally, if the card information structure (CIS) of the PC Card contains a network address value, Ndis.dll creates a \HKEY_LOCAL_MACHINE\Comm\Miniport Instance\Parms\NetworkAddress key to store the network address.
My registry dosent show the path ...\NetworkAddress
\HKEY_LOCAL_MACHINE\Comm\TNETW12511
DisplayName
IEEE 802.11b/g Compatible Wi-Fi Adapter
At: HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms\TcpIp it shows me: Autocgf, autointerval, automask, autoseed, autosubnet, dhcpdns, dhcpipaddress, dhcpserver, dhcpsubnetmask, enabledhcp, lease, leaseobtainedhigh, leaseobtainedlow, prevreqoptions, t1 and t2. but nothing like a mac address.
is it possible that i am looking the wrong way?
thanks for helping
strohrum
strohrum said:
hi jhoffa,
thanks for the solution links. but i already need help:
At MSDN:
Finally, if the card information structure (CIS) of the PC Card contains a network address value, Ndis.dll creates a \HKEY_LOCAL_MACHINE\Comm\Miniport Instance\Parms\NetworkAddress key to store the network address.
My registry dosent show the path ...\NetworkAddress
\HKEY_LOCAL_MACHINE\Comm\TNETW12511
DisplayName
IEEE 802.11b/g Compatible Wi-Fi Adapter
At: HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms\TcpIp it shows me: Autocgf, autointerval, automask, autoseed, autosubnet, dhcpdns, dhcpipaddress, dhcpserver, dhcpsubnetmask, enabledhcp, lease, leaseobtainedhigh, leaseobtainedlow, prevreqoptions, t1 and t2. but nothing like a mac address.
is it possible that i am looking the wrong way?
thanks for helping
strohrum
Click to expand...
Click to collapse
Have you tried adding
Network Adress as a (i'm presuming) a Dword to \HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms\ ?
i added "NetworkAddress" as String and typed a 12 letter mac in it. didnt work. Dword same.
jhoffa said:
I dug around in the registry a bit and it doesn't seem like there is a default setting for this on Xperia (well, that I could find), but I'm sure there's a way to change the NDIS miniport drivers to simply call a new string value containing whatever you're trying to change your mac to.
Click to expand...
Click to collapse
i skiped this as i read your posting before. i know that i cant handle this, i am too noobish in registry files edit.
maybe someone could help me with that?
thanks
strohrum
i found that at eggheadcafe.com:
Step 1 --> changes to driver
Steps [2-5] from C# application
1) In NDIS Intermediate driver (QueryMiniport function), I made the
following changes
a) When OID is CURRENT_MAC_ADDRESS , open registry , read a
registry name ChangeMAC,
b) if value of ChangeMAC is 1 then read registry value of "NewMAC"
and then convert it appropriately to MAC format
(remove extra unicode characters etc)
c) then do a NDISMoveMemory to current adapters MACaddr field.
d) close registry
2) Set value of ChangeMAC (DWord) to 1
3) Set value of NewMAC (string) to the new mac address
4) Invoke a NDIS_REBIND_ADAPTER (this internally will call
QueryMiniport ) and inturn execute step (1)
5) Set value of ChangeMAC (DWord) to 0
anybody an idea how does it work?
michaelthemage said:
Legal WHERE? 50% of the content here is probably not koscher! What a stupid question!
ANY medling with software is illegal worldwide! Read the license agreements!
I would suggest NOT to discuss this...waste of time and effort! Just a thought ;-)
Click to expand...
Click to collapse
Using an unofficial program "stealed" from other phone or cook a personal ROM is not paragonable as change MAC Address.
MAC Address changes are the same of IMEI's ones: if you want to create-problems to a WiFi network (for example) with your modified MAC Address, you are not more identificable...so this is illegal.
To prevent the possibility of this type of "problems", all changes acts to alterate UNIQUE IDENTIFICATION of a device (IMEI or MAC Address numbers) are illegal, because it will cause a POSSIBLE multi-identity.
First of all: Hello world
I am a new and proud owner of the Nexus One Everything is just fine BUT one thing. Maybe we can sort that out..
My college uses WPA Enterprise 802.1X (TTLS+PAP) with a root certificate. Thats not the problem Android 2.1 supports it
I am able to connect, Nimbuzz and Opera Mini work, BUT none of the standard apps (Browser, Mail, News, Weather...)
I know I have to use a HTTP proxy, and I kinda think the standard apps are too dumb to do so ... (Thank you google: Issue 1273)
Is there any way to get atleast the Mail to work? I dont really get why Nimbuzz works, but shouldnt something like K9-Mail work too?
I was so worried that WPA Enterprise might not work that I totally forgot about the proxy
My Nexus one is not rooted!
Thanks in advance
Breece
Ps.: And I really dont get why the cellphone doesnt simply use the Mobile connection if WiFi doesnt work -_- That would be atleast somewhat acceptable...
How did you manage to install a root certificate on the Nexus? Apparently it just supports .p12 files, not .cer.
In the case I just have the public key, there is no way to create a .p12 file out of it. I'm lost here.
Our wireless here at work doesn't require a certificate as far as I can tell, but my N1 (2.1 or 2.2) won't ever connect to it, shows it as WEP
In Linux, I have wpa_supplicant set as:
eap=TTLS
phase2="auth=PAP"
But it just doesn't work
henriquesp said:
How did you manage to install a root certificate on the Nexus? Apparently it just supports .p12 files, not .cer
Click to expand...
Click to collapse
You can use openSSL to convert between certificate formats, if you're on windows I believe easySSL (ezSSL?) which comes with openVPN is an easy way to obtain a binary version.
Same issue here, how to get cert?
My company wifi is
eap=TTLS
phase2="auth=PAP"
and requires certificates to install. I've been googling the last 5 days and still haven't found an answer yet. Any one know how to convert .cer to .p12 for androids?
how did u instal the root cert?
Have a look here for troubleshooting: searchnetworking.techtarget.com.au/articles/41635-How-to-fix-Android-Wi-Fi-problems
It should be possible to install certificates under Settings/Security and Location(dunno the exakt term,it's all in German on my phone), if it's on your SD Card.
If however it fails, try realmb.com/droidCert
I think it's pretty much the same thing though.
//edit: somehow, it's something different...I couldn't really figure out what this is all about, 'gonna read more stuff next couple of weeks...
If you got another format, you can use this website sslshopper.com/ssl-converter.html to convert your certificate. Or just google OpenSSL convert ...something like that.
I haven't tested it, so I can't say if it works in the end, but I might find out on Thursday...Or next semester because that's gonna be the last day for the next 10 weeks I'm gonna be at uni
Try the http/s thing out yourself, I can't post links, because I'm a new user-.-
AndyBurns said:
You can use openSSL to convert between certificate formats, if you're on windows I believe easySSL (ezSSL?) which comes with openVPN is an easy way to obtain a binary version.
Click to expand...
Click to collapse
Have you tried to use any of these tools for that?
It is indeed possible to encapsulate a public + private key within a .p12 (PKCS#12) format, but if you try to create a .p12 file out of a public only key (.cer file), it will keep asking you for the private key.
So, I have no clue on what to do next. Which private key should I use?? I don't have the private key, since it is another party certificate!! So asking for a private key in this case doesn't make sense at all.
AFAIK, PKCS#12 format is to encapsulate public + private keys only, and cannot hold a public only file. Or is this assumption wrong?
CyanogenMod supports WiFi proxy. It is one global setting (not per SSID).
I've enhanced my Webserver sample to support reading from the device (where allowed), as well as reading/writing IsolatedStorage
The XAP is located in the Webserver project.
To access the webserver, open the app on your phone (it will disable the idle timer and run behind the lock screen--but WiFi will turn off, so you'll want to be connected via USB or don't let it sleep)
//phone_ip/IsolatedStorage
//phone_ip/Windows
IsolatedStorage is a special case (virtual directory that uses the SDK IsolatedStore APIs), the filesystem is mounted at the root of the webserver. Note that if you navigate to //phone_ip/, you will not see anything, as we are not able to list the contents of the root directory.
I am working to create a real socket library that mimics System.Net/.Sockets, and System.IO for file access. TcpClient and TcpListener are in a mostly functional state already.
Most of the socket and I/O code came from jmorrill. I have pulled code from mono to mimic System.Net.
Perhaps I'll spend some time on the web UI next, maybe a fancy Silverlight uploader. There doesn't seem to be a ton of interest though, so we'll see.
Update ("v2"):
- Authentication
- UI
- Adapter list
- More reliable
nice.. will try it out.
Very nice! Thanks!!
I've updated the sample to one with a UI, Authentication and more reliability.
Looking at your code WP7 looks more and more like a normal windows CE with a secured UI.
Yeah, I think someone with a strong WM background could port code to [native, homebrew] WP7 pretty quickly. Pretty much everything works just fine.... I just wish we could add the System.Net .NET CF assemblies back to the GAC. :/
davux said:
I've enhanced my Webserver sample to support reading from the device (where allowed), as well as reading/writing IsolatedStorage
The XAP is located in the Webserver project.
To access the webserver, open the app on your phone (it will disable the idle timer and run behind the lock screen--but WiFi will turn off, so you'll want to be connected via USB or don't let it sleep)
//phone_ip/IsolatedStorage
//phone_ip/Windows
IsolatedStorage is a special case (virtual directory that uses the SDK IsolatedStore APIs), the filesystem is mounted at the root of the webserver. Note that if you navigate to //phone_ip/, you will not see anything, as we are not able to list the contents of the root directory.
Click to expand...
Click to collapse
Noob questions: It says "connect to your wifi address below". How? Also, connect the phone or the pc? And navigate via IE mobile?
As I said, noob questions. Thanks for any help.
start ie and type in http://wifi address
I have found on alternateboot.reg
HTML:
; Disable MTPz USB function driver
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\CompositeFN]
"ClientDriverList"=multi_sz:"Serial_Class"
What is MTPz USB function driver?
ajhvdb said:
start ie and type in http://wifi address
Click to expand...
Click to collapse
... which gives me the ever-popular "cannot find server or DNS address". What am I doing wrong? I assume you meant IE on my phone.
piaqt said:
... which gives me the ever-popular "cannot find server or DNS address". What am I doing wrong? I assume you meant IE on my phone.
Click to expand...
Click to collapse
I think (might be misreading your question), you'll need to plug your device in to USB (or be prepared to loose the connection), then on your desktop, go to one of the IPs listed (in IE or any other browser).
On the screenshot shown, WiFi is the last one, with "BCMSDDHD1" attached to the label, thought the device name may be different for you. Try one that has "192.168.1." as that'll be the most likely option.
l3v5y said:
I think (might be misreading your question), you'll need to plug your device in to USB (or be prepared to loose the connection), then on your desktop, go to one of the IPs listed (in IE or any other browser).
On the screenshot shown, WiFi is the last one, with "BCMSDDHD1" attached to the label, thought the device name may be different for you. Try one that has "192.168.1." as that'll be the most likely option.
Click to expand...
Click to collapse
Thanks. Next noob question: It asks for a user/password. What do I use and or where do I set it?
piaqt said:
Thanks. Next noob question: It asks for a user/password. What do I use and or where do I set it?
Click to expand...
Click to collapse
I don't know what the default password is, but if you type admin/admin in on the device for user/pass that works fine.
EDIT:
Code:
// In order to secure the device, the default password is a random number, not a static default
So you'll need to change it, unless you can read minds
l3v5y said:
I don't know what the default password is, but if you type admin/admin in on the device for user/pass that works fine.
EDIT:
Code:
// In order to secure the device, the default password is a random number, not a static default
So you'll need to change it, unless you can read minds
Click to expand...
Click to collapse
OK. admin/admin works. Next nq: I get "Error opening directory:O". Is there a specific path to enter?
piaqt said:
OK. admin/admin works. Next nq: I get "Error opening directory:O". Is there a specific path to enter?
Click to expand...
Click to collapse
Try 192.168.1.XX/Windows and that should work.
l3v5y said:
Try 192.168.1.XX/Windows and that should work.
Click to expand...
Click to collapse
Ba-da-bing! We are in business.
this works great! does this work just over USB? I assumed that since I didnt see an SSID advertised that the webserver wasn't broadcasting over WiFi.
A few feature suggestions:
* Make it clearer in the device UI to use the last IP address. I had assumed I would use the SERIAL ON USB IP address
* When browsing files, show a detail view so that you can see date/time modfied, type (optional), size
* when in a subdirectory add an Up ellipsis (...) to more easily walk back up the directory tree.
* be able to filter a directory listing so that you can display just certain file types (ie *.exe)
* Be able to download files
I love it! Its handy to be able to get a file listing that you can copy so that you can capture file listings.
Scratch the suggestion to add downloading files, the filenames are of course URLs which enable http downloads
I found a bug. When you click on a file to download it the href seems to have an issue since the file extension is stripped. You can easily add it during the save but it would be easier to have that done by default. I need to check the syntax but for example for filebrowser.exe the html is:
FileBrowser.exe<br />
This was handy so that it was possible to download an EXE and see what certificate is used for signing.
It looks like if you press Back or Start the webserver shuts down or is tombstoned.
I wonder if anyone has come up with a way to keep an application from being killed.
If that was possible then the webserver could provide active control. In that case if it was running in the background a great feature to add would be a screen capture function.
Anyone know how to edit or force android to read the mac address of the phone?
Because my brother has a optimus black like me with rom Macay and i have cyanogemmod and we both have the same mac address.
comands like: ip link set..... our ifconfig....
don´t work.
and the software don´t work:
Wireless Mac Changer
The mac addres is associated with your net adapter, meaning its (or should be) unique and exclusive.
In theory, two devices cant have the same mac address. Furthermore, in most countries, its illegal to change the mac of a device, and it must be done by modding the hardware.
Are you sure your router isnt giving the same IP to both phones? That could be a possible error.
It is easy to change it:
Search nvram.txt (should be in /etc/wifi/ or something) and set permissions that you can edit it. Edit "macaddr=XX:XX:XX:XX:XX:XX" as you want and save. After it set permissions to default (note down before edit) and reboot. Done!