Re: [OpenWrt-Devel] Syntax to call ubus registered function (having arguments) from lua

2015-11-20 Thread Jo-Philipp Wich
Hi, yeah right - made a mistake. The first argument to ubus.connect() is the socket path and the second one is the timeout in ms. Pass nil as 1st arg to use the default path and the desired timeout as 2nd one: conn = ubus.connect(nil, 1000) ~ Jow > > On Fri, Nov 20, 2015 at 6:58 PM,

Re: [OpenWrt-Devel] Syntax to call ubus registered function (having arguments) from lua

2015-11-20 Thread Jo-Philipp Wich
Hi. > I am trying to call a function registered on ubus from lua script. I > know how to call a argument less function but don't know the syntax of a > function with args (also how to add ubus timeout). Simply pass a table with your arguments as 3rd argument: conn:call(object, function, {

[OpenWrt-Devel] [PATCH] ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)

2015-11-20 Thread Matthias Schiffer
When fixing the model string for WNDR3700v2 which contain a model string followed by 0xff in r46455, the match for other versions of the WNDR3700v2 which just contain lots of 0xff broke (as the 0xff $model is checked for is stripped off). Fix by stripping off non-printable characters only for the

Re: [OpenWrt-Devel] Syntax to call ubus registered function (having arguments) from lua

2015-11-20 Thread Pratik Prajapati
conn = ubus.connect(1000) gives me following error: attempt to index local 'conn' (a nil value) On Fri, Nov 20, 2015 at 6:58 PM, Jo-Philipp Wich wrote: > Hi. > > > I am trying to call a function registered on ubus from lua script. I > > know how to call a argument less

[OpenWrt-Devel] API documentation of ubus

2015-11-20 Thread Pratik Prajapati
Hi, Is there any API documentation of ubus available? If yes, where can i found those? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH] netifd: Request DHCP option 121 (classless route) by default

2015-11-20 Thread Baptiste Jonglez
On Thu, Nov 19, 2015 at 03:41:10PM +0100, Hans Dedecker wrote: > On Thu, Nov 19, 2015 at 2:39 PM, Steven Barth wrote: > > > I don't see this argument as very convincing. I mean they still have > > control even if the client ORO's 121, they could simply ignore it. On top > > of

[OpenWrt-Devel] Syntax to call ubus registered function (having arguments) from lua

2015-11-20 Thread Pratik Prajapati
Hi, I am trying to call a function registered on ubus from lua script. I know how to call a argument less function but don't know the syntax of a function with args (also how to add ubus timeout). My lua script snippet: require "ubus" local conn = ubus.connect() local status_1 =

[OpenWrt-Devel] [PATCH] Add support for Huawei WS880

2015-11-20 Thread Prototik
--- target/linux/bcm53xx/image/Makefile| 14 +++ .../910-ARM-BCM5301X-Add-DT-for-Huawei-WS880.patch | 115 + .../910-ARM-BCM5301X-Add-DT-for-Huawei-WS880.patch | 115 + 3 files changed, 244 insertions(+) create mode 100644

[OpenWrt-Devel] [PATCH] mac80211: fix autoprobing of mt7601u driver

2015-11-20 Thread Alexey Brodkin
Strigng passed to autoprobing script should match module's name. Currently that string is missing trailing "u". With that change mt7601u driver really gets autoloaded on USB Wi-Fi dongle insertion: -->8--- [0.93] hub 2-0:1.0: USB hub found [0.94] hub

[OpenWrt-Devel] [PATCH] ar71xx: fix the SingleProfile kernel size limit for dLAN devices

2015-11-20 Thread Günther Kelleter
it ends up as $(2) of CatFiles and must be a plain decimal value. Signed-off-by: Günther Kelleter --- target/linux/ar71xx/image/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/image/Makefile

[OpenWrt-Devel] [PATCH] ar71xx: add support for the devolo dLAN Hotspot

2015-11-20 Thread Günther Kelleter
Signed-off-by: Günther Kelleter --- This patch adds kernel and basic userspace support for a new devolo device: dLAN Hotspot target/linux/ar71xx/base-files/etc/diag.sh | 3 + .../ar71xx/base-files/etc/uci-defaults/01_leds | 4 +

Re: [OpenWrt-Devel] [PATCH v5] linux: add support of Synopsys ARC770-based boards

2015-11-20 Thread Alexey Brodkin
Hi Felix, Jonas, On Tue, 2015-11-17 at 16:47 +0300, Alexey Brodkin wrote: > Hi Felix, Jonas, > > On Fri, 2015-11-13 at 21:39 +0300, Alexey Brodkin wrote: > > This patch introduces support of new boards with ARC cores. > > > > [1] Synopsys SDP board > > This is a new-generation development

[OpenWrt-Devel] [PATCH procd 2/2] ujail: rework file dependencies detection (use ldd)

2015-11-20 Thread Etienne CHAMPETIER
Using ldd (via popen()) is a hack, but it's simpler (and working) we have 3 libc and many archs, too many ways to resolve .so Current code: -do not parse the intepreter (PT_INTERP) part of the elf -do not get the library path priority right (/lib64 is before /lib, musl take the libs in /lib even

[OpenWrt-Devel] [PATCH procd 1/2] ujail: remove useless arg in clone call

2015-11-20 Thread Etienne CHAMPETIER
Signed-off-by: Etienne CHAMPETIER --- jail/jail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jail/jail.c b/jail/jail.c index 56dc9ca..08babde 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -272,7 +272,7 @@ static int exec_jail()

[OpenWrt-Devel] [PATCH v2] netifd: Request DHCP option 121 (classless route) by default

2015-11-20 Thread Baptiste Jonglez
From: Baptiste Jonglez This option is useful when the gateway configured by DHCP cannot be in the same subnet as the client. This happens, for instance, when using DHCP to hand out addresses in /32 subnets. A new configuration option "classlessroute" is available,

Re: [OpenWrt-Devel] [PATCH] ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)

2015-11-20 Thread Jo-Philipp Wich
Applied in r47538 - thank you! ~ Jow signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel