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

Commit 1609d18d authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0c317a02
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;