ath10k: fix handling of wierd MSDU chaining cases
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 14 May 2014 13:23:31 +0000 (16:23 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 14 May 2014 13:41:16 +0000 (16:41 +0300)
commitede9c8e09192e8a073915ae2d7be56409bb69ddb
treed65f138a9b97e82c7ce2857ed4e82e820be49c0f
parent3e841fd0a54745c8ad24ecfb0303c505b7460ffb
ath10k: fix handling of wierd MSDU chaining cases

Apparently firmware can sometimes report a
sequence with the first rx descriptor saying it's
not the last MSDU. In that case msdu_chaining
value could be overwritten saying it's not a
chained MSDU. This in turn led to skb_push panic
as the frame could be treated as an A-MSDU instead
of a chained MSDU.

Reported-By: Avery Pennarun <apenwarr@gmail.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c