summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin2024-11-05 08:43:38 +0000
committerJohn Crispin2024-11-05 12:30:21 +0000
commit0d97e775ac9c62e0feed932430c53db1965ed0db (patch)
tree710d55b7c8df7ff1f62d4c0e9170e8c6142a25cf
parent895f30e31ade4a0e130e59272ec8bc88ed5da415 (diff)
downloadopenwrt-0d97e775ac9c62e0feed932430c53db1965ed0db.tar.gz
mediatek: set 7 MACs per wifi band in board.json on OpenWrt One
Mass production units will get 16 assigned MAC addresses. This allows each phy to spawn up to 7 VAPs which will each have unique MAC without needing the private bit. Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--target/linux/mediatek/filogic/base-files/etc/board.d/04_defaults16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/04_defaults b/target/linux/mediatek/filogic/base-files/etc/board.d/04_defaults
new file mode 100644
index 0000000000..4d4131ec90
--- /dev/null
+++ b/target/linux/mediatek/filogic/base-files/etc/board.d/04_defaults
@@ -0,0 +1,16 @@
+. /lib/functions/uci-defaults.sh
+
+board=$(board_name)
+
+board_config_update
+
+case $board in
+openwrt,one)
+ ucidef_set_wireless_mac_count 2g 7
+ ucidef_set_wireless_mac_count 5g 7
+ ;;
+esac
+
+board_config_flush
+
+exit 0