From 60f18ada41ef32e0554b4c7056d3868bcaa515be Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Mon, 16 Oct 2017 21:48:21 +0200 Subject: backports: fully add netlink extack for generic netlink The previous backport just made the code compatible, but removed the extack functionality entirely. By ignoring the setsockopt() and just assuming that userspace does in fact support extack (which is true for all of wifi and in fact all users of libnl), we can support full extack functionality even on kernels that don't support it. Signed-off-by: Johannes Berg --- patches/0078-genl-extack.cocci | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'patches') diff --git a/patches/0078-genl-extack.cocci b/patches/0078-genl-extack.cocci index b2506174..5560e09d 100644 --- a/patches/0078-genl-extack.cocci +++ b/patches/0078-genl-extack.cocci @@ -3,3 +3,9 @@ struct genl_info *info; @@ -info->extack +genl_info_extack(info) + +@@ +struct genl_info *info; +@@ +-info->userhdr ++genl_info_userhdr(info) -- cgit v1.2.3