diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-12-17 22:22:22 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-02-14 19:41:07 +0100 |
commit | b6066846adc62aa24dc9970683ad26e8f3f3b4c1 (patch) | |
tree | 175db199c26487438803b14176b6a68c68399b23 /package/kernel/mac80211/patches/subsys/314-mac80211-fix-fast-rx-encryption-check.patch | |
parent | 8fc2cfea87349da5a873ca0da72080bb694d52ab (diff) | |
download | upstream-b6066846adc62aa24dc9970683ad26e8f3f3b4c1.tar.gz upstream-b6066846adc62aa24dc9970683ad26e8f3f3b4c1.tar.bz2 upstream-b6066846adc62aa24dc9970683ad26e8f3f3b4c1.zip |
mac80211: add decapsulation offload support
On hardware that supports this, this will improve performance by passing
802.3 frames from the hardware to the stack
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/subsys/314-mac80211-fix-fast-rx-encryption-check.patch')
-rw-r--r-- | package/kernel/mac80211/patches/subsys/314-mac80211-fix-fast-rx-encryption-check.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/subsys/314-mac80211-fix-fast-rx-encryption-check.patch b/package/kernel/mac80211/patches/subsys/314-mac80211-fix-fast-rx-encryption-check.patch new file mode 100644 index 0000000000..679960b83c --- /dev/null +++ b/package/kernel/mac80211/patches/subsys/314-mac80211-fix-fast-rx-encryption-check.patch @@ -0,0 +1,21 @@ +From: Felix Fietkau <nbd@nbd.name> +Date: Wed, 16 Dec 2020 21:24:19 +0100 +Subject: [PATCH] mac80211: fix fast-rx encryption check + +When using WEP, the default unicast key needs to be selected, instead of +the STA PTK. + +Signed-off-by: Felix Fietkau <nbd@nbd.name> +--- + +--- a/net/mac80211/rx.c ++++ b/net/mac80211/rx.c +@@ -4195,6 +4195,8 @@ void ieee80211_check_fast_rx(struct sta_ + + rcu_read_lock(); + key = rcu_dereference(sta->ptk[sta->ptk_idx]); ++ if (!key) ++ key = rcu_dereference(sdata->default_unicast_key); + if (key) { + switch (key->conf.cipher) { + case WLAN_CIPHER_SUITE_TKIP: |