Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149839
b: refs/heads/master
c: 1778092
h: refs/heads/master
i:
  149837: e34ad9e
  149835: 7d338dc
  149831: b5c237a
  149823: 47690b0
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Apr 22, 2009
1 parent cdaef7a commit ded59d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0ed418977edf60f1df9933e1ccd48920a28eb66
refs/heads/master: 1778092e1739155acec35a3bccee2fb8a1ae4e91
14 changes: 7 additions & 7 deletions trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,6 +2752,9 @@ static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)
if (!info->attrs[NL80211_ATTR_MAC])
return -EINVAL;

if (!info->attrs[NL80211_ATTR_AUTH_TYPE])
return -EINVAL;

rtnl_lock();

err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev);
Expand Down Expand Up @@ -2798,13 +2801,10 @@ static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)
req.ie_len = nla_len(info->attrs[NL80211_ATTR_IE]);
}

if (info->attrs[NL80211_ATTR_AUTH_TYPE]) {
req.auth_type =
nla_get_u32(info->attrs[NL80211_ATTR_AUTH_TYPE]);
if (!nl80211_valid_auth_type(req.auth_type)) {
err = -EINVAL;
goto out;
}
req.auth_type = nla_get_u32(info->attrs[NL80211_ATTR_AUTH_TYPE]);
if (!nl80211_valid_auth_type(req.auth_type)) {
err = -EINVAL;
goto out;
}

err = drv->ops->auth(&drv->wiphy, dev, &req);
Expand Down

0 comments on commit ded59d6

Please sign in to comment.