Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73defdda authored by Johannes Berg's avatar Johannes Berg Committed by Alistair Strachan
Browse files

BACKPORT: mac80211-hwsim: add missing policy entries



A few recent additions to the netlink attributes neglected
to add policy entries, fix that now.

Reported-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
(cherry picked from commit de29eda892ce9d5a3b11d5467b30de140f251573)
[astrachan: Omit policy for HWSIM_ATTR_FREQ, which has not been
            backported]
Bug: 70214720
Change-Id: Ica4da06e03bcfbf954399ba05a88e5552d60feb9
Signed-off-by: default avatarAlistair Strachan <astrachan@google.com>
parent 06873850
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -500,6 +500,8 @@ static const struct nla_policy hwsim_genl_policy[HWSIM_ATTR_MAX + 1] = {
	[HWSIM_ATTR_REG_STRICT_REG] = { .type = NLA_FLAG },
	[HWSIM_ATTR_SUPPORT_P2P_DEVICE] = { .type = NLA_FLAG },
	[HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE] = { .type = NLA_FLAG },
	[HWSIM_ATTR_RADIO_NAME] = { .type = NLA_STRING },
	[HWSIM_ATTR_NO_VIF] = { .type = NLA_FLAG },
};

static void mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,