[openwrt/openwrt] mediatek: set 7 MACs per wifi band in board.json on OpenWrt One
LEDE Commits
lede-commits at lists.infradead.org
Tue Nov 5 01:20:35 PST 2024
blogic pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/48028cd102cb709cc2d9a06cb45b53b7c2335a69
commit 48028cd102cb709cc2d9a06cb45b53b7c2335a69
Author: John Crispin <john at phrozen.org>
AuthorDate: Tue Nov 5 09:43:38 2024 +0100
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 at phrozen.org>
---
.../mediatek/filogic/base-files/etc/board.d/04_defaults | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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
More information about the lede-commits
mailing list