mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-26 07:44:09 +01:00
mpdu: expose mmpdu_header_len
This commit is contained in:
parent
b35e3525be
commit
9ec87acccf
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user