mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
use the specified key index for non-group keys; this fixes static
wep key configure at key indices > 0 and 802.1x/EAPOL operation with ap's that want the station to install a key at indices > 0. Hard work by: Joe Love Reviewed by: avatar MFC after: 1 week
This commit is contained in:
parent
386d84f60e
commit
7097537784
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155886
@ -311,10 +311,11 @@ wpa_driver_bsd_set_key(void *priv, wpa_alg alg,
|
||||
if (bcmp(addr, "\xff\xff\xff\xff\xff\xff", IEEE80211_ADDR_LEN) == 0) {
|
||||
wk.ik_flags |= IEEE80211_KEY_GROUP;
|
||||
wk.ik_keyix = key_idx;
|
||||
if (set_tx)
|
||||
wk.ik_flags |= IEEE80211_KEY_DEFAULT;
|
||||
} else
|
||||
wk.ik_keyix = IEEE80211_KEYIX_NONE;
|
||||
} else {
|
||||
wk.ik_keyix = (key_idx == 0 ? IEEE80211_KEYIX_NONE : key_idx);
|
||||
}
|
||||
if (wk.ik_keyix != IEEE80211_KEYIX_NONE && set_tx)
|
||||
wk.ik_flags |= IEEE80211_KEY_DEFAULT;
|
||||
wk.ik_keylen = key_len;
|
||||
memcpy(&wk.ik_keyrsc, seq, seq_len);
|
||||
memcpy(wk.ik_keydata, key, key_len);
|
||||
|
Loading…
Reference in New Issue
Block a user