Changing MAC address for wifi interface in OpenWrt Chaos Calmer 15.05.1
<p>I have configured one OpenWrt (lets call it child) to boot from sd card which has the firmware and software re-imaged from another OpenWrt (lets call it maker) as per following: <a href="http://labs.mediatek.com/forums/posts/list/3619.page#p7191." rel="nofollow">http://labs.mediatek.com/forums/posts/list/3619.page#p7191.</a></p>

<p>Everything works fine except for the issue where wlan interface of child and maker are showing the same MAC address, the one of maker. Due to this I can connect to only one of them if they both are in AP mode.</p>

<p>I have tried giving 'macaddr' option in 'wifi-device', 'wifi-iface' but nothing works. I have also tried setting hardware address using command:</p>

<pre><code>ifconfig ra0 hw ether 'XX:XX:XX:XX:XX:XX'
</code></pre>

<p>but this gives me error </p>

<pre><code>ifconfig: SIOCSIFHWADDR: Operation not supported
</code></pre>

<p>I can see that the mac address is picked from </p>

<blockquote>
  <p>/sys/class/net/ra0/address</p>
</blockquote>

<p>where ra0 is the interface name but its a read only file and is not there on sd card (atleast with the given path)</p>

<p>The mac address of the parent has to be on the sd card but can't find it using grep atleast.</p>

<p>So I would appreciate any help here, either in changing the address on sd card post imaging or override it in system startup.</p>

<p>Thanks</p>