]> git.ipfire.org Git - thirdparty/hostap.git/commit
Define QCA vendor per-enum 64-bit pad attributes
authorJeff Johnson <quic_jjohnson@quicinc.com>
Thu, 23 Feb 2023 01:13:24 +0000 (17:13 -0800)
committerJouni Malinen <j@w1.fi>
Thu, 9 Mar 2023 18:56:20 +0000 (20:56 +0200)
commit1491fc64a820ac8949f318ab4e710c26e7d14fee
tree66cc203e99b76b7cbfd71c02b06556f49b838757
parent55e31699e9a63a5b011c81d1febcd24e9633c64b
Define QCA vendor per-enum 64-bit pad attributes

When writing 64-bit attributes into the netlink buffer, senders may
add a padding attribute to allow the payload of the 64-bit attribute
to be 64-bit aligned. For QCA vendor attributes, currently the
attribute QCA_WLAN_VENDOR_ATTR_PAD in enum qca_wlan_vendor_attr is
defined for this purpose.

Unfortunately, when adding attributes to the netlink buffer, all
attributes at a given level of nesting must be defined in the same
enum so that they can be unambiguously parsed. This means that
QCA_WLAN_VENDOR_ATTR_PAD can only be used to pad 64-bit attributes
defined in enum qca_wlan_vendor_attr.

There are many other QCA vendor enums which define 64-bit attributes,
so add a pad attribute to all of them so that the 64-bit attributes
can be unambiguously padded.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
src/common/qca-vendor.h