wifi: mac80211: fix CRC calculation for extended elems
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 13:26:51 +0000 (16:26 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jun 2023 12:01:28 +0000 (14:01 +0200)
commit2829b2fc8910984daa89be8005adbd9fb6205024
treeb3df572eaa1e2563ab553558388ea2e32be24d43
parentb8b80770b26c4591f20f1cde3328e5f1489c4488
wifi: mac80211: fix CRC calculation for extended elems

For extended elements, we currently only calculate the CRC
for some of them, but really we should do it also for the
rest that we care about, such as EHT operation and multi-
link.

Also, while at it, it seems we should do it even if they
aren't well-formed, so we notice if that changes.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230619161906.93235d5c8651.I6615cb3c1244bc9618066baa2bdad7982e9abd1f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c