mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-25 23:24:09 +01:00
monitor: algorithm was not in host byte-order
auth.algorithm field is an __le16, so must be converted to host byte order first.
This commit is contained in:
parent
f94f3d561c
commit
373d276dfc
@ -641,7 +641,7 @@ static void print_authentication_mgmt_frame(unsigned int level,
|
|||||||
print_mpdu_frame_control(level + 1, &mpdu->fc);
|
print_mpdu_frame_control(level + 1, &mpdu->fc);
|
||||||
print_mpdu_mgmt_header(level + 1, mpdu);
|
print_mpdu_mgmt_header(level + 1, mpdu);
|
||||||
|
|
||||||
switch (mpdu->auth.algorithm) {
|
switch (L_LE16_TO_CPU(mpdu->auth.algorithm)) {
|
||||||
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
||||||
str = "Open";
|
str = "Open";
|
||||||
break;
|
break;
|
||||||
@ -657,7 +657,7 @@ static void print_authentication_mgmt_frame(unsigned int level,
|
|||||||
L_LE16_TO_CPU(mpdu->auth.transaction_sequence),
|
L_LE16_TO_CPU(mpdu->auth.transaction_sequence),
|
||||||
L_LE16_TO_CPU(mpdu->auth.status));
|
L_LE16_TO_CPU(mpdu->auth.status));
|
||||||
|
|
||||||
if (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 (mpdu->auth.transaction_sequence < 2 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user