builder: start with sequence number 0
This commit is contained in:
parent
8f13728492
commit
63fb581eed
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue