mpdu: expose mmpdu_header_len

This commit is contained in:
James Prestwood 2019-10-21 14:01:57 -07:00 committed by Denis Kenzior
parent b35e3525be
commit 9ec87acccf
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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);