mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 23:40:43 +01:00
monitor: dump IEs in FT/SAE Authenticate frames
This commit is contained in:
parent
605338f110
commit
711a5ff5d1
@ -4530,6 +4530,7 @@ static void print_authentication_mgmt_frame(unsigned int level,
|
|||||||
{
|
{
|
||||||
const char *str;
|
const char *str;
|
||||||
const struct mmpdu_authentication *body;
|
const struct mmpdu_authentication *body;
|
||||||
|
uint16_t alg;
|
||||||
|
|
||||||
if (!mmpdu)
|
if (!mmpdu)
|
||||||
return;
|
return;
|
||||||
@ -4540,8 +4541,9 @@ static void print_authentication_mgmt_frame(unsigned int level,
|
|||||||
|
|
||||||
print_mpdu_frame_control(level + 1, &mmpdu->fc);
|
print_mpdu_frame_control(level + 1, &mmpdu->fc);
|
||||||
print_mmpdu_header(level + 1, mmpdu);
|
print_mmpdu_header(level + 1, mmpdu);
|
||||||
|
alg = L_LE16_TO_CPU(body->algorithm);
|
||||||
|
|
||||||
switch (L_LE16_TO_CPU(body->algorithm)) {
|
switch (alg) {
|
||||||
case MMPDU_AUTH_ALGO_OPEN_SYSTEM:
|
case MMPDU_AUTH_ALGO_OPEN_SYSTEM:
|
||||||
str = "Open";
|
str = "Open";
|
||||||
break;
|
break;
|
||||||
@ -4563,7 +4565,8 @@ static void print_authentication_mgmt_frame(unsigned int level,
|
|||||||
L_LE16_TO_CPU(body->transaction_sequence),
|
L_LE16_TO_CPU(body->transaction_sequence),
|
||||||
L_LE16_TO_CPU(body->status));
|
L_LE16_TO_CPU(body->status));
|
||||||
|
|
||||||
if (L_LE16_TO_CPU(body->algorithm) != MMPDU_AUTH_ALGO_SHARED_KEY)
|
if (!L_IN_SET(alg, MMPDU_AUTH_ALGO_SHARED_KEY,
|
||||||
|
MMPDU_AUTH_ALGO_FT, MMPDU_AUTH_ALGO_SAE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (L_LE16_TO_CPU(body->transaction_sequence) < 2 ||
|
if (L_LE16_TO_CPU(body->transaction_sequence) < 2 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user