mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-23 22:50:44 +01:00
mpdu: algorithm was not swapped to host byte-order
This commit is contained in:
parent
373d276dfc
commit
e60b814dc8
@ -76,7 +76,7 @@ static bool validate_authentication_mgmt_mpdu(const struct mpdu *mpdu,
|
|||||||
|
|
||||||
*offset += 6;
|
*offset += 6;
|
||||||
|
|
||||||
switch (mpdu->auth.algorithm) {
|
switch (L_LE16_TO_CPU(mpdu->auth.algorithm)) {
|
||||||
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
||||||
return *offset <= len;
|
return *offset <= len;
|
||||||
case MPDU_AUTH_ALGO_SHARED_KEY:
|
case MPDU_AUTH_ALGO_SHARED_KEY:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user