Message ID | 20231114171455.1108856-2-denkenz@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/11] netdev: Fix obtaining reason code from deauth frames | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-ci-gitlint | success | GitLint |
diff --git a/src/netdev.c b/src/netdev.c index 49854b16d846..72876f3a39a1 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -4956,8 +4956,7 @@ static void netdev_unprot_disconnect_event(struct l_genl_msg *msg, if (!hdr) return; - /* get reason code, first byte of frame */ - reason_code = l_get_u8(mmpdu_body(hdr)); + reason_code = l_get_le16(mmpdu_body(hdr)); l_info("disconnect event, src="MAC" dest="MAC" bssid="MAC" reason=%u", MAC_STR(hdr->address_2), MAC_STR(hdr->address_1),