openwrt / mt76

mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
742 stars 342 forks source link

Cannot change mac address using uci (or similar tools) in openwrt for mt76x2e on the Xiaomi 3G device #164

Closed d1b closed 2 years ago

d1b commented 6 years ago

Hi, it appears that configuring a mac address for the mt76x2e interface with openwrt[0] on the Xiaomi 3G device currently requires modifying the Factory partition in order to allow clients to connect.

[0] snapshot release r6565-fd588db

nasbdh9 commented 6 years ago

You can use breed ( a bootloader , he can modify many of R3G's parameters, including mac address ) After refreshing, you need to set a xiaomi.r3g.bootfw environment variable in the breath and set the value to 2 to specify boot from kernel1.

( Sorry, my English is not very good

d1b commented 6 years ago

@nasbdh9 that's interesting. I was thinking that perhaps there was an issue with this kernel module using the mac address value from eeprom when a user specified value was set ( https://github.com/openwrt/mt76/blob/master/mt76x2_eeprom.c#L39) and that the override function wasn't working as intended.

Perhaps a78673d5235309f176e8cb64ba21658ac0cfb39c fixes this issue though (I'll test it out).

d1b commented 6 years ago

The issue appears to still be present.

psyborg55 commented 6 years ago

how does your issue relates to the wifi driver?

d1b commented 6 years ago

Assuming that there isn't a bug in uci (and similar tools) then there is a bug in the wifi driver.

d1b commented 4 years ago

This issue seemingly still exists in openwrt 19.07.0-rc2.

d1b commented 2 years ago

This seemingly has been resolved.