Commit 055c8a71 authored by Lior David's avatar Lior David Committed by Kalle Valo
Browse files

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: default avatarLior David <liord@codeaurora.org>
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 0e698cd0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -964,8 +964,8 @@ again:
	}
	}
	stats = &wil->sta[cid].stats;
	stats = &wil->sta[cid].stats;


	if (unlikely(skb->len < ETH_HLEN)) {
	if (unlikely(dmalen < ETH_HLEN)) {
		wil_dbg_txrx(wil, "Short frame, len = %d\n", skb->len);
		wil_dbg_txrx(wil, "Short frame, len = %d\n", dmalen);
		stats->rx_short_frame++;
		stats->rx_short_frame++;
		rxdata->skipping = true;
		rxdata->skipping = true;
		goto skipping;
		goto skipping;