From patchwork Tue Jun 21 08:45:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Chiu X-Patchwork-Id: 1645927 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=kFIAO9f+; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LS0VG47mQz9sVb for ; Tue, 21 Jun 2022 18:46:13 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1o3ZWH-0000rO-72; Tue, 21 Jun 2022 08:45:57 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1o3ZWF-0000rG-UZ for kernel-team@lists.ubuntu.com; Tue, 21 Jun 2022 08:45:55 +0000 Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 98C433F210 for ; Tue, 21 Jun 2022 08:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1655801155; bh=oqRODLRhJTq7UX+JFQg5dXu0u2T4j8WQghq7MlS17Sc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=kFIAO9f+HKuln9rWOMmFJ+fG90deDC5FB5Z6pbZ0xG57Mu6Gb5Xq0uJgpfTmH2ktl o2Gn1EkKxE2PgoxY6wd3oTr8A6H1jUIKBy26uW2c4zzlIOk5eWVamoElDOTWC+qfrc tWnkcJKrt0kiIzgYnYf0ueMTiNGkaranuN764MsauPfuiVhitrKwi4qt4Jf+JyBMtq 5324G0m56Bto/lG32VteFLEJXjzuYc/H2bKG9AIFDA4qU8d24IsxMuslZ6qmjb92eQ +xr+/Bun3FtFvPJLfxWLfjgqlnTmuET6T+1h2xYBXwppgVGdSyEek0jrtClT2GB9q0 HhZ2s+Kr220Nw== Received: by mail-pg1-f199.google.com with SMTP id a185-20020a6390c2000000b0040cb1cddf13so2894182pge.19 for ; Tue, 21 Jun 2022 01:45:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oqRODLRhJTq7UX+JFQg5dXu0u2T4j8WQghq7MlS17Sc=; b=RqkjkUadlH2Tmvz+SKjArB+C7Vy2nSGqTPYbFKj8M53ZYV59WCRGiAwMRMvqjW+wX3 XOaXQv9b9yVXZ/lpfLWbwaJ1IBT5TPLyKpN2YlHKdxsJQn0ms+WeZ0awGEh2JeXJWu03 B+zIEppO8ovnc81UnuEyPKpV3AyeRVkRc+J4D/F8cHGo4UoMlmp+1g1nyIEkmhoSg6Ji wFdkGD4r1wJL1bBWa9LrpmEguXcJWsmg25u0XfTrozxv/nGLynBvcxJRfCXYxLV68UhD cDBTEpgMkvpGKyzrbZexaCDYbGBqxNUx/0nl6A9q9MKht0tqnW+8jLjBm7ghMEFu1hC2 d3hg== X-Gm-Message-State: AJIora/vJJO1GRWk7A+I6XUpuPquXoejSv6QbGSp6j/oN+/MG49JIEqI 7nrtfkR8qfbMazpZt1gtRgbsveCieHSWTuGNMapkp2ymtwqdAVtvdzgs8k+mjiaLOKzGvVn7poG jPNyFqySJl+PfCq0ijBarO6/LnQ50/EZIHXK0KA+RCQ== X-Received: by 2002:a17:902:7c10:b0:168:f08d:d0f with SMTP id x16-20020a1709027c1000b00168f08d0d0fmr28127624pll.31.1655801154082; Tue, 21 Jun 2022 01:45:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1viHXHqijDidRpQlhAl4NTEhf+IcVGPFqmiZjPGfKhE5eNLd3BwfWdJ5lnELOAv/mlas6kLWA== X-Received: by 2002:a17:902:7c10:b0:168:f08d:d0f with SMTP id x16-20020a1709027c1000b00168f08d0d0fmr28127599pll.31.1655801153427; Tue, 21 Jun 2022 01:45:53 -0700 (PDT) Received: from u-Precision-5560.lan (59-115-197-125.dynamic-ip.hinet.net. [59.115.197.125]) by smtp.gmail.com with ESMTPSA id s3-20020a170903200300b0016a11750b50sm6011358pla.16.2022.06.21.01.45.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 01:45:52 -0700 (PDT) From: Chris Chiu To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][SRU][J][OEM-5.14] Enable WiFi hotspot feature for MediaTek MT7921 Date: Tue, 21 Jun 2022 16:45:47 +0800 Message-Id: <20220621084549.666846-1-chris.chiu@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1979173 [Impact] The wifi hotspot on systems with Mediatek MT7921 wifi chip doesn't work. [Fix] MediaTek already have the commit 116c69603b01 ("mt76: mt7921: Add AP mode support") upstream. But it's based on kernel 5.18. Mediatek also suggest to add patch https://patchwork.kernel.org/project/linux-wireless/patch/21366e8bc70573794b5f12372f2e55e9059d8457.1654691030.git.deren.wu@mediatek.com/ which is already accepted by upstream to fix bug in AP mode. Enable AP mode on specific kernel versions. [Test] Verified on the machines with MediaTek MT7921 chip. [Where problems could occur] The patches are to enable AP mode and and fix related issues on new VIF with AP capability, should have minimal impact to the origin behaviors. Deren Wu (1): mt76: mt7921: fix command timeout in AP stop period Sean Wang (1): mt76: mt7921: Add AP mode support .../wireless/mediatek/mt76/mt76_connac_mcu.c | 2 + .../net/wireless/mediatek/mt76/mt7921/init.c | 11 ++- .../net/wireless/mediatek/mt76/mt7921/mac.c | 9 +++ .../net/wireless/mediatek/mt76/mt7921/main.c | 76 ++++++++++++++++++ .../net/wireless/mediatek/mt76/mt7921/mcu.c | 79 ++++++++++++++++++- .../wireless/mediatek/mt76/mt7921/mt7921.h | 4 + 6 files changed, 179 insertions(+), 2 deletions(-)