Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266359
b: refs/heads/master
c: 6d30240
h: refs/heads/master
i:
  266357: 59eead8
  266355: 9d64a19
  266351: 0e610b3
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Sep 27, 2011
1 parent 5c4bf98 commit 6e25120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: 37a41b4affa33bb237d3692bf51f1b5ebcaf29d8
refs/heads/master: 6d30240e3d68f1da7303801f840132d0821f1767
12 changes: 1 addition & 11 deletions trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -4126,12 +4126,6 @@ static bool nl80211_valid_wpa_versions(u32 wpa_versions)
NL80211_WPA_VERSION_2));
}

static bool nl80211_valid_akm_suite(u32 akm)
{
return akm == WLAN_AKM_SUITE_8021X ||
akm == WLAN_AKM_SUITE_PSK;
}

static bool nl80211_valid_cipher_suite(u32 cipher)
{
return cipher == WLAN_CIPHER_SUITE_WEP40 ||
Expand Down Expand Up @@ -4295,7 +4289,7 @@ static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev,

if (info->attrs[NL80211_ATTR_AKM_SUITES]) {
void *data;
int len, i;
int len;

data = nla_data(info->attrs[NL80211_ATTR_AKM_SUITES]);
len = nla_len(info->attrs[NL80211_ATTR_AKM_SUITES]);
Expand All @@ -4305,10 +4299,6 @@ static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev,
return -EINVAL;

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

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

return 0;
Expand Down

0 comments on commit 6e25120

Please sign in to comment.