ath9k: Handle corrupt descriptors properly
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Wed, 14 Aug 2013 03:41:20 +0000 (09:11 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Aug 2013 20:08:05 +0000 (16:08 -0400)
commitb09255957b69d7b5ea1ad9d2b455a4f8769e06e7
treeba19e1fd54a3d58a106b3dbb0ad10875b414bfa4
parenteb5f952c31abdd5849fb9005beb3dc4ac734c355
ath9k: Handle corrupt descriptors properly

The MIC/PHYERR/CRC error bits are valid only for
the last desc. for chained packets. Check this early
in the preprocess() routine and bail out.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c