Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp985407pxb; Sun, 11 Apr 2021 03:56:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyc/v/2idb4AEB+TJETKJpbRFlUzP8eH2f6/L9T0o89YxNwJRHUac9niEJXi5N6LHKXown X-Received: by 2002:a62:6101:0:b029:215:3a48:4e6e with SMTP id v1-20020a6261010000b02902153a484e6emr20782662pfb.2.1618138618729; Sun, 11 Apr 2021 03:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618138618; cv=none; d=google.com; s=arc-20160816; b=UtiG54MZmcafFYv1F9Wuwwu6gfuTgL5DF2nlLiMiDfUZNxnrpxPtkaDdNMzNkVweA+ vUvZrn18RQ5Xgh+dd9LXUMPDh6e2ag0Qn8CNPDc2n8k/9IdtUH8spTpmG34vDv1EiZUO PwKCGZz+t/alyjA/ZEdoZl2wPe6cgwViKvE0rBYvgtgGx7Yg1VTWlSb4yBg9X+PP6Bqw 5nAYs7Dn165rOJHsiywGfB5yNuidSJmi1sTOAAV5vWFjt9sRIbih7opGL06rE41sVBUo MDZIosvw0K09O3+qaJErtRzX1cUKJ3mi5eK+UcpkDnHVoUKdm/2q4C/tfvxE2o1DYEG0 HU0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=D8DRnpvAB3Fbg4CMVp8Vulqvl/gbQn2laodRVIUTnmc=; b=O8inA13C3MSDNMPbYIqeHygyyquu0i/2g1oNC0tRDUS+DJTqWGLbCz5Fzhutv0aojU qtWfghbHf+1ci3NwB9NLIUTPy5CXD0k0XPdpeaa/Xi/GPC7syf7xYI5f8EwFJyo04nFZ PKK598zz/9fy9zCiDv6LJZAcbhoN096dhQI55Db1FvPrDQTstttbzfRf+PI4hIfF+FHF 64K4ONqJsE5IfgH3oCCO5b04C1s1fp2AaIhzus+xCUfb3BuFkhYOyYXn3llp4eWhU+JY +PagTVaOyqAPsV6c+Auw292LLs2TW7s2KqC5W2a/wPnA+y9XPPXsnWbuoFJvwUkjhnyX eC8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=AVl8v2IP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si9123482pfi.53.2021.04.11.03.56.23; Sun, 11 Apr 2021 03:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=AVl8v2IP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232223AbhDKKsM (ORCPT + 99 others); Sun, 11 Apr 2021 06:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbhDKKsL (ORCPT ); Sun, 11 Apr 2021 06:48:11 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30EA2C061574 for ; Sun, 11 Apr 2021 03:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=D8DRnpvAB3Fbg4CMVp8Vulqvl/gbQn2laodRVIUTnmc=; b=AVl8v2IPWpvzbCLZrvuwv9GfOg TYwmjoWAIppqsSJ+wGVJYRu6pvkW3Vh1NmwF7At6UatWet0jMPpl581zojWSu7UaxmEOudEqQiWnk NcLSkR/aubUznZHlbpdNsyzZ9WMRg6Wnz+E5Vqc6heIK46mxn0hjVTBJfzJ7T3K8r2pE=; Received: from p4ff13c8d.dip0.t-ipconnect.de ([79.241.60.141] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lVXdB-000274-N8 for linux-wireless@vger.kernel.org; Sun, 11 Apr 2021 12:47:53 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH] mt76: mt7921: remove 80+80 MHz support capabilities Date: Sun, 11 Apr 2021 12:47:51 +0200 Message-Id: <20210411104751.24103-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This mode is not supported by the hardware Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7921/init.c | 3 --- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c index 9046bbfc0690..b34db6e8d0ae 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c @@ -250,9 +250,6 @@ int mt7921_register_device(struct mt7921_dev *dev) dev->mphy.sband_5g.sband.vht_cap.cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991 | IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; - dev->mphy.sband_5g.sband.vht_cap.cap |= - IEEE80211_VHT_CAP_SHORT_GI_160 | - IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ; dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c index 32b1cd0bca1f..d9ec7d9bb1c4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c @@ -125,10 +125,6 @@ mt7921_init_he_caps(struct mt7921_phy *phy, enum nl80211_band band, he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); - he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); - he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); - he_mcs->rx_mcs_80p80 = cpu_to_le16(mcs_map); - he_mcs->tx_mcs_80p80 = cpu_to_le16(mcs_map); memset(he_cap->ppe_thres, 0, sizeof(he_cap->ppe_thres)); if (he_cap_elem->phy_cap_info[6] & -- 2.30.1