From 63a57453da5303ada34c866af5e5e7115532cd7a Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 22 Jan 2015 12:42:20 -0600 Subject: [PATCH] monitor: Fix transaction_sequence byte-ordering transaction_sequence must be compared in host byte-order --- monitor/nlmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index d23aff78..9e737fff 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -660,8 +660,8 @@ static void print_authentication_mgmt_frame(unsigned int level, if (L_LE16_TO_CPU(mpdu->auth.algorithm) != MPDU_AUTH_ALGO_SHARED_KEY) return; - if (mpdu->auth.transaction_sequence < 2 || - mpdu->auth.transaction_sequence > 3) + if (L_LE16_TO_CPU(mpdu->auth.transaction_sequence) < 2 || + L_LE16_TO_CPU(mpdu->auth.transaction_sequence) > 3) return; print_attr(level + 1, "Challenge text: \"%s\" (%u)",