mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
fils: mmpdu_body cannot fail
This commit is contained in:
parent
08845fb19c
commit
8de07357fd
10
src/fils.c
10
src/fils.c
@ -357,11 +357,6 @@ static int fils_rx_authenticate(struct auth_proto *driver, const uint8_t *frame,
|
|||||||
|
|
||||||
auth = mmpdu_body(hdr);
|
auth = mmpdu_body(hdr);
|
||||||
|
|
||||||
if (!auth) {
|
|
||||||
l_debug("Auth frame body did not validate");
|
|
||||||
return -EBADMSG;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (auth->status != 0) {
|
if (auth->status != 0) {
|
||||||
l_debug("invalid status %u", auth->status);
|
l_debug("invalid status %u", auth->status);
|
||||||
return L_LE16_TO_CPU(auth->status);
|
return L_LE16_TO_CPU(auth->status);
|
||||||
@ -482,11 +477,6 @@ static int fils_rx_associate(struct auth_proto *driver, const uint8_t *frame,
|
|||||||
|
|
||||||
assoc = mmpdu_body(hdr);
|
assoc = mmpdu_body(hdr);
|
||||||
|
|
||||||
if (!assoc) {
|
|
||||||
l_debug("Assoc frame body did not validate");
|
|
||||||
return -EBADMSG;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (assoc->status_code != 0)
|
if (assoc->status_code != 0)
|
||||||
return L_CPU_TO_LE16(assoc->status_code);
|
return L_CPU_TO_LE16(assoc->status_code);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user