|author||Luis R. Rodriguez <email@example.com>||2013-03-07 14:28:27 -0800|
|committer||Luis R. Rodriguez <firstname.lastname@example.org>||2013-03-07 14:28:27 -0800|
compat-drivers: documentation impact of dump adjust workaround patch
Expand the patch documentation so users can know why they may want to upgrade. Signed-off-by: Luis R. Rodriguez <email@example.com>
Diffstat (limited to 'patches/collateral-evolutions/network')
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/0006-disable-dump-adjust-on-old-kernels.patch b/patches/collateral-evolutions/network/0006-disable-dump-adjust-on-old-kernels.patch
index a1c1250b..aff39799 100644
@@ -1,6 +1,31 @@
On older kernels, we can't do this workaround, so if you use
an old 64-bit kernel with compat you'd better upgrade.
+For more details of this work around refer to this commit
+upstream that deals with the code added:
+Author: Johannes Berg <firstname.lastname@example.org>
+Date: Fri Mar 1 14:03:49 2013 +0100
+ nl80211: increase wiphy dump size dynamically
+ Given a device with many channels capabilities the wiphy
+ information can still overflow even though its size in
+ 3.9 was reduced to 3.8 levels. For new userspace and
+ kernel 3.10 we're going to implement a new "split dump"
+ protocol that can use multiple messages per wiphy.
+ For now though, add a workaround to be able to send more
+ information to userspace. Since generic netlink doesn't
+ have a way to set the minimum dump size globally, and we
+ wouldn't really want to set it globally anyway, increase
+ the size only when needed, as described in the comments.
+ As userspace might not be prepared for large buffers, we
+ can only use 4k.
+ Also increase the size for the get_wiphy command.
@@ -1321,6 +1321,7 @@ static int nl80211_dump_wiphy(struct sk_