mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add latest and patched mac80211 ans hostapd packages
This commit is contained in:
parent
e5395f65eb
commit
bdff38dfc4
321 changed files with 36273 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Wed, 17 Jan 2018 11:11:17 +0100
|
||||
Subject: [PATCH] ath9k: discard undersized packets
|
||||
|
||||
Sometimes the hardware will push small packets that trigger a WARN_ON
|
||||
in mac80211. Discard them early to avoid this issue.
|
||||
|
||||
Reported-by: Stijn Tintel <stijn@linux-ipv6.be>
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
|
||||
--- a/drivers/net/wireless/ath/ath9k/recv.c
|
||||
+++ b/drivers/net/wireless/ath/ath9k/recv.c
|
||||
@@ -826,9 +826,9 @@ static int ath9k_rx_skb_preprocess(struc
|
||||
sc->rx.discard_next = false;
|
||||
|
||||
/*
|
||||
- * Discard zero-length packets.
|
||||
+ * Discard zero-length packets and packets smaller than an ACK
|
||||
*/
|
||||
- if (!rx_stats->rs_datalen) {
|
||||
+ if (rx_stats->rs_datalen < 10) {
|
||||
RX_STAT_INC(rx_len_err);
|
||||
goto corrupt;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue