]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: don't parse encrypted management frames in ieee80211_frame_acked
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 26 Apr 2017 07:58:51 +0000 (10:58 +0300)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:33:50 +0000 (21:33 -0400)
commit942a590aa716cfa6ba20bd3cf4d62d723b769345
tree470ad08405e69b7981db094e5982df3bd8d3d1a3
parent1284b4c26f6d833fc6153f5a3c5b5bbde946c1e6
mac80211: don't parse encrypted management frames in ieee80211_frame_acked

[ Upstream commit cf147085fdda044622973a12e4e06f1c753ab677 ]

ieee80211_frame_acked is called when a frame is acked by
the peer. In case this is a management frame, we check
if this an SMPS frame, in which case we can update our
antenna configuration.

When we parse the management frame we look at the category
in case it is an action frame. That byte sits after the IV
in case the frame was encrypted. This means that if the
frame was encrypted, we basically look at the IV instead
of looking at the category. It is then theorically
possible that we think that an SMPS action frame was acked
where really we had another frame that was encrypted.

Since the only management frame whose ack needs to be
tracked is the SMPS action frame, and that frame is not
a robust management frame, it will never be encrypted.
The easiest way to fix this problem is then to not look
at frames that were encrypted.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
net/mac80211/status.c