Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Feb 2026 00:58:25 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bc820edd2d79 - main - mt76: mt7925: add missing LINUXKPI_PARAM_PREFIX
Message-ID:  <69868e31.33c18.4c67936b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69868e31.33c18.4c67936b>