aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-02-04 22:20:37 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-02-07 00:57:51 +0000
commitbc820edd2d7906e04e93aef8a6137991ad86f4cc (patch)
treec4a561a1cef1fae792f2b394d8c7baae15d261fa
parent642c8387647daabc2505497cdafef4d3ce82bbf2 (diff)
mt76: mt7925: add missing LINUXKPI_PARAM_PREFIX
There is a module_param_named() in the file so we need to set LINUXKPI_PARAM_PREFIX to get it a uniq sysctl name. mt7921 has the exact same option. Without their individual prefixes the names would clash on systems with both chipsets and not work for both. Sponsored by: The FreeBSD Foundation MFC after: 3 days
-rw-r--r--sys/contrib/dev/mediatek/mt76/mt7925/regd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/dev/mediatek/mt76/mt7925/regd.c b/sys/contrib/dev/mediatek/mt76/mt7925/regd.c
index 292087e882d1..73f6f93faf35 100644
--- a/sys/contrib/dev/mediatek/mt76/mt7925/regd.c
+++ b/sys/contrib/dev/mediatek/mt76/mt7925/regd.c
@@ -1,6 +1,10 @@
// SPDX-License-Identifier: BSD-3-Clause-Clear
/* Copyright (C) 2025 MediaTek Inc. */
+#if defined(__FreeBSD__)
+#define LINUXKPI_PARAM_PREFIX mt7925_
+#endif
+
#include "mt7925.h"
#include "regd.h"
#include "mcu.h"