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>
This commit is contained in:
parent
0e698cd0b9
commit
055c8a71eb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user