summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211/patches/008-fix-genl-family-id.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-20 12:52:21 +0100
committerFelix Fietkau <nbd@nbd.name>2017-11-20 17:52:51 +0100
commit9247864b6ed933841ee3068dbd4add06babe7fbd (patch)
treed7f62b31f757043b282bf41266fbfdf6f17e4b2f /package/kernel/mac80211/patches/008-fix-genl-family-id.patch
parentb9e700cd58a4b9e0d19d77bc38d3e56a450ece6b (diff)
downloadmtk-20170518-9247864b6ed933841ee3068dbd4add06babe7fbd.zip
mtk-20170518-9247864b6ed933841ee3068dbd4add06babe7fbd.tar.gz
mtk-20170518-9247864b6ed933841ee3068dbd4add06babe7fbd.tar.bz2
mac80211: fix netlink family id for nl80211 messages
Fixes responses for nl80211 calls Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/008-fix-genl-family-id.patch')
-rw-r--r--package/kernel/mac80211/patches/008-fix-genl-family-id.patch10
1 files changed, 10 insertions, 0 deletions
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
index 0000000..ee8fa6c
--- /dev/null
+++ b/package/kernel/mac80211/patches/008-fix-genl-family-id.patch
@@ -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;
+