3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-03-31 06:56:52 +02:00
Andrew Zaborowski ea9edc1f99 hwsim: Fix netlink attribute size calculation
The name attribute in the NEW RADIO command needs at least 4 bytes for
the attribute header (struct nlattr), all the characters of the name
string and a NUL byte, and up to 3 bytes of alignment padding.
Otherwise, depending on the name length and whether the NO_VIF attribute
was the last, that attribute could end up being dropped and we were
ending up with too many interfaces inside test-runner.
2017-03-14 10:23:28 -05:00
..
2016-12-20 12:44:52 -06:00