monitor: Fix transaction_sequence byte-ordering

transaction_sequence must be compared in host byte-order
This commit is contained in:
Denis Kenzior 2015-01-22 12:42:20 -06:00
parent 5247695d56
commit 63a57453da
1 changed files with 2 additions and 2 deletions

View File

@ -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)",