Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3629465pxb; Mon, 24 Jan 2022 13:55:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBlystwPgg7zS9LarAQeVnRIV6MqCgcHyi3venSMv0XCHeQ1AcomooqRTNSVqrSdTtyaJ8 X-Received: by 2002:a17:90a:5d0a:: with SMTP id s10mr228735pji.181.1643061275624; Mon, 24 Jan 2022 13:54:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061275; cv=none; d=google.com; s=arc-20160816; b=sXJS019pFdequaf1EElM+H5KqONhZx1kIeSXl7DBNJpYDoJK7bISCNUXmBnKa15GW6 DRWfO31xxt6ifTuTqw+4F9/M2+ydmlcnELSjScXN9eonwe8SP6pEWIWNNRm3HoNN0RTB Viyb3Pi1i4a/TlUuRc1chCHVgXBQYpwoXD9TqwCEIgYUmtcyKUlsLW/w/mgUJkBhTvdE 47KVt7YQ6CFAblk7qJ7RM5VBcjdCR+cMy/yZ+hnaZV8EV/FAwKcUhyL6r8C31to7Kpzx gIBzQYS77u5Ax4uX6aCc/3VSPkYKdDLZ7kni4ZjNA3VR4o3dr7zVDEZP/8JvhSmj+oHt 6sRg== 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=pILpU4tjknS3MqM1PWyVGF32DWq3dABHaP2+AiQ16hM=; b=bKyulInEyR+uIQG4tJjXU1d/y/fPINfYiigbZz3eIL+R48HLMzclomvaE8RUfQinsE PArFwy2q51pSTUOIsiKXTbEIxXMSXVhBjK1ai4UC+r5aQUts9K/UtvXAvxo/8X0fOGDQ /dBbI0KXIllxAN7zMJiny0DL04TeZoYFFy04qMIa/z8kfsRWKC6bPW6h9QlSpeLbUaol dFMDxS2YD6UQL2JO/MxvHkGhxpB9HQy8CXF5WahXVf1hR/bNBmTEry9I7lnoQzCm+AdN EIXorlo3+PAmDfq3FrIZVhCkVIOJ2o8XAzGHUzBAlix95BFzw2/R7ivfUajHGsI7G2fW O+Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yiDAEWbs; 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 e126si1064572pgc.578.2022.01.24.13.54.20; Mon, 24 Jan 2022 13:54:35 -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=yiDAEWbs; 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 S1345753AbiAXVnA (ORCPT + 99 others); Mon, 24 Jan 2022 16:43:00 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:60548 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446447AbiAXVIR (ORCPT ); Mon, 24 Jan 2022 16:08:17 -0500 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 1FAC96146E; Mon, 24 Jan 2022 21:08:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 077ACC340E5; Mon, 24 Jan 2022 21:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058494; bh=pINW5Y06eLywlZuwRwe+6QERGMYHIR/VYj2CTS7IREY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yiDAEWbsjE+ErvOU9i4wPaZwNnGTPUwwRUlUO7VjjHx2fQ21Ypeeh5RhFq71ukiuA RpOVcCFQGIvUvt/bEjt26yoVm6uvgVYHAG7uygOtU0rSldfq6wdiy5Ntjdo+1wzuZn JR9Tajn+p161aylzu+W9LO1PA/4LNmBIcZXxiR1E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Wang , Felix Fietkau , Sasha Levin Subject: [PATCH 5.16 0308/1039] mt76: mt7921: drop offload_flags overwritten Date: Mon, 24 Jan 2022 19:34:57 +0100 Message-Id: <20220124184135.664168765@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: Sean Wang [ Upstream commit 2363b6a646b65a207345b9a9024dff0eff3fec44 ] offload_flags have to be dropped for mt7921 because mt76.omac_idx 0 would always run as station mode that would cause Tx encapsulation setting is not applied to mac80211. Also, drop IEEE80211_OFFLOAD_ENCAP_4ADDR too because it is not really being supported. Fixes: e0f9fdda81bd ("mt76: mt7921: add ieee80211_ops") Signed-off-by: Sean Wang Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c index 633c6d2a57acd..b144f5491798a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c @@ -318,12 +318,6 @@ static int mt7921_add_interface(struct ieee80211_hw *hw, mtxq->wcid = &mvif->sta.wcid; } - if (vif->type != NL80211_IFTYPE_AP && - (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) - vif->offload_flags = 0; - - vif->offload_flags |= IEEE80211_OFFLOAD_ENCAP_4ADDR; - out: mt7921_mutex_release(dev); -- 2.34.1