Getting wrong MAC address for wlan interface

Hi,

when we give ifconfig or iwinfo command then we see wrong MAC address are assigned on wireless interface. Also can see that the mac address is picked from /sys/class/net/wlan1/address (which is wrong), here wlan1 is the interface name but its a read only file and cannot change in it.

so how can i fix wrong MAC address with correct one ?

So I would appreciate any help here, in changing the MAC address

Thanks

post the output of ubus call system board.

# ubus call system board

{
        "kernel": "5.4.164",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 5 (v7l)",
		"model": "Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1",
		"board_name": "qcom,ap-dk01.1-c1",
        "release": {
                "distribution": "OpenWrt",
                "revision": "r19685-512e76967f",
                "target": "ipq40xx/generic",
                "description": "OpenWrt 22.03.0 r19685-512e76967"
        }
}

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

1 Like

Hi @frollic ,

any other suggestion other than this ?

Thanks

Characterize the device, like bootlogs, link to download firmware update, device model name. Maybe it is already supported or nearly supported. On a "normal" OpenWRT you have option to set MAC address or even randomize it where you configure access points.