]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix duplicate retransmission detection
authorJohannes Berg <johannes.berg@intel.com>
Thu, 11 Jul 2013 20:33:26 +0000 (22:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Jul 2013 06:55:59 +0000 (09:55 +0300)
commit7ca3bcf0225e2daa63acc0a3411efe134e9609ff
tree687deeae1daaa4be04fb1a1644b5d587c62acafa
parent96a730144115197c54884376caf2b6253c6d7dd1
mac80211: fix duplicate retransmission detection

The duplicate retransmission detection code in mac80211
erroneously attempts to do the check for every frame,
even frames that don't have a sequence control field or
that don't use it (QoS-Null frames.)

This is problematic because it causes the code to access
data beyond the end of the SKB and depending on the data
there will drop packets erroneously.

Correct the code to not do duplicate detection for such
frames.

I found this error while testing AP powersave, it lead
to retransmitted PS-Poll frames being dropped entirely
as the data beyond the end of the SKB was always zero.

Cc: stable@vger.kernel.org [all versions]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c