nl80211: reduce non-split wiphy dump size
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Sep 2020 11:06:56 +0000 (13:06 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Oct 2020 10:06:49 +0000 (12:06 +0200)
commitf8d504caa9739f74c7c399e158a7dce8478b866e
tree2e1e132e15b3fe252f2a7315af4cd191ae4c6172
parentf5bec330e3010450daeb5cb6a94a4a7c54afa306
nl80211: reduce non-split wiphy dump size

When wiphy dumps cannot be split, such as in events or with
older userspace that doesn't support it, the size can today
be too big.

Reduce it, by doing two things:

 1) remove data that couldn't have been present before the
    split capability was introduced since it's new, such as
    HE capabilities

 2) as suggested by Martin Willi, remove management frame
    subtypes from the split dumps, as just (1) isn't even
    enough due to other new code capabilities. This is fine
    as old consumers (really just wpa_supplicant) didn't
    check this data before they got support for split dumps.

Reported-by: Martin Willi <martin@strongswan.org>
Suggested-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Martin Willi <martin@strongswan.org>
Link: https://lore.kernel.org/r/20200928130655.53bce7873164.I71f06c9a221cd0630429a1a56eeae68a13beca61@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c