Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264171
b: refs/heads/master
c: 1b9ca02
h: refs/heads/master
i:
  264169: b3e0353
  264167: 81b69c9
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Sep 21, 2011
1 parent ad2ce98 commit 85e8b3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 65d0f19e583e80e42b1c67c166bfc4dfdf6ab693
refs/heads/master: 1b9ca0272ffae212e726380f66777b30a56ed7a5
5 changes: 4 additions & 1 deletion trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -4113,9 +4113,12 @@ static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev,
if (len % sizeof(u32))
return -EINVAL;

if (settings->n_akm_suites > NL80211_MAX_NR_AKM_SUITES)
return -EINVAL;

memcpy(settings->akm_suites, data, len);

for (i = 0; i < settings->n_ciphers_pairwise; i++)
for (i = 0; i < settings->n_akm_suites; i++)
if (!nl80211_valid_akm_suite(settings->akm_suites[i]))
return -EINVAL;
}
Expand Down

0 comments on commit 85e8b3a

Please sign in to comment.