mac80211: fix netlink family id for nl80211 messages
authorFelix Fietkau <nbd@nbd.name>
Mon, 20 Nov 2017 11:52:21 +0000 (12:52 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 20 Nov 2017 16:52:51 +0000 (17:52 +0100)
Fixes responses for nl80211 calls

Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/patches/008-fix-genl-family-id.patch [new file with mode: 0644]

diff --git a/package/kernel/mac80211/patches/008-fix-genl-family-id.patch b/package/kernel/mac80211/patches/008-fix-genl-family-id.patch
new file mode 100644 (file)
index 0000000..ee8fa6c
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/compat/backport-4.12.c
++++ b/compat/backport-4.12.c
+@@ -224,6 +224,7 @@ int bp_extack_genl_register_family(struc
+       }
+       /* copy this since the family might access it directly */
++      family->id = copy->family.id;
+       family->attrbuf = copy->family.attrbuf;
+       family->mcgrp_offset = copy->family.mcgrp_offset;