[OpenWrt-Devel] [PATCH 5/5] service: close instance pipe fd on restart.

2015-06-13 Thread Yousong Zhou
Otherwise we hit max number of fd limit (1024) and instances fail to start with the following errors in syslog Sun Jun 14 01:27:38 2015 daemon.warn procd: pipe() failed: 24 (Too many open files) Signed-off-by: Yousong Zhou --- service/instance.c | 14 -- 1 file changed, 12 in

[OpenWrt-Devel] [PATCH 4/5] service: allow get_data of specifc instance.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/service.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/service/service.c b/service/service.c index c2a242b..2702dc3 100644 --- a/service/service.c +++ b/service/service.c @@ -213,8 +213,17 @@ stat

[OpenWrt-Devel] [PATCH 3/5] service: remove unused struct watch_subscribe definition.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/watch.c |5 - 1 file changed, 5 deletions(-) diff --git a/service/watch.c b/service/watch.c index 65e1fec..349b484 100644 --- a/service/watch.c +++ b/service/watch.c @@ -26,11 +26,6 @@ struct watch_object { char *name; }; -struct watch_

[OpenWrt-Devel] [PATCH 2/5] service: dump respawn params in the same order as when passed in.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/instance.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/instance.c b/service/instance.c index 4ace40b..e89cbc6 100644 --- a/service/instance.c +++ b/service/instance.c @@ -917,8 +917,8 @@ void instance_dump(struct blob_buf

[OpenWrt-Devel] [PATCH 1/5] service: optimize relaying stdio output of daemons a bit.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/instance.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/service/instance.c b/service/instance.c index 3367885..4ace40b 100644 --- a/service/instance.c +++ b/service/instance.c @@ -366,6 +366,10 @@ instance_stdio(stru

[OpenWrt-Devel] [PATCH 0/5] procd: a few cleanup and fixes

2015-06-13 Thread Yousong Zhou
Mostly of these are formed when working on `ossherd` [1] recently. There is a possible use-after-free bug I am not sure what's the proper fix. 1. In service_instance_update(), instance_stop() and instance_free() are called. 2. Later instance_exit() will access the instance structure already fr

[OpenWrt-Devel] [PATCH] firmware-tools/ptgen: fix endianness conversion for PTE .start, .length field.

2015-06-13 Thread Yousong Zhou
They are of 32-bit little endian integers. Signed-off-by: Yousong Zhou --- tools/firmware-utils/src/ptgen.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index 6379ed7..68bad6f 100644 --- a/tools

[OpenWrt-Devel] [PATCH] procd: correct the order of respawn params in the comments.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/system/procd/files/procd.sh |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 0e798a0..e83e75c 100644 --- a/package/system/procd/files/procd.sh +++ b/packa

[OpenWrt-Devel] [PATCH] ar71xx: add support for TL-WR720N-v4.

2015-06-13 Thread Yousong Zhou
The hardware should be almost the same as TL-WR720N-v3. WiFi and LAN networks were tested by "Lo Yuk Fai ". Failsafe and slider switch were tested by "Wong min ". Signed-off-by: Yousong Zhou --- Well this patch has been sitting on my local tree for a while. Just refreshed and should still work

[OpenWrt-Devel] [PATCH 3/3] openvpn: bump PKG_RELEASE.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/network/services/openvpn/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile index 3e9be0d..81d8007 100644 --- a/package/network/services/ope

[OpenWrt-Devel] [PATCH 2/3] openvpn: let instances drop to nobody in default config.

2015-06-13 Thread Yousong Zhou
This is for security precautions. As persist_tun and persist_key are already there, this should not cause compatibility issue. Signed-off-by: Yousong Zhou --- package/network/services/openvpn/files/openvpn.config |2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/services/

[OpenWrt-Devel] [PATCH 1/3] openvpn: fix handling comp_lzo and auth_retry as the wrong type.

2015-06-13 Thread Yousong Zhou
As reported in #19104. Signed-off-by: Yousong Zhou --- package/network/services/openvpn/files/openvpn.init |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init ind

Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc2

2015-06-13 Thread Arturo Rinaldi
Thank you Rafał ! ! ! Regards, Arturo ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH v3 1/2] [mac80211] Add "channel set helper" callback to ath9k

2015-06-13 Thread Stefan Rompf
Hi Felix, > Maybe in this case it would be > better to put the code in ath9k.ko and enable it via a Kconfig option in > the mac80211 package. Then add a bool flag to the ath9k_platform_data > struct to enable it only for devices that need it. sounds good to me, will create a patch... Stefan

Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc2

2015-06-13 Thread Rafał Miłecki
On 13 June 2015 at 17:31, Arturo Rinaldi wrote: > Can i get the exact commit hash and description of the 15.05-rc2 please ? f5c2b51 ralink: add missing symbol -- Rafał ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwr

Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc2

2015-06-13 Thread Fernando Frediani
Hi folks, I'm seeing an issue on my Barrier Breaker running on a TP-Link WR842ND where it gets an IPv6 /128 to the WAN interface + /64 on the LAN interface via DHCPv6 + PD, however it does NOT set the default gateway by default, so I have to discover it and set manually using the other-side l

Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc2

2015-06-13 Thread Arturo Rinaldi
Can i get the exact commit hash and description of the 15.05-rc2 please ? Thank you very much in advance. Kind Regards, Arturo ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-deve

[OpenWrt-Devel] Chaos Calmer 15.05-rc2

2015-06-13 Thread Steven Barth
The OpenWrt developers are proud to announce the first release candidate of OpenWrt Chaos Calmer. ___ __ | |.-.-.-.| | | |..| |_ | - || _ | -__| || | | || _|| _| |___|| __|_|__|__||||__| |_

Re: [OpenWrt-Devel] [PATCH] b53 switch driver memory leak and reset gpio pin initialization fix

2015-06-13 Thread blmink
Hi, Jonas I inserted trace points (pr_info) at functions in b53_common and figured out that driver behave wrong. Please have a look at this: ~~~cut~~~ root@(none):/# uname -a Linux (none) 4.0.4 #1 SMP Sat Jun 13 02:59:36 MSK 2015 mips64 GNU/Linux root@(none):/# root@(none):/# ifconfig eth0 up [

Re: [OpenWrt-Devel] [PATCH v3 1/2] [mac80211] Add "channel set helper" callback to ath9k

2015-06-13 Thread Felix Fietkau
On 2015-06-13 10:57, Stefan Rompf wrote: > Hi Felix, > > thanks for your feedback! > >> NACK from me for the ath9k_set_channel_helper part. This helper function >> needs to be passed in from the platform data, similar to how external >> reset is handled. >> From previous emails you pointed out th

Re: [OpenWrt-Devel] [PATCH v3 1/2] [mac80211] Add "channel set helper" callback to ath9k

2015-06-13 Thread Stefan Rompf
Hi Felix, thanks for your feedback! > NACK from me for the ath9k_set_channel_helper part. This helper function > needs to be passed in from the platform data, similar to how external > reset is handled. > From previous emails you pointed out that you guys chose this > design/structure simply beca

Re: [OpenWrt-Devel] [PATCH v3 1/2] [mac80211] Add "channel set helper" callback to ath9k

2015-06-13 Thread Felix Fietkau
On 2015-06-12 21:36, Stefan Rompf wrote: > This patch adds a "channel set helper" callback to the ath9k driver and > exports the ath9k kernel API for other packages. The registered function > is called whenever ath9k changes the channel. > > Signed-off-by: Stefan Rompf NACK from me for the ath9