Author: jogo
Date: 2014-12-11 20:35:48 +0100 (Thu, 11 Dec 2014)
New Revision: 43633
Modified:
trunk/package/libs/libnl-tiny/Makefile
trunk/package/libs/libnl-tiny/src/nl.c
Log:
libnl-tiny: fix receiving netlink messages larger than 4K
Apply libnl commit 807fddc4cd9ecb12ba64e1b7fa26d86b6c2f19b0 ("nl:
Increase receive buffer size to 4 pages") also to libnl-tiny to ensure
netlink messages larger than 4KiB can be received, as the restart logic
seems to be broken.
This fixes iwinfo accessing info on dual band b43 cards, as they can
support a lot of channels, breaking the 4K default limit (seen was >5k).
Signed-off-by: Jonas Gorski <[email protected]>
Modified: trunk/package/libs/libnl-tiny/Makefile
===================================================================
--- trunk/package/libs/libnl-tiny/Makefile 2014-12-11 19:35:43 UTC (rev
43632)
+++ trunk/package/libs/libnl-tiny/Makefile 2014-12-11 19:35:48 UTC (rev
43633)
@@ -9,7 +9,7 @@
PKG_NAME:=libnl-tiny
PKG_VERSION:=0.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_LICENSE:=LGPL-2.1
PKG_MAINTAINER:=Felix Fietkau <[email protected]>
Modified: trunk/package/libs/libnl-tiny/src/nl.c
===================================================================
--- trunk/package/libs/libnl-tiny/src/nl.c 2014-12-11 19:35:43 UTC (rev
43632)
+++ trunk/package/libs/libnl-tiny/src/nl.c 2014-12-11 19:35:48 UTC (rev
43633)
@@ -397,7 +397,7 @@
flags |= MSG_PEEK;
if (page_size == 0)
- page_size = getpagesize();
+ page_size = getpagesize() * 4;
iov.iov_len = page_size;
iov.iov_base = *buf = malloc(iov.iov_len);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits