ath9k_htc: Fix RX length check
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Wed, 13 Apr 2011 05:54:19 +0000 (11:24 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Apr 2011 19:22:44 +0000 (15:22 -0400)
commitb1563a4c3d721cb0496b8e1fb874f08a8f2b62cc
tree263698eeda5026495c76fe678fde57c70fad8290
parent719c4cf6b1b113e9caf377c6607ae45758a85871
ath9k_htc: Fix RX length check

The length of the received SKB could be equal to
HTC_RX_FRAME_HEADER_SIZE in case of packets with phy/crc errors,
in which case they are dropped without being processed.
Fix this check so that the error counters are updated correctly.

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