Off-by-one bug in country ie construction, which will make HOSTAP send out
malformatted beacons. Reviewed by: sam Approved by: re (bmah), sam (mentor)
This commit is contained in:
parent
98b335504d
commit
f05ba5eeed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171985
@ -182,8 +182,10 @@ ieee80211_add_countryie(uint8_t *frm, struct ieee80211com *ic,
|
||||
}
|
||||
}
|
||||
ie->len = frm - ie->cc;
|
||||
if (ie->len & 1) /* pad to multiple of 2 */
|
||||
if (ie->len & 1) { /* Zero pad to multiple of 2 */
|
||||
ie->len++;
|
||||
*frm++ = 0;
|
||||
}
|
||||
return frm;
|
||||
#undef CHAN_UNINTERESTING
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user