ath9k: Fix error condition for corrupt descriptors
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Wed, 14 Aug 2013 03:41:21 +0000 (09:11 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Aug 2013 20:08:05 +0000 (16:08 -0400)
commit7c5c73cde03c876b23d840e82f4df687bce83b44
tree4b6119e6ce1610344dee0b39a4d522a49dcddf62
parentb09255957b69d7b5ea1ad9d2b455a4f8769e06e7
ath9k: Fix error condition for corrupt descriptors

In case a descriptor has the "done" bit clear and the
next descriptor has it set, we drop both of them. If
the packet that is received after these two packets
is dropped for some reason, "discard_next" will not cleared.
Fix this.

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