From nobody Thu Jul 17 20:04:48 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bjkRN3pS8z62Blr; Thu, 17 Jul 2025 20:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bjkRN2slNz3rjG; Thu, 17 Jul 2025 20:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752782688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LeFQT3ygP1t2vw2NsxJvH02WIK27Yo9oXQzDQNNBnEQ=; b=vBn/iXoavYUMdhFT3D1zrDOqBkginqCejBabwQQMOgC+bEh5WWIzWXUGc0qwemCXSZ8+Ts +E4bRFMZkwOn6OEt4oeOWgH0d62KXpQPdjTxvMzjL+GG778AdBkCP/xXlnE2QrRNMPuqwg m5ZPT72tsnfNQ8uYN32pzAGc/VcfulhvkFuMDOhQTMIBvaWh2tQuIXLycWXP6SwEMneskk xVowf/Z3e3IzMt4GCrE0EBFzbOa0ZWmJIZdmfLxxHCw92nvo1MmSih7lwV4xF09m/wfe4t NqGelWIAaTRSjydcVWxkM5MPuMioKGS51Y/3WJpaD3Xh9c9qJ42xWvMqfkDrHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752782688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LeFQT3ygP1t2vw2NsxJvH02WIK27Yo9oXQzDQNNBnEQ=; b=hNAllmwzJAMJD2pgxFN2Q756WHeVNIhDWM6e8I57QOV/xfISE8mBQEWkso7o3VGf5MMO0f 6hTpG9T8SRhlzICXA+AymSC5qL9UZ9GRjRGeYUu0SrxUFBx5B/mwP9pqJojRYa9IY65gcE 2ixb+rmkRm9V75tMIG+v6sj8QGfgm300qODPXlYuDbteHLbjS7rXc8UIGECidk6psy/jzp FgalMeus1oWD0WpNDEcb2F0AwLd0pHk5/kaTSl7JrACzovr1KDDfp6P9B2vyJjy9NLWDdl 4szhtVEnjGTeKFdbMbadKdfzd7FCBVzGzMFAYkAKtcmKzjqjcyGKGn1CgTprhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752782688; a=rsa-sha256; cv=none; b=GsqxJ4H8KLEpbr9O4gYRygGSO/c4PyK4AB0TOUQ9O7+wO761m1Sw6XQNCEkgPbLzb2txr8 UvgC3nVT4gB4YTAdm3wQ8VEq9s9d1XrGNA+aPSy2bb3IkIk3UV60aCuKvt/H2sxNN95Ehb gKkOGgjjUBL8K/LpRB1Fj0XvVumS4yTJsRix0ZnKlB5Z4fyE9lKJr4+b4myucPQfYVxSNZ 1/8eXiiBqVQ7Js2hoghmITKCWPLGP3i7vM3u0x2LWn+gkUAghq0jyLXhugzygR8EpgHHp/ cGyjnOMLj4WXPtrTXowreC1QAjNfh2BOTP6CXigha7VP28siXMr5k+A4oHaaHg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bjkRN2Byfz18Lk; Thu, 17 Jul 2025 20:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 56HK4mvo089847; Thu, 17 Jul 2025 20:04:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56HK4mpc089844; Thu, 17 Jul 2025 20:04:48 GMT (envelope-from git) Date: Thu, 17 Jul 2025 20:04:48 GMT Message-Id: <202507172004.56HK4mpc089844@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 7757c5489508 - main - mtw.4: Make style consistent with other manuals List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7757c54895081dd9cbce398bf08f236fa83a175e Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=7757c54895081dd9cbce398bf08f236fa83a175e commit 7757c54895081dd9cbce398bf08f236fa83a175e Author: Alexander Ziaee AuthorDate: 2025-04-15 23:25:34 +0000 Commit: Alexander Ziaee CommitDate: 2025-07-17 20:02:56 +0000 mtw.4: Make style consistent with other manuals Fixes: c14b016242613 (importing if_mtw from OpenBSD) Reviewed by: adrian, carlavilla (mentor), jsm, mhorne(mentor) Differential Revision: https://reviews.freebsd.org/D48905 --- share/man/man4/mtw.4 | 78 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 17 deletions(-) diff --git a/share/man/man4/mtw.4 b/share/man/man4/mtw.4 index 17722be73203..6aa59d848d36 100644 --- a/share/man/man4/mtw.4 +++ b/share/man/man4/mtw.4 @@ -24,23 +24,41 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd Feb 03, 2025 +.Dd May 3, 2025 .Dt MTW 4 .Os .Sh NAME -.Nm if_mtw -.Nd "Mediatek MT7601U" -.Ed +.Nm mtw +.Nd MediaTek MT7601U USB IEEE 802.11n wireless network driver +.Sh SYNOPSIS +.Cd device usb +.Cd device mtw +.Cd device wlan +.Pp +In +.Xr rc.conf 5 : +.Cd kld_list="if_mtw" .Sh DESCRIPTION -This module provides support for Mediatek MT7601U with the firmware from net/wifi-firmware-mtw-kmod - +This module provides support for +MediaTek MT7601U USB wireless network adapters. +If the appropriate hardware is detected, +the driver will be automatically loaded with +.Xr devmatch 8 . +If driver autoloading is explicitly disabled, enable the module in +.Xr rc.conf 5 . +The +.Nm +driver can be configured at runtime with +.Xr ifconfig 8 +or at boot with +.Xr rc.conf 5 . .Sh HARDWARE The .Nm -driver supports Mediatek MT7601U -based USB wireless network adapters including (but not all of them tested): +driver supports MediaTek MT7601U based USB wireless network adapters +including (but not all of them tested): .Pp -.Bl -column -compact +.Bl -bullet -compact .It ASUS USB-N10 v2 .It @@ -58,17 +76,43 @@ TP-LINK TL-WN727N v4 (tested working) .It Yealink WF40 .El +.Sh FILES +The +.Nm +driver requires firmware from +.Pa ports/net/wifi-firmware-mt7601u-kmod . +This firmware package will be installed automatically with +.Xr fwget 8 +if the appropriate hardware is detected at installation or runtime. .Sh SEE ALSO -.Xr usb 4 -.Sh BUGS +.Xr usb 4 , +.Xr wlan 4 , +.Xr networking 7 , +.Xr fwget 8 , +.Xr wpa_supplicant 8 +.Sh HISTORY The .Nm -only works in station mode and monitor mode. The firmware does not always reinitialize when reloading the module, or when rebooting, without first unplugging the device. -.Sh History -The mtw driver first appeared in OpenBSD 7.1. The mtw driver was ported to FreeBSD in FreeBSD 15.0. +driver first appeared in +.Ox 7.1 +and +.Fx 15.0 . .Sh AUTHORS .An -nosplit -The mtw driver was written by +The +.Nm +driver was written by .An James Hastings Aq Mt hastings@openbsd.org -ported to FreeBSD by -.An Jesper Schmitz Mouridsen Aq Mt jsm@FreeBSD.org +and ported to +.Fx +by +.An Jesper Schmitz Mouridsen Aq Mt jsm@FreeBSD.org . +.Sh BUGS +.Nm +only works in +.Cm station +mode and +.Cm monitor +mode. +The firmware does not always reinitialize when reloading the module, +or when rebooting, without first unplugging the device.