mac80211: fix memory overlap due to variable length param
authorRajkumar Manoharan <rmanohar@codeaurora.org>
Fri, 24 Apr 2020 22:41:39 +0000 (15:41 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 Apr 2020 14:21:45 +0000 (16:21 +0200)
commit60689de46c7f6a0028c8b37b6f03db68cbfad8ed
tree842bdcebaea854a6fb11261721035b0aefb934c9
parent1512bc076e5ba2c4e8a189a4dbc883d59b4c37ef
mac80211: fix memory overlap due to variable length param

As of now HE operation element in bss_conf includes variable length
optional field followed by other HE variable. Though the optional
field never be used, actually it is referring to next member of the
bss_conf structure which is not correct. Fix it by declaring needed
HE operation fields within bss_conf itself.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
Link: https://lore.kernel.org/r/1587768108-25248-2-git-send-email-rmanohar@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath11k/mac.c
include/net/mac80211.h
net/mac80211/he.c