mt76: mt76x0: disable GTK offloading

When the GTK is offloaded, MT7610 won't transmit any multicast frames.
This is most likely due to a bug in the offloading datapath. MT7612 is
not affected.

Disable GTK offloading for now. It can be re-enabled once the bug in the
offloading path is fixed.

Signed-off-by: David Bauer <mail@david-bauer.net>
master
David Bauer 4 years ago committed by Özcan Oğuz
parent faf165ced4
commit 9ce7cdb5d1
  1. 30
      package/kernel/mt76/patches/001-mt76-mt76x0-disable-gtk-offloading.patch

@ -0,0 +1,30 @@
From ae01717951013fbc8bb0315d902d5b9f5873631a Mon Sep 17 00:00:00 2001
From: David Bauer <mail@david-bauer.net>
Date: Fri, 12 Jun 2020 01:09:57 +0200
Subject: [PATCH] mt76: mt76x0: disable GTK offloading
When the GTK is offloaded, MT7610 won't transmit any multicast frames.
This is most likely due to a bug in the offloading datapath. MT7612 is
not affected.
Disable GTK offloading for now. It can be re-enabled once the bug in the
offloading path is fixed.
Signed-off-by: David Bauer <mail@david-bauer.net>
---
drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/mt76x02_util.c
+++ b/mt76x02_util.c
@@ -432,6 +432,10 @@ int mt76x02_set_key(struct ieee80211_hw
!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE))
return -EOPNOTSUPP;
+ /* MT76x0 GTK offloading is currently broken */
+ if (is_mt76x0(dev) && !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE))
+ return -EOPNOTSUPP;
+
/*
* In USB AP mode, broadcast/multicast frames are setup in beacon
* data registers and sent via HW beacons engine, they require to
Loading…
Cancel
Save