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>
This commit is contained in:

committed by
Johannes Berg

parent
1512bc076e
commit
60689de46c
@@ -604,7 +604,7 @@ struct ieee80211_ftm_responder_params {
|
||||
* nontransmitted BSSIDs
|
||||
* @profile_periodicity: the least number of beacon frames need to be received
|
||||
* in order to discover all the nontransmitted BSSIDs in the set.
|
||||
* @he_operation: HE operation information of the AP we are connected to
|
||||
* @he_oper: HE operation information of the AP we are connected to
|
||||
* @he_obss_pd: OBSS Packet Detection parameters.
|
||||
* @he_bss_color: BSS coloring settings, if BSS supports HE
|
||||
*/
|
||||
@@ -668,7 +668,10 @@ struct ieee80211_bss_conf {
|
||||
u8 bssid_indicator;
|
||||
bool ema_ap;
|
||||
u8 profile_periodicity;
|
||||
struct ieee80211_he_operation he_operation;
|
||||
struct {
|
||||
u32 params;
|
||||
u16 nss_set;
|
||||
} he_oper;
|
||||
struct ieee80211_he_obss_pd he_obss_pd;
|
||||
struct cfg80211_he_bss_color he_bss_color;
|
||||
};
|
||||
|
Reference in New Issue
Block a user