Skip to content

Commit

Permalink
wifi: mac80211_hwsim: init peer measurement result
Browse files Browse the repository at this point in the history
[ Upstream commit 2a4e01e ]

If we don't get all the values here, we might pass them to
cfg80211 uninitialized. Fix that, even if the input might
then not make much sense.

Fixes: 2af3b2a ("mac80211_hwsim: add PMSR report support via virtio")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240418105220.e1317621c1f9.If7dd447de24d7493d133284db5e9e482e4e299f8@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
jmberg-intel authored and gregkh committed May 2, 2024
1 parent 1960e9e commit 115cd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/virtual/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -3795,7 +3795,7 @@ static int hwsim_pmsr_report_nl(struct sk_buff *msg, struct genl_info *info)
}

nla_for_each_nested(peer, peers, rem) {
struct cfg80211_pmsr_result result;
struct cfg80211_pmsr_result result = {};

err = mac80211_hwsim_parse_pmsr_result(peer, &result, info);
if (err)
Expand Down

0 comments on commit 115cd09

Please sign in to comment.