mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
b6066846ad
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>
22 lines
589 B
Diff
22 lines
589 B
Diff
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:
|