git: bc820edd2d79 - main - mt76: mt7925: add missing LINUXKPI_PARAM_PREFIX
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Feb 2026 00:58:25 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=bc820edd2d7906e04e93aef8a6137991ad86f4cc
commit bc820edd2d7906e04e93aef8a6137991ad86f4cc
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-02-04 22:20:37 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-02-07 00:57:51 +0000
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
---
sys/contrib/dev/mediatek/mt76/mt7925/regd.c | 4 ++++
1 file changed, 4 insertions(+)
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"