3
0
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:
Denis Kenzior 2015-01-22 12:37:36 -06:00
parent 373d276dfc
commit e60b814dc8

View File

@ -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: