mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'for-davem' of git://git.infradead.org/users/linville/wireless
This commit is contained in:
commit
b582ad8e96
10 changed files with 46 additions and 30 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue