OSDN Git Service

mac80211: fix HT-Control field reception for management frames
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 May 2020 12:33:48 +0000 (14:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 May 2020 08:03:27 +0000 (10:03 +0200)
commitc11299243370580832c27882dcedf2604f9f48f8
tree94a67d89f92811c30c8b309fc186e9fe68c1a03e
parent1b9ae0c92925ac40489be526d67d0010d0724ce0
mac80211: fix HT-Control field reception for management frames

If we receive management frames with an HT-Control field, we cannot
parse them properly, as we assume a fixed length management header.

Since we don't even need the HTC field (for these frames, or really
at all), just remove it at the beginning of RX.

Reported-by: Haggai Abramovsky <haggai.abramovsky@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200526143346.cf5ce70521c5.I333251a084ec4cfe67b7ef7efe2d2f1a33883931@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c