diff options
author | Michael Brown | 2015-03-02 17:25:53 +0100 |
---|---|---|
committer | Michael Brown | 2015-03-02 17:35:37 +0100 |
commit | 01d16d821f4218ce0db9257013d0ad9b339cabe6 (patch) | |
tree | 15cd12a97c17dd6806bcb32e204cc510aed9719a /src/net/80211 | |
parent | [libc] Rewrite setjmp() and longjmp() (diff) | |
download | ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.gz ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.xz ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.zip |
[libc] Rewrite byte-swapping code
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/80211')
-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 fa3e0763..3b1934b5 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] ); } /** |