nl80211: Add NLA_F_NESTED to nla_nest_start() with older libnl versions

This is needed to work around a missing attribute that would cause
cfg80211 to reject some nl80211 commands (e.g.,
NL80211_ATTR_VENDOR_DATA) with new kernel versions that enforce netlink
attribute policy validation.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-02-17 17:25:05 +02:00 committed by Jouni Malinen
parent 5db5290ab4
commit 10655d1bc2

View file

@ -17,6 +17,11 @@
#include "utils/list.h"
#include "driver.h"
#ifndef NL_CAPABILITY_VERSION_3_5_0
#define nla_nest_start(msg, attrtype) \
nla_nest_start(msg, NLA_F_NESTED | (attrtype))
#endif
struct nl80211_global {
void *ctx;
struct dl_list interfaces;