eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8de07357fd05cd16ae36dcfa00e49d6881ea8e1e
parent 08845fb19cd3ccd9e2e4d71b99ca3ca2005a564c
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Mon, 12 Jul 2021 18:13:14 -0500

fils: mmpdu_body cannot fail

Diffstat:
Msrc/fils.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/fils.c b/src/fils.c @@ -357,11 +357,6 @@ static int fils_rx_authenticate(struct auth_proto *driver, const uint8_t *frame, auth = mmpdu_body(hdr); - if (!auth) { - l_debug("Auth frame body did not validate"); - return -EBADMSG; - } - if (auth->status != 0) { l_debug("invalid status %u", 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); - if (!assoc) { - l_debug("Assoc frame body did not validate"); - return -EBADMSG; - } - if (assoc->status_code != 0) return L_CPU_TO_LE16(assoc->status_code);