AR-300M Lite: Is it possible to change the MAC address of the WIFI?


#1

I use a wifi scanner that shows the wifi available in an area, and I can see the mac address broadcasted. It’s the one on the sticker on the back of the router. I’d like to change that if possible.
Going into “Mac Clone” in the UI changes the mac address when you join a network, but the router is still broadcasting the original mac address on the sticker for wifi.
Is there a way to change that? Maybe in /etc/config somewhere?


#2

You should build a firmware with unlock the art partition and change it.

If you use OpenWRT-18.06 or glinet repo, you can edit the file target/linux/ar71xx/image/generic.mk, and remove ro flag for art. It would looks like:

define Device/gl-ar300m
  DEVICE_TITLE := GL.iNet GL-AR300M
  DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  BOARDNAME := GL-AR300M
  IMAGE_SIZE := 16000k
  MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)
endef
TARGET_DEVICES += gl-ar300m

And compile it. Finally, you should write a shell script to change this position.

image


#3

Kyson posted the shell script for that in another thread here:

You will probably have to modify it though.


#4

Thank you for your reply.
I’m surprised it’s so difficult. I thought it would be changing a line in /etc/config/network or something like that. I saw the mac address of the LAN in there and it is the same as the mac address on the sticker+1.

I have no idea how to build firmware so I think this is too difficult.


#5

Yeah, it is the same.