diff --git a/src/mpdu.c b/src/mpdu.c index eb141c75..844e61d5 100644 --- a/src/mpdu.c +++ b/src/mpdu.c @@ -623,7 +623,7 @@ const struct mmpdu_header *mpdu_validate(const uint8_t *frame, int len) } } -static size_t mmpdu_header_len(const struct mmpdu_header *mmpdu) +size_t mmpdu_header_len(const struct mmpdu_header *mmpdu) { return mmpdu->fc.order == 0 ? 24 : 28; } diff --git a/src/mpdu.h b/src/mpdu.h index 4cf08d00..f3f7e4cd 100644 --- a/src/mpdu.h +++ b/src/mpdu.h @@ -408,3 +408,4 @@ struct mmpdu_deauthentication { const struct mmpdu_header *mpdu_validate(const uint8_t *frame, int len); const void *mmpdu_body(const struct mmpdu_header *mpdu); +size_t mmpdu_header_len(const struct mmpdu_header *mmpdu);