Fixed headeris which were always 4 bytes too long.

FossilOrigin-Name: 7468efdf9f6842eea5cc985aff81476f62a83e76f59c381d131d9e624b2ba1ab
This commit is contained in:
root 2020-03-20 20:12:50 +00:00
parent d69b950242
commit 725ecd80f7
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ int cw_set_hdr_rmac(uint8_t * th, bstr_t rmac)
memcpy(cw_get_hdr_rmac(th), rmac, rmac_len + 1);
cw_set_hdr_flags(th, CAPWAP_FLAG_HDR_M, 1);
hlen = 4 + rmac_len / 4;
hlen = 2 + rmac_len / 4;
if (rmac_len % 4 != 0) {
hlen++;