summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-10-17 08:02:48 +0200
committerJohannes Berg <johannes.berg@intel.com>2016-10-17 08:02:48 +0200
commit1609d18de655e243d2db0f8fa21a3830ff0ab89f (patch)
tree24eeb7daeb1f7f136ce5d08e9ddb82e6f80f462f /net/wireless/nl80211.c
parentcfg80211: support virtual interfaces with different beacon intervals (diff)
downloadlinux-1609d18de655e243d2db0f8fa21a3830ff0ab89f.tar.xz
linux-1609d18de655e243d2db0f8fa21a3830ff0ab89f.zip
nl80211: correctly use nl80211_nan_srf_policy
This was clearly intended to be used in the attribute parsing, so do that instead of leaving the attribute policy unused. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 903cd5a5d1ce..65c0a1771fd5 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -10786,7 +10786,8 @@ static int nl80211_nan_add_func(struct sk_buff *skb,
err = nla_parse(srf_tb, NL80211_NAN_SRF_ATTR_MAX,
nla_data(tb[NL80211_NAN_FUNC_SRF]),
- nla_len(tb[NL80211_NAN_FUNC_SRF]), NULL);
+ nla_len(tb[NL80211_NAN_FUNC_SRF]),
+ nl80211_nan_srf_policy);
if (err)
goto out;