diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-10-31 04:25:43 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-31 04:26:06 -0400 |
commit | de29eda892ce9d5a3b11d5467b30de140f251573 (patch) | |
tree | dd9257359df9fef6499cab65b06405d56af9f2e7 /drivers/net/wireless/mac80211_hwsim.c | |
parent | d070f9137af960abd78525440684421fd5e0c0e7 (diff) |
mac80211-hwsim: add missing policy entries
A few recent additions to the netlink attributes neglected
to add policy entries, fix that now.
Reported-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index a24b7f5aea9f..5dbaee36c607 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -508,6 +508,9 @@ static const struct nla_policy hwsim_genl_policy[HWSIM_ATTR_MAX + 1] = { | |||
508 | [HWSIM_ATTR_REG_STRICT_REG] = { .type = NLA_FLAG }, | 508 | [HWSIM_ATTR_REG_STRICT_REG] = { .type = NLA_FLAG }, |
509 | [HWSIM_ATTR_SUPPORT_P2P_DEVICE] = { .type = NLA_FLAG }, | 509 | [HWSIM_ATTR_SUPPORT_P2P_DEVICE] = { .type = NLA_FLAG }, |
510 | [HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE] = { .type = NLA_FLAG }, | 510 | [HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE] = { .type = NLA_FLAG }, |
511 | [HWSIM_ATTR_RADIO_NAME] = { .type = NLA_STRING }, | ||
512 | [HWSIM_ATTR_NO_VIF] = { .type = NLA_FLAG }, | ||
513 | [HWSIM_ATTR_FREQ] = { .type = NLA_U32 }, | ||
511 | }; | 514 | }; |
512 | 515 | ||
513 | static void mac80211_hwsim_tx_frame(struct ieee80211_hw *hw, | 516 | static void mac80211_hwsim_tx_frame(struct ieee80211_hw *hw, |