Skip to content

Commit

Permalink
mediatek: fix Unifi 6LR network config
Browse files Browse the repository at this point in the history
When the v1 and v2 variants of the U6LR were introduced, the board
network config was not adapted to the new device names. Due to this, the
wrong network config is applied during initial boot. The resulting
config has lan, wan and a switch, while this device only has a single
ethernet interface without a switch.

Fix this by using a wildcard that matches all the variants.

Fixes: 15a0247 ("mediatek: new target mt7622-ubnt-unifi-6-lr-v1")
Fixes: 5c8d389 ("mediatek: new target ubnt_unifi-6-lr-v1-ubootmod")
Fixes: 31d86a1 ("mediatek: add Ubiquiti UniFi 6 LR v2 targets")
Signed-off-by: Stijn Tintel <[email protected]>
Acked-by: Daniel Golle <[email protected]>
  • Loading branch information
stintel committed Sep 20, 2022
1 parent f4ca418 commit 117f41e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ mediatek_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
;;
ubnt,unifi-6-lr|\
ubnt,unifi-6-lr-ubootmod)
ubnt,unifi-6-lr*)
ucidef_set_interface_lan "eth0"
;;
xiaomi,redmi-router-ax6s)
Expand Down

0 comments on commit 117f41e

Please sign in to comment.