mac80211: handle various extensible elements correctly
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2021 10:41:45 +0000 (13:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2021 11:25:49 +0000 (13:25 +0200)
commit652e8363bbc7d149fa194a5cbf30b1001c0274b0
treec8feb94d1f8416f8cd49847a7417dcfa5caa4d83
parentbbc6f03ff26e7b71d6135a7b78ce40e7dee3d86a
mac80211: handle various extensible elements correctly

Various elements are parsed with a requirement to have an
exact size, when really we should only check that they have
the minimum size that we need. Check only that and therefore
ignore any additional data that they might carry.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618133832.cd101f8040a4.Iadf0e9b37b100c6c6e79c7b298cc657c2be9151a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c