]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: fix HE operation element length check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Sep 2021 11:11:20 +0000 (13:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Oct 2021 09:02:24 +0000 (11:02 +0200)
commitdb65e096178c8dc6955d0be56c54cf6550389c4c
tree8924546539f69d05b150ce3904839235a92dc798
parent204ddbc0e413d34a64aeeebb0cd82a8ea3a9fb06
mac80211: mesh: fix HE operation element length check

The length check here was bad, if the length doesn't at
least include the length of the fixed part, we cannot
call ieee80211_he_oper_size() to determine the total.
Fix this, and convert to cfg80211_find_ext_elem() while
at it.

Cc: stable@vger.kernel.org
Fixes: 0ab4532975ba ("mac80211: save HE oper info in BSS config for mesh")
Link: https://lore.kernel.org/r/20210930131120.b0f940976c56.I954e1be55e9f87cc303165bff5c906afe1e54648@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c