Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2067100pxb; Thu, 28 Oct 2021 15:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye9ZbW0C/KjiAVx2q4nfB2X1crQBLmxp4IgPwzj0XNIoj14JJtEYZFy/4g2T3lmlZiopTJ X-Received: by 2002:a17:902:8ec5:b0:13a:2789:cbb0 with SMTP id x5-20020a1709028ec500b0013a2789cbb0mr6371615plo.60.1635460489540; Thu, 28 Oct 2021 15:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635460489; cv=none; d=google.com; s=arc-20160816; b=QBD0WUe5WcFk8xltcD01I+dcGG7+Fbc27pteVLgl+rlWVvbVaXl2mCrm04jeRlOdI1 rulFFxBURz4UZTVbQSDBH1eYEXdSZWHj/n4HI8XLoOz97saT8pMs1OumGUqWOG2u+opc uJH79VAP4b4u+u95zrBRZgBe1VTZ/T00fYxtpZayClTyUGTBFAvNJTGxMzlf1iM7Qfsj t48vdfJJFaJIOXuJ16skefo3orlAlPU5gC/vcK2Z9SzOa205WDaiQKoeMxnpVHo/DZBF jh9Lsp9C2ftktJW6he5VBn+b9g1QO//o5BA/MKSe3sOoDkVMlU9SiSrca8voBZheQzs6 Ptww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=sFaLOQWSpsGrF2oOnxULKskgNyeXw9M6wwSYZYHUjko=; b=PSu8pLsMMXPbdOT+DdY9qsloE1hiFMZqbFRqZIKV7GF7KnECrbVTJSSYMMJLYbB9MV jx/9HWsZsVTRd+ryvQr+XynPstZcUV4Cx/NYqW36zpN7dkTbPsUC9/tScn1nD2JzrwHG yGyM93sAFg6T2YzasNRR8NXbDFtZ4/VNf89wvY7J+2rAwU2jrUDrzLwaYVIQQ0LMCnFV S/KpGKezZnxUzMYDt9DWujk1wBsJeGX8wHPtWzNMjWf6AdWLhVduPEu8AK7Zwqb1dCds 3oo+RrpDge06NuzgLI12mzc7E41Yvz4y2VchGeVw01fKL1BFtOwvbaOWCirTh4oAVP8h rJBA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si5181993plo.230.2021.10.28.15.34.40; Thu, 28 Oct 2021 15:34:49 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbhJ1WfA (ORCPT + 67 others); Thu, 28 Oct 2021 18:35:00 -0400 Received: from mailgw02.mediatek.com ([216.200.240.185]:35927 "EHLO mailgw02.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbhJ1Wew (ORCPT ); Thu, 28 Oct 2021 18:34:52 -0400 X-UUID: 89480cb97592480881c6403387d20050-20211028 X-UUID: 89480cb97592480881c6403387d20050-20211028 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 225360187; Thu, 28 Oct 2021 15:32:22 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 28 Oct 2021 15:30:00 -0700 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkmbs10n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Fri, 29 Oct 2021 06:30:00 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH] mt76: mt7921: drop offload_flags overwritten Date: Fri, 29 Oct 2021 06:29:58 +0800 Message-ID: <6eb228b938338bc33c9c5b0eb05ea8d0587a704b.1635460021.git.objelf@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang 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 --- 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 633c6d2a57ac..b144f5491798 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.25.1