mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-09 06:14:05 +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)
|
if (L_LE16_TO_CPU(mpdu->auth.algorithm) != MPDU_AUTH_ALGO_SHARED_KEY)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mpdu->auth.transaction_sequence < 2 ||
|
if (L_LE16_TO_CPU(mpdu->auth.transaction_sequence) < 2 ||
|
||||||
mpdu->auth.transaction_sequence > 3)
|
L_LE16_TO_CPU(mpdu->auth.transaction_sequence) > 3)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
print_attr(level + 1, "Challenge text: \"%s\" (%u)",
|
print_attr(level + 1, "Challenge text: \"%s\" (%u)",
|
||||||
|
Loading…
Reference in New Issue
Block a user