]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: nl80211: reject fragmented and non-inheritance elements
authorJohannes Berg <johannes.berg@intel.com>
Mon, 11 Jul 2022 12:18:18 +0000 (14:18 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:21 +0000 (11:43 +0200)
commit47077797aab6a24ceeeff82e2df80a4ad9e496e9
tree30e2d04f64520bc4e7201aa7434b0df241f11cb5
parent12dd3d97989b7df61ee641860a0eac905942d3b6
wifi: nl80211: reject fragmented and non-inheritance elements

The underlying mac80211 code cannot deal with fragmented
elements for purposes of sorting the elements into the
association frame, so reject those inside the link. We
might want to reject them inside the assoc frame, but
they're used today for FILS, so cannot do that.

The non-inheritance element inside the links similarly
cannot be handled by mac80211, and outside the links it
makes no sense.

Reject both since using them could lead to an incorrect
implementation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c