OSDN Git Service

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)
commitdf35f3164ec1150249bcf559e7837edde2a0c66a
tree30e2d04f64520bc4e7201aa7434b0df241f11cb5
parent34d76a14f8f75df1b37557247a973b9093c74a24
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