summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-04-26 20:19:05 +0000
committersam <sam@FreeBSD.org>2007-04-26 20:19:05 +0000
commitd2c88d920045bd0004e86b70442052c79fa40008 (patch)
treefde69ae7468847b34418253a70121febffb0d301 /usr.sbin
parent8d6f49b7317a0f199de175e20f65022d269553dd (diff)
downloadFreeBSD-src-d2c88d920045bd0004e86b70442052c79fa40008.zip
FreeBSD-src-d2c88d920045bd0004e86b70442052c79fa40008.tar.gz
must byte swap key rsc for big-endian systems
Obtained from: netbsd MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/wpa/wpa_supplicant/driver_freebsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c b/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
index 31b35d7..6d8eda4 100644
--- a/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
+++ b/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
@@ -317,6 +317,7 @@ wpa_driver_bsd_set_key(void *priv, wpa_alg alg,
wk.ik_flags |= IEEE80211_KEY_DEFAULT;
wk.ik_keylen = key_len;
memcpy(&wk.ik_keyrsc, seq, seq_len);
+ wk.ik_keyrsc = le64toh(wk.ik_keyrsc);
memcpy(wk.ik_keydata, key, key_len);
return set80211var(drv, IEEE80211_IOC_WPAKEY, &wk, sizeof(wk));
OpenPOWER on IntegriCloud