mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-03 07:44:08 +01:00
monitor: Fix transaction_sequence byte-ordering
transaction_sequence must be compared in host byte-order
This commit is contained in:
parent
5247695d56
commit
63a57453da
@ -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)",
|
||||
|
Loading…
Reference in New Issue
Block a user