From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-197819-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 44346158086
	for <garchives@archives.gentoo.org>; Sun,  2 Jan 2022 21:25:46 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D8AF62BC03C;
	Sun,  2 Jan 2022 21:25:16 +0000 (UTC)
Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32])
	(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)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C5CF92BC02C
	for <gentoo-user@lists.gentoo.org>; Sun,  2 Jan 2022 21:25:06 +0000 (UTC)
Received: by mail-io1-xd32.google.com with SMTP id x6so38168457iol.13
        for <gentoo-user@lists.gentoo.org>; Sun, 02 Jan 2022 13:25:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=mime-version:from:date:message-id:subject:to;
        bh=durGhCUHkYDS5SAO9KPxaFEX+5HQGa576V0EPwOndUs=;
        b=G+PY9j6R3fFD2Nk3NLQqgyJDJGpYBxfCTd7m45Ayh6DnN0o1r/T62zCB5KwbYfWQPH
         UiV0jVARaVWEWbiWO6m5WPVaiDrKXd1Cz7rM9BN5JMCNcXsqmN2lPpHR5coHSLBvL91a
         /bjhSHRQ5YNrPao8KI3gwvWnhNS9WCoKyEP0HRAssE4G1IEbgrE8cBZpkwq/jzxH9DNw
         KZTa2Msz1gYHkyJW8TZRirAZVK6Lv0CeN/nnXBcAgB1U87RhHttpGJXYfMb+mBhe0udo
         mH/sbb/e5fdvuYQB0Da9QOul86R63qI6tGMCalHO8BNZxxxLztzDY067UlUKUt09aZdA
         Wd/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=durGhCUHkYDS5SAO9KPxaFEX+5HQGa576V0EPwOndUs=;
        b=K53al3b7ul7mbu29syTx7OrxrkJYS2JPlr+XUM+ATm/bgUO3MlQSuQhDvfvy3yarun
         acBIUwQDa1JSVkGq5/8Q2fUEFwXrcnwyADK+sozD06tJhUEk64XmCOFgtcpwOZbw6K56
         VXKefvnVdvxF7bnsPcAlzOkMDrFrL1csoXj8almJ/CkfPU+jce5PgdaRjWx68S+02KHD
         QRLdQWq00I3nNM2cBWXWVzb56FSl33Q+1QPHlZYhKgTU7gV3Dg8kD1fsujwfm0npeU4I
         dDr30uEJpKlBVo6DBDIrX8yyYRmd9JzXznke81EswE/PQIpHMg6QK2V+4NrE2aiyD4kd
         8IDw==
X-Gm-Message-State: AOAM532FfGydE5ffOeMYcw/yc6HU8fFPYjUtt0AixpCejkzsKwFRNngd
	Md7k9eZR+nsyVSsMb3AhMIPBkc1L2R5ymERdcaPESTENRmM=
X-Google-Smtp-Source: ABdhPJwv72TNU7cWHwLgFuT6W3C4frFc3hoxX9xnC2ZUXf/zv0uB+ijSAE4impxEys2wpne5u17VP96xE5jKI2jkMgw=
X-Received: by 2002:a02:770b:: with SMTP id g11mr19197441jac.164.1641158698419;
 Sun, 02 Jan 2022 13:24:58 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
From: Jorge Almeida <jjalmeida@gmail.com>
Date: Sun, 2 Jan 2022 21:24:49 +0000
Message-ID: <CAKpSnpJCmuFM1F-DQqbT9Ekee-7ipAo7RfsHxQb4xCYsTrh7Og@mail.gmail.com>
Subject: [gentoo-user] mediatek mt7921: no AP?
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset="UTF-8"
X-Archives-Salt: 46300e66-e61e-4c1a-bca3-c1a8041e35aa
X-Archives-Hash: ec21adeedf2ff0417389f1d596da6b26

I just mounted a box with a  ROG STRIX X570-E GAMING WIFI II
motherboard. I'm not a gamer; one of the reasons I chose this was the
build-in WiFi. Bad idea! The thing does not support AP mode, which I
need. Nothing in the mo manual suggests such a limitation.
Here are the details, in case someone with the same hw has  a better
experience and would share it. Otherwise, it may be useful as a
warning. I know I will not purchase ASUS and/or Mediatek again.

Jorge Almeida

$ lshw
*-network
                      description: Wireless interface
                      product: MEDIATEK Corp.
                      vendor: MEDIATEK Corp.
                      physical id: 0
                      bus info: pci@0000:03:00.0
                      logical name: wnet2
                      version: 00
                      serial: b4:b5:b6:93:8d:7f
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pciexpress msi pm bus_master
cap_list ethernet physical wireless
                      configuration: broadcast=yes driver=mt7921e
driverversion=5.15.12 firmware=____010000-20211014150922
ip=192.168.2.131 latency=0 link=no multicast=yes wireless=IEEE 802.11
                      resources: irq:99 memory:e0300000-e03fffff
memory:e0400000-e0403fff memory:e0404000-e0404fff

$ lsmod
xt_MASQUERADE          12288  1
iptable_nat            12288  1
nf_nat                 36864  2 iptable_nat,xt_MASQUERADE
xt_connmark            12288  4
xt_helper              12288  110
xt_limit               12288  26
mt7921e                77824  0
mt76_connac_lib        28672  1 mt7921e
mt76                   53248  2 mt7921e,mt76_connac_lib
mac80211              503808  3 mt76,mt7921e,mt76_connac_lib
cfg80211              372736  4 mt76,mt7921e,mac80211,mt76_connac_lib
igb                   196608  0
rfkill                 24576  1 cfg80211
i2c_piix4              20480  0

$ iw dev
phy#0
        Interface wnet2
                ifindex 6
                wdev 0x1
                addr b4:b5:b6:93:8d:7f
                type managed
                txpower 3.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks
overlmt hashcol tx-bytes     tx-packets
                        0       0       0       0       0       0
 0       0   0

$ iw list | grep "Supported interface modes" -A 8
        Supported interface modes:
                 * managed
                 * monitor
        Band 1:
                Capabilities: 0x9ff
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield