diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-06-13 05:17:11 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-13 05:17:11 -0400 |
commit | 4a4ab0d7c9abe4e403bcea6ae2fc5d3f28a64a29 (patch) | |
tree | 1860a27b0e42e2249d61a8eaaea82d540346eacd /net | |
parent | ac4d82fa01c194dba10b9a7c35449ba36eb642fc (diff) |
nl80211: fix sched scan match attribute name
It should be NL80211_SCHED_SCAN_MATCH_ATTR_SSID as
documented, not NL80211_ATTR_SCHED_SCAN_MATCH_SSID.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index dd94ee5fb40a..7db0aee8cd5b 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -250,7 +250,7 @@ nl80211_rekey_policy[NUM_NL80211_REKEY_DATA] = { | |||
250 | 250 | ||
251 | static const struct nla_policy | 251 | static const struct nla_policy |
252 | nl80211_match_policy[NL80211_SCHED_SCAN_MATCH_ATTR_MAX + 1] = { | 252 | nl80211_match_policy[NL80211_SCHED_SCAN_MATCH_ATTR_MAX + 1] = { |
253 | [NL80211_ATTR_SCHED_SCAN_MATCH_SSID] = { .type = NLA_BINARY, | 253 | [NL80211_SCHED_SCAN_MATCH_ATTR_SSID] = { .type = NLA_BINARY, |
254 | .len = IEEE80211_MAX_SSID_LEN }, | 254 | .len = IEEE80211_MAX_SSID_LEN }, |
255 | }; | 255 | }; |
256 | 256 | ||
@@ -4253,7 +4253,7 @@ static int nl80211_start_sched_scan(struct sk_buff *skb, | |||
4253 | nla_parse(tb, NL80211_SCHED_SCAN_MATCH_ATTR_MAX, | 4253 | nla_parse(tb, NL80211_SCHED_SCAN_MATCH_ATTR_MAX, |
4254 | nla_data(attr), nla_len(attr), | 4254 | nla_data(attr), nla_len(attr), |
4255 | nl80211_match_policy); | 4255 | nl80211_match_policy); |
4256 | ssid = tb[NL80211_ATTR_SCHED_SCAN_MATCH_SSID]; | 4256 | ssid = tb[NL80211_SCHED_SCAN_MATCH_ATTR_SSID]; |
4257 | if (ssid) { | 4257 | if (ssid) { |
4258 | if (nla_len(ssid) > IEEE80211_MAX_SSID_LEN) { | 4258 | if (nla_len(ssid) > IEEE80211_MAX_SSID_LEN) { |
4259 | err = -EINVAL; | 4259 | err = -EINVAL; |