mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 11:52:34 +01:00
eap: expanded methods start packets at opcode
Expanded EAP methods should get their packets for handling starting at the op-code field. They're not really interested in type/vendor-id/vendor-type fields.
This commit is contained in:
parent
63b5c60743
commit
0a314004ce
@ -188,12 +188,19 @@ static void eap_handle_request(struct eap_state *eap,
|
||||
goto unsupported_method;
|
||||
}
|
||||
|
||||
if (type != EAP_TYPE_EXPANDED) {
|
||||
eap->method->handle_request(eap, pkt + 1, len - 1);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: Handle Expanded Nak if our vendor-id / vendor-types
|
||||
* don't match
|
||||
*/
|
||||
eap->method->handle_request(eap, pkt + 1, len - 1);
|
||||
if (len < 8)
|
||||
return;
|
||||
|
||||
eap->method->handle_request(eap, pkt + 8, len - 8);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user