mt76: mt7921: drop offload_flags overwritten
authorSean Wang <sean.wang@mediatek.com>
Thu, 28 Oct 2021 22:29:58 +0000 (06:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:41 +0000 (11:03 +0100)
commit1a25b9c4ce2ab9602cbf9093f9860154d340974b
treeab1b4615e5957d75422836e1c5b2580dce6a09d1
parente64a3ea17c19e5bec64e7d24b286422535f10556
mt76: mt7921: drop offload_flags overwritten

[ 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 <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/main.c