wil6210: Add proper handling for invalid frames on Rx
authorVladimir Kondratiev <QCA_vkondrat@QCA.qualcomm.com>
Sun, 4 Oct 2015 07:23:19 +0000 (10:23 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 9 Oct 2015 08:39:05 +0000 (11:39 +0300)
commit3b282bc6095f77908cb83427d93f0764e8419fdb
treeacbaa7a67aec3e5b86ec964226cf1f6d265d5ac4
parent5a813da0068dbe46b77897c955b4059c7ffee4d8
wil6210: Add proper handling for invalid frames on Rx

On Rx, when invalid frame is received and dropped,
reaping of next frames from Rx ring is stopped.

This stops NAPI polling and re-enables the Rx interrupt.

However, in cases where no more frames received,
interrupt will not be triggered and rest of Rx frames
will not be processed.

Skip bad frames and continue to reap Rx packets when
such frames are encountered, and add statistics for
such frames for debug.

Signed-off-by: Hamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/debugfs.c
drivers/net/wireless/ath/wil6210/txrx.c
drivers/net/wireless/ath/wil6210/wil6210.h