{
struct ath_hw *ah = common->ah;
__le16 fc;
+ u8 rx_status_len = ah->caps.rx_status_len;
fc = hdr->frame_control;
* we can take a hint that hardware corrupted it, so ignore
* those frames.
*/
- if (rx_stats->rs_datalen > common->rx_bufsize)
+ if (rx_stats->rs_datalen > (common->rx_bufsize - rx_status_len))
return false;
/*