From patchwork Thu Sep 23 14:29:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 12513083 X-Patchwork-Delegate: nbd@nbd.name Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8344DC4332F for ; Thu, 23 Sep 2021 14:30:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6503D6115A for ; Thu, 23 Sep 2021 14:30:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241676AbhIWOcD (ORCPT ); Thu, 23 Sep 2021 10:32:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:43920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241666AbhIWOcD (ORCPT ); Thu, 23 Sep 2021 10:32:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 623AB611C6; Thu, 23 Sep 2021 14:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632407431; bh=FW/Kh7z2ExvVpG6oSuj8gSrBPWnNsiRHkI+9mpDG5bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKAV+Zdqwbn2DlpGvIN/duf3VOu/7uyohpj2zNnhynIJlcOVYHRv5vpE6gxGPSiwO 0ZU6LaIBzIs2iSZGeKnS+sDJeWqjMg6Uv2B6lF/udjUcurCY315Ca2ZM4jvsCVQXOf eAzOpJwmp4v+s8t/P1aeTFdw30YtWdM12EYtYKxafzJCU6w4tkOr9WDVvL1vjh9qjM wJFv50t52iijeHG9VL9ioxCPeYUhP49ZgE3/BcS5C3kiXBvzOzTb6HEsfuj7/svrFi ZeB+lwzl1/KZkhbEoXPugXEFxx6cpBKfV5d8SZbykfflXVn/OJYXbY8aovMHqnF2Nf NDaV14f8CY9bA== From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, ryder.lee@mediatek.com, chui-hao.chiu@mediatek.com, evelyn.tsai@mediatek.com Subject: [PATCH v5 4/5] mt76: mt7915: enable twt responder capability Date: Thu, 23 Sep 2021 16:29:33 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Enable TWT support in AP mode Tested-by: Peter Chiu Tested-by: Evelyn Tsai Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7915/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/init.c b/drivers/net/wireless/mediatek/mt76/mt7915/init.c index ca9d0380d42b..11bd9b4686ed 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -699,6 +699,8 @@ mt7915_init_he_caps(struct mt7915_phy *phy, enum nl80211_band band, switch (i) { case NL80211_IFTYPE_AP: + he_cap_elem->mac_cap_info[0] |= + IEEE80211_HE_MAC_CAP0_TWT_RES; he_cap_elem->mac_cap_info[2] |= IEEE80211_HE_MAC_CAP2_BSR; he_cap_elem->mac_cap_info[4] |=