Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3701051pxb; Mon, 24 Jan 2022 15:46:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTHBZ0Ty/0lIVPXqzMiTAzu+5Rn4RaXayWdFEe0b5eQrdvpNjKq+ybp7wddZGZWcCBI3Fi X-Received: by 2002:a17:902:b083:b0:14a:f06c:aa6b with SMTP id p3-20020a170902b08300b0014af06caa6bmr16332245plr.147.1643067965348; Mon, 24 Jan 2022 15:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067965; cv=none; d=google.com; s=arc-20160816; b=O264nm/hbRsp+VuJVCAsf6Nms/sXK4/yRfsNzR+9sHriE9LBYN5p0NYT+Sn82Zrcp5 QPtEpEhzdV6vMDWIywY+cx1+z/Di5mov05v+q8TTPG5DGKip4yWVp8DaiskWf61vOmmu +RjMR/Llp0mn2XhybQeQp+yweGqJ1LrbQ127D9KGZAK0WrvR4+/zXL7lumZDjiCnMiAB qR6mvKXQ062lcopJBPycdU/CfDzQXMDItzZfbgt/Ik3uIFwl4iqFDEX3WGP/R3qO0ylt PFpOQTATlFv4L/5NbZ2q9LPbS0sxEozaOExe+FVdyl+xS4EI/SwKTFg6bSQ9kFz1013F oG/Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=73+OhKeqYqlNo4n1HQ1UPJsVb0I+BNHGNly8+kMMJAs=; b=fE4g5tKK3qPSuvo2IShAkFwKzjZVtcPmN9uD0MAp7clq2Ky7+GHGwA3Yy6HuzuTOU7 9t7vawBbiGFKJOXn49bgbxeq0PySPD7S4XHQSNoqanYNqTNud7OhYmEw+aYtc0P5DnQe wV0hMlYoADkLYRTkkoOIgEEJ7jYoQE+1Q3l77bpN4aTpYQRdQzoKcESP/Itnz6/DSZ51 S5Nn5geGBtBLedwV9BL47yp4CGjqC8YUpL/5aP0IASkr1ziIhomO0T6Im67FeFnSRAU/ PLYqLrozaPVGmUvLssx9Pc6Wflq9ygsEbDJ1xa5ooLyPOobm53sH7AJBsc/6erQWsHcI PAZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AtlhgyXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si10770354pgn.371.2022.01.24.15.45.53; Mon, 24 Jan 2022 15:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AtlhgyXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2360525AbiAXXg6 (ORCPT + 99 others); Mon, 24 Jan 2022 18:36:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382774AbiAXWxo (ORCPT ); Mon, 24 Jan 2022 17:53:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CD11C0EE12D; Mon, 24 Jan 2022 13:08:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C013461489; Mon, 24 Jan 2022 21:08:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AB4BC340E5; Mon, 24 Jan 2022 21:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058516; bh=/G0qA44KxcJzpX12SZiZmuPSQJ7xQKjHwZtCclxgJY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AtlhgyXGHcxwbG3JwCdrvKjfy87ATK/bZ9027YBCQOFJcnUqRutwepMvi2Gjzm+0A O8p43asqPeTAAKwKOEwMDQ7MeBqtDvz6xPKU1iJEqXhkIOYH1l0XcdYblp6Vurh7DE pM2QLib0ovBfSX0GaclrP9aMLBQIdu4Tz4o4IizY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shayne Chen , Lorenzo Bianconi , Felix Fietkau , Sasha Levin Subject: [PATCH 5.16 0315/1039] mt76: mt7921: use correct iftype data on 6GHz cap init Date: Mon, 24 Jan 2022 19:35:04 +0100 Message-Id: <20220124184135.889318646@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shayne Chen [ Upstream commit 00ff52346d74c38787ff8b4acde8c5671d9b7fe2 ] Set 6GHz cap to iftype data which is matched to the type of current interface. Fixes: 50ac15a511e3 ("mt76: mt7921: add 6GHz support") Signed-off-by: Shayne Chen Acked-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c index 0b2a6b7f22eae..21e745fddc9c3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c @@ -166,7 +166,7 @@ mt7921_init_he_caps(struct mt7921_phy *phy, enum nl80211_band band, if (vht_cap->cap & IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN) cap |= IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS; - data->he_6ghz_capa.capa = cpu_to_le16(cap); + data[idx].he_6ghz_capa.capa = cpu_to_le16(cap); } idx++; } -- 2.34.1