summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorLior David <liord@codeaurora.org>2019-09-10 16:46:41 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-09-12 18:07:45 +0300
commit055c8a71eb5ba2f42c387511e86452ef07cd9c09 (patch)
treece61bf84f1c3de95673c49ceae493ac852e88e8b /drivers/net
parent0e698cd0b94c1bf2c9311d6c1a6ba9dd32cd73de (diff)
wil6210: fix RX short frame check
The short frame check in wil_sring_reap_rx_edma uses skb->len which store the maximum frame length. Fix this to use dmalen which is the actual length of the received frame. Signed-off-by: Lior David <liord@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/wil6210/txrx_edma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx_edma.c b/drivers/net/wireless/ath/wil6210/txrx_edma.c
index f21b2fa921ee..04d576deae72 100644
--- a/drivers/net/wireless/ath/wil6210/txrx_edma.c
+++ b/drivers/net/wireless/ath/wil6210/txrx_edma.c
@@ -964,8 +964,8 @@ again:
}
stats = &wil->sta[cid].stats;
- if (unlikely(skb->len < ETH_HLEN)) {
- wil_dbg_txrx(wil, "Short frame, len = %d\n", skb->len);
+ if (unlikely(dmalen < ETH_HLEN)) {
+ wil_dbg_txrx(wil, "Short frame, len = %d\n", dmalen);
stats->rx_short_frame++;
rxdata->skipping = true;
goto skipping;