Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Ian Kent
On Wed, 2015-05-13 at 06:34 +0200, Rafał Miłecki wrote: > On 13 May 2015 at 03:49, Ian Kent wrote: > > On Tue, 2015-05-12 at 19:31 +0200, Rafał Miłecki wrote: > >> On 12 May 2015 at 15:10, Hante Meuleman wrote: > >> > Added two functions to the bcm47xx_nvram module to get and release copies > >>

[OpenWrt-Devel] [PATCH] [package] ubus: fix memory leak problem

2015-05-12 Thread 陈斌
HI, all this is a patch try to fix libubus-lua's memory leak problem Best regards Signed-off-by:Chen Bin --- --- a/lua/ubus.c +++ b/lua/ubus.c @@ -666,6 +666,7 @@ ubus_lua__gc(lua_State *L) { struct ubus_lua_connection *c = luaL_checkudata(L, 1, METANAME); + blob_buf_free(&c->

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Rafał Miłecki
On 13 May 2015 at 03:49, Ian Kent wrote: > On Tue, 2015-05-12 at 19:31 +0200, Rafał Miłecki wrote: >> On 12 May 2015 at 15:10, Hante Meuleman wrote: >> > Added two functions to the bcm47xx_nvram module to get and release copies >> > of the complete nvram contents. This can be used by for example

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Ian Kent
On Tue, 2015-05-12 at 19:31 +0200, Rafał Miłecki wrote: > On 12 May 2015 at 15:10, Hante Meuleman wrote: > > Added two functions to the bcm47xx_nvram module to get and release copies > > of the complete nvram contents. This can be used by for example brcmfmac > > to get complete nvram contents whi

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Felix Fietkau
On 2015-05-12 15:10, Hante Meuleman wrote: > Added two functions to the bcm47xx_nvram module to get and release copies > of the complete nvram contents. This can be used by for example brcmfmac > to get complete nvram contents which will after some parsing be sent to > device. > > Signed-off-by

[OpenWrt-Devel] [PATCH] mpc85xx: TL-WDR4900: Fix port 6 being shown as up (10MBit/half) in LUCI/swconfig

2015-05-12 Thread Heiner Kallweit
Currently port 6 is shown as up 10MBit/half in LUCI and swconfig. Reason is that all bits in the port 6 config are zero. This means that also the aneg flag is not set and in this case ar8216_read_port_link hardcodes the link to be up. This is no real problem but a little annoying. To fix this init

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Rafał Miłecki
On 12 May 2015 at 15:10, Hante Meuleman wrote: > Added two functions to the bcm47xx_nvram module to get and release copies > of the complete nvram contents. This can be used by for example brcmfmac > to get complete nvram contents which will after some parsing be sent to > device. Thanks for send

Re: [OpenWrt-Devel] [PATCH][v2] netifd: Support for configurable default packet steering behavior

2015-05-12 Thread Steven Barth
Applied, thanks. On 12.05.2015 13:11, Hans Dedecker wrote: The default packet steering behavior can be configured via the parameter default_ps in the global section; the default value is true to keep backwards compatibility. Device packet steering (rps/xps) config can still be used to override t

[OpenWrt-Devel] WAN dhcp client doesnt recognize unplugged cable and doesnt request new IP on replugged

2015-05-12 Thread Jakub Jančo
Hello, I have tplink 1043nd with BB Problem is that I have dhcp client on WAN and if I unplug cable from WAN, it doesnt change status, give up dhcp address. Even worse is that if I plug cable with another end point with another network, WAN dhcp client doesnt pull new IP, I must click on "Conne

[OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Hante Meuleman
Added two functions to the bcm47xx_nvram module to get and release copies of the complete nvram contents. This can be used by for example brcmfmac to get complete nvram contents which will after some parsing be sent to device. Signed-off-by: Hante Meuleman --- diff --git a/target/linux/bcm53x

[OpenWrt-Devel] [PATCH] scripts/feeds: Return non-zero return code if updating of a feed failed.

2015-05-12 Thread Martin Strbacka
Hello, I found out that if I make a mistake in a branch or commit expression in the feeds.conf file the updating procedure fails silently. This patch fixes this behavior and returns error code 1 if something went wrong. Best Regards, Martin Strba??ka Signed-off-by: Martin Strbacka --- scripts

[OpenWrt-Devel] [PATCH][v2] netifd: Support for configurable default packet steering behavior

2015-05-12 Thread Hans Dedecker
The default packet steering behavior can be configured via the parameter default_ps in the global section; the default value is true to keep backwards compatibility. Device packet steering (rps/xps) config can still be used to override the default behavior. This allows you to disable packet steerin

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Hante Meuleman
It is a bit more than just changing request_firmware_nowait into request_firmware. The worker in core.c needs to be removed. The function brcmf_pcie_setup needs to be updated as it cannot call device_release_driver during probe. As a result brcmf_fw_get_firmwares_pcie has to return the error, w

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Hante Meuleman
Ok, thanks, that requires the wifi device to be completely up and initialized. There is way more involved in getting that synchronous. So what about the idea of adding a delay of two seconds to brcmfmac_module_init? Would that patch be accepted? -Original Message- From: Rafał Miłecki [m

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Felix Fietkau
On 2015-05-12 11:33, Hante Meuleman wrote: > Understood, what is wifi detect using as input? Do the netdevs have to > be up? Where is the information that wifi app is reading coming from? It looks for registered cfg80211 wiphys. It does not care about netdevs. > brcmfmac uses different method for

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Rafał Miłecki
On 12 May 2015 at 11:33, Hante Meuleman wrote: > Understood, what is wifi detect using as input? Do the netdevs have to > be up? Where is the information that wifi app is reading coming from? What about just checking it by yourself? vim package/base-files/files/sbin/wifi vim package/kernel/mac802

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Hante Meuleman
Understood, what is wifi detect using as input? Do the netdevs have to be up? Where is the information that wifi app is reading coming from? brcmfmac uses different method for firmware loading. It is not as easily patched as the ath10k driver. But I would like to know exactly what wifi detect u

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Felix Fietkau
On 2015-05-12 10:35, Hante Meuleman wrote: > The boot script gives 1 second for wifi modules to settle. For newer > routers > > like R8000 which has three wifi devices which all need to be firmware > > downloaded, nvram downloaded and initialized this delay is getting very > > tight. On some boo

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Rafał Miłecki
On 12 May 2015 at 10:35, Hante Meuleman wrote: > The boot script gives 1 second for wifi modules to settle. For newer routers > > like R8000 which has three wifi devices which all need to be firmware > > downloaded, nvram downloaded and initialized this delay is getting very > > tight. On some boo

[OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Hante Meuleman
The boot script gives 1 second for wifi modules to settle. For newer routers like R8000 which has three wifi devices which all need to be firmware downloaded, nvram downloaded and initialized this delay is getting very tight. On some bootups it was seen that not all wifi modules were initialized by

[OpenWrt-Devel] NVRAM > 32K

2015-05-12 Thread Hante Meuleman
The R8000 AP has more than 32K nvram memory. This was an issue for the userspace app "nvram". This got fixed at some point, but then it was reverted: http://git.openwrt.org/?p=openwrt.git;a=commit;h=9258d82f1d4a79f86ea72aad349b3f3eeb772d87 Why was it reverted? Would be good to know what exact rea

[OpenWrt-Devel] [PATCH] Vlan configuration, limit the used ports

2015-05-12 Thread Hante Meuleman
Do not mimic the vlan configuration in some devices like R8000 as the configuration is to be used with SW accelerators not available in OpenWRT. It is not possible to use the switch with vlan port configuration 0 1 2 3 5 7 8, without making some huge modifications. When this configuration is us