diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-03-02 16:25:53 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-03-02 16:35:37 +0000 |
commit | 01d16d821f4218ce0db9257013d0ad9b339cabe6 (patch) | |
tree | 15cd12a97c17dd6806bcb32e204cc510aed9719a /src/net | |
parent | 8ab4b00442759ff9b61f5e813b73d29d91c4ae5f (diff) | |
download | ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.zip ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.gz ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.bz2 |
[libc] Rewrite byte-swapping code
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/80211/wpa_tkip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/80211/wpa_tkip.c b/src/net/80211/wpa_tkip.c index fa3e076..3b1934b 100644 --- a/src/net/80211/wpa_tkip.c +++ b/src/net/80211/wpa_tkip.c @@ -136,7 +136,7 @@ static const u16 Sbox[256] = { */ static inline u16 S ( u16 v ) { - return Sbox[v & 0xFF] ^ swap16 ( Sbox[v >> 8] ); + return Sbox[v & 0xFF] ^ bswap_16 ( Sbox[v >> 8] ); } /** |