From e60b814dc841fa4a6dcd931f3afe7bb377f63e70 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 22 Jan 2015 12:37:36 -0600 Subject: [PATCH] mpdu: algorithm was not swapped to host byte-order --- src/mpdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpdu.c b/src/mpdu.c index f2637841..0d5f7f7d 100644 --- a/src/mpdu.c +++ b/src/mpdu.c @@ -76,7 +76,7 @@ static bool validate_authentication_mgmt_mpdu(const struct mpdu *mpdu, *offset += 6; - switch (mpdu->auth.algorithm) { + switch (L_LE16_TO_CPU(mpdu->auth.algorithm)) { case MPDU_AUTH_ALGO_OPEN_SYSTEM: return *offset <= len; case MPDU_AUTH_ALGO_SHARED_KEY: