builder: start with sequence number 0

This commit is contained in:
rofl0r 2019-04-27 21:54:13 +01:00
parent 8f13728492
commit 63fb581eed
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,6 @@ static size_t build_dot11_frame_header_m(struct dot11_frame_header *fh, uint16_t
{
static uint16_t frag_seq;
frag_seq += 0x10; /* SEQ_MASK */
fh->duration = end_htole16(52); /* DEFAULT_DURATION */
fh->fc = end_htole16(fc);
fh->frag_seq = end_htole16(frag_seq);
@ -54,6 +52,8 @@ static size_t build_dot11_frame_header_m(struct dot11_frame_header *fh, uint16_t
memcpy(fh->addr2, get_mac(), MAC_ADDR_LEN);
memcpy(fh->addr3, dstmac, MAC_ADDR_LEN);
frag_seq += 0x10; /* SEQ_MASK */
return sizeof *fh;
}