mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 07:33:04 +00:00
ramips: fix Archer AX23 WiFi MAC address conflict
The original claim about conflicting MAC addresses is wrong. mac80211 does increment the first octet and sets the LA bit. This means our "workaround" actually leads to the issue while incrementing the last octet is safe. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
parent
ca330cac92
commit
d52870125d
@ -149,10 +149,7 @@ case "$board" in
|
||||
;;
|
||||
tplink,archer-ax23-v1)
|
||||
hw_mac_addr="$(mtd_get_mac_binary config 0x8)"
|
||||
# 2.4 GHz MAC is MAC in EEPROm while 5GHz is EEPROM_MAC -1
|
||||
# However, mac80211 assigns consecutive addresses for each VAP
|
||||
# Which leads to conflicting addresses. Set the LA bit for 5Ghz instead.
|
||||
[ "$PHYNBR" = "1" ] && macaddr_setbit_la "$hw_mac_addr" > "/sys${DEVPATH}/macaddress"
|
||||
[ "$PHYNBR" = "1" ] && macaddr_add "$hw_mac_addr" -1 > "/sys${DEVPATH}/macaddress"
|
||||
;;
|
||||
tplink,eap615-wall-v1)
|
||||
hw_mac_addr="$(mtd_get_mac_binary product-info 0x8)"
|
||||
|
Loading…
Reference in New Issue
Block a user