mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-18 01:59:31 +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;
|
||||
|
||||
switch (mpdu->auth.algorithm) {
|
||||
switch (L_LE16_TO_CPU(mpdu->auth.algorithm)) {
|
||||
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
||||
return *offset <= len;
|
||||
case MPDU_AUTH_ALGO_SHARED_KEY:
|
||||
|
Loading…
Reference in New Issue
Block a user