[PATCH uhttpd RFC] ubus: support setting custom CORS origin URL

2020-09-23 Thread Rafał Miłecki
From: Rafał Miłecki By default uhttpd replies with Access-Control-Allow-Origin containing URL from the request Origin header. It allows sending CORS requests from any website allowing attacks. Add support for -o option that allows specifying a single URL to be put in the Access-Control-Allow-Ori

RE: [PATCH] ath79: ar8216: make switch register access atomic

2020-09-23 Thread Adrian Schmutzler
> -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Chuanhong Guo > Sent: Montag, 21. September 2020 08:58 > To: openwrt-de...@openwrt.org > Cc: Chuanhong Guo > Subject: [PATCH] ath79: ar8216: make switch register access atomic > > re

RE: [PATCH v3] ramips: add support for Linksys EA7300 v2

2020-09-23 Thread Adrian Schmutzler
Hi, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Heppler, J. Scott > Sent: Mittwoch, 23. September 2020 04:31 > To: openwrt-de...@openwrt.org > Subject: [PATCH v3] ramips: add support for Linksys EA7300 v2 > > ramips: add sup

[PATCH uhttpd] client: really close connection on timeout

2020-09-23 Thread Rafał Miłecki
From: Rafał Miłecki After specified time of network inactivity uhttpd is meant to close connection. It doesn't seem to work thought. After timeout client doesn't receive any more data but connection it still opened. This change fixes that. Signed-off-by: Rafał Miłecki --- V1: Set cl->request.c

[PATCH luci] luci-base: don't append object.method to the RPC url

2020-09-23 Thread Rafał Miłecki
From: Rafał Miłecki It was a cosmetic feature that doesn't work anymore with the latest uhttpd ubus API. Adding RESTful API resulted in treating URL part following the /ubus/ as the new API request. --- modules/luci-base/htdocs/luci-static/resources/rpc.js | 3 --- 1 file changed, 3 deletions(-)

Re: [PATCH] ath79: ar8216: make switch register access atomic

2020-09-23 Thread Chuanhong Guo
Hi! On Tue, Sep 22, 2020 at 12:37 AM Felix Fietkau wrote: > You could try making a global spinlock in ag71xx_mdio.c and do > spin_lock_bh(&mdio_lock) in ag71xx_mdio_mii_read and ag71xx_mdio_mii_write I've just tried that and it doesn't work. Should I move local_irq_save below mutex_lock and send

Re: [PATCH V3 uhttpd] ubus: add new RESTful API

2020-09-23 Thread Andre Valentin
Hi Rafał! I'm experimenting again a bit with the new API. I subscribed to the hostapd events and saw that after some time the connection is still up, but now new events come in. How can I control timeout and make sure, that the subscription connections stays as long as possible online? Kind reg

Re: [PATCH V3 uhttpd] ubus: add new RESTful API

2020-09-23 Thread Rafał Miłecki
On 2020-09-23 23:33, Andre Valentin wrote: I'm experimenting again a bit with the new API. I subscribed to the hostapd events and saw that after some time the connection is still up, but now new events come in. How can I control timeout and make sure, that the subscription connections stays as lo

[PATCH RFC] kernel: mtd spi-nor: allow use of mixed erasesizes (E.g. 64K & 4K)

2020-09-23 Thread John Thomson
Allow SPI NOR code to be configured to use the multiple erase-regions code path for a uniform erase-region device. This code path allows an erase request to select and run a list of erase operations (including 4K erases where supported by the device, and needed by the request). The multi erase-regi

[PATCH] fw3: rules: fix parsing of multiple weekdays

2020-09-23 Thread Christopher Ng
fw3 was not parsing the 'weekdays' option of rules correctly, it would only put the first day listed into the iptables --weekdays option. Signed-off-by: Christopher Ng --- iptables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables.c b/iptables.c index e7e8b59..9e8fa7

WBMv13 goes virutal - please vote on your preferred date!

2020-09-23 Thread Hauke Mehrtens
Hi OpenWrt community, In the beginning of the year we planned to have OpenWrt talks at the Wireless Battle Mesh, but this will not happen as an in person event this year because of Corona. The Wireless Battle Mesh goes virtual this year! OpenWrt would also like to participate in this virtual WBM