mediatek: set 7 MACs per wifi band in board.json on OpenWrt One main master
authorJohn Crispin <john@phrozen.org>
Tue, 5 Nov 2024 08:43:38 +0000 (09:43 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 5 Nov 2024 09:11:44 +0000 (10:11 +0100)
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>
target/linux/mediatek/filogic/base-files/etc/board.d/04_defaults [new file with mode: 0644]

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 (file)
index 0000000..4d4131e
--- /dev/null
@@ -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