How to permanently change MAC address of the WiFi adapter?

asked 2016-08-03 12:56:57 +0300

Disasm gravatar image

updated 2016-08-17 10:48:04 +0300

jiit gravatar image

Is there any right way to change MAC address of the WiFi adapter? Ideally, I would like to change MAC for certain WiFi network only.

edit retag flag offensive close delete

Comments

Me too.

I have an Aigo tablet with SailfishOS: I like it very much but I don't like the mac address of the wifi adapter changing at every new connection. Actually, when the device boots it shows the address which is wired in the firmware (I suppose) while when I try to connect to an AP it randomizes each time a new different mac address.

It looks like this behaviour is appreciated by many people; in my case I do not appreciate it because I usually connect to networks that use also mac verification in order to authorize the connection.

I tried this command:

ifconfig wlan0 hw ether=(my preferred hardware address)

because I thought I could put it in a script but it does not work, it doesn't change the mac address (interface up or down does not matter).

With

lsmod

I saw the adapter module is a bcm4330 and found a sort of configuration file (/system/etc/firmware/bcmdhd_aob.cal) with a mac address in it: I tried to modify it but neither that worked.

I also thoroughly read the threads about "MAC address changer wanted" (the opposite problem) but I did not find anything useful for me.

Finally, here I am: does anybody have any clue?

Thank you very much in advance

zagor ( 2017-05-16 01:34:44 +0300 )edit