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:
parent
5db5290ab4
commit
10655d1bc2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue