[OpenWrt-Devel] [PATCH v2 6/7] lantiq: set checksum when patching MAC address on ath10k

2019-09-22 Thread Adrian Schmutzler
One lantiq device uses ath10kcal_patch_mac, although all ath10k eeproms have a checksum field and should use ath10kcal_patch_mac_crc. This might be because the field is not evaluated by the firmware at the moment. Nevertheless, this patch will use ath10kcal_patch_mac_crc for all devices so the cor

[OpenWrt-Devel] [PATCH v2 2/7] base-files: move xor() from caldata extraction to functions.sh

2019-09-22 Thread Adrian Schmutzler
The xor() function is defined in each of the caldata extraction scripts for several targets. Move it to functions.sh to reduce duplicate code. Signed-off-by: Adrian Schmutzler --- v2: rebase --- package/base-files/files/lib/functions.sh | 16 .../etc/hotplug.d/firmware/10

[OpenWrt-Devel] [PATCH v2 7/7] lantiq: modify ath9k caldata extraction to reuse caldata.sh

2019-09-22 Thread Adrian Schmutzler
In lantiq, ath9k caldata extraction is implemented to work in two alternate "modes", the standard one and another one with swapped byte pairs. This rearranges the functions so "standard" use is based on the caldata.sh library, while only a single local function is required for the special case. N

[OpenWrt-Devel] [PATCH v2 0/7] Move caldata extraction and MAC patching to common file

2019-09-22 Thread Adrian Schmutzler
This is an update of my patchset unifying caldata extraction and MAC patching. I've improved some tiny things and despite that mostly done rebasing. I've also included the patch for the special situation in lantiq I sent separately for v1. The patchset removes 417 lines of redundant code, which de

[OpenWrt-Devel] [PATCH v2 1/7] treewide: fix hex2dec conversion for MAC address checksum offset

2019-09-22 Thread Adrian Schmutzler
If chksum_offset is converted by $(($...)) at the beginning, the check [ -n "$chksum_offset" ] will always return true, as the conversion yields "0" for an empty argument, and [ -n "0" ] is true. With this patch, the variable is not converted before the check, but only when it's used in dd. No co

[OpenWrt-Devel] [PATCH v2 5/7] ath79: set checksum when patching MAC address on ath10k

2019-09-22 Thread Adrian Schmutzler
Several devices use ath10kcal_patch_mac, although all ath10k eeproms have a checksum field and should use ath10kcal_patch_mac_crc. This might be because the field is not evaluated by the firmware at the moment. Nevertheless, this patch will use ath10kcal_patch_mac_crc for all devices so the correc

[OpenWrt-Devel] [PATCH v2 4/7] treewide: move MAC address patch functions to common library

2019-09-22 Thread Adrian Schmutzler
This unifies MAC address patch functions and moves them to a common script. While those were implemented differently for different targets, they all seem to do the same. The number of different variants is significantly reduced by this patch. Signed-off-by: Adrian Schmutzler --- v2: rebased, pu

[OpenWrt-Devel] [PATCH v2 3/7] treewide: move calibration data extraction function to library

2019-09-22 Thread Adrian Schmutzler
This moves the almost identical calibration data extraction functions present multiple times in several targets to a single library file /lib/functions/caldata.sh. Functions are renamed with more generic names to merge different variants that only differ in their names. Most of the targets used f

[OpenWrt-Devel] [PATCH] ramips: initialize youhua, wr1200js WAN MAC addresses from flash

2019-09-22 Thread Adrian Schmutzler
This patch changes wan MAC address setup for youhua,wr1200js from retrieving it by calculation to reading it from flash. This has been checked on-device. Signed-off-by: Adrian Schmutzler --- target/linux/ramips/base-files/etc/board.d/02_network | 1 + 1 file changed, 1 insertion(+) diff --git

[OpenWrt-Devel] [PATCH v2] treewide: remove kmod-usb-core from DEVICE_PACKAGES

2019-09-22 Thread Adrian Schmutzler
This removes _all_ occurrences of kmod-usb-core from DEVICE_PACKAGES and similar variables. This package is pulled as dependency by one of the following packages in any case: - kmod-usb-chipidea - kmod-usb-dwc2 - kmod-usb-ledtrig-usbport - kmod-usb-ohci - kmod-usb2 - kmod-usb2-pci - kmod-usb3 Sig

[OpenWrt-Devel] [PATCH] ipq40xx: abort ar40xx probe on missing PHYs

2019-09-22 Thread David Bauer
The ar40xx driver currently panics in case no QCA807x PHY has been successfully probed. This happens when the external PHY is still in reset when probing the ar40xx switch driver. Note that this patch does not fix the root cause, ar40xx_probe now simply fails instead of causing a kernel panic due

Re: [OpenWrt-Devel] rpcd: file: add path based read/write/exec ACL checks

2019-09-22 Thread Andre Valentin
On 21.09.19 20:16, Andre Valentin wrote: > Hi! > > Im using file extension to get extra status from my device. But after the > change above, the calls over uhttpd are rejected with permission denied. I've added a grant session call over http, it works now again. Kind regards, André smime.p

[OpenWrt-Devel] [PATCH] iw: Update to version 5.3

2019-09-22 Thread Hauke Mehrtens
Wifi HE (ieee80211ax) parsing is currently only activated in the full version because it increases the compressed size by 2.5KBytes. This also activates link time optimization (LTO) again, the problem was fixed upstream This increases the uncompressed binary size of iw-tiny by about 1.7% old: 34

Re: [OpenWrt-Devel] rpcd: file: add path based read/write/exec ACL checks

2019-09-22 Thread Jo-Philipp Wich
Hi, > What do I have to do to enable access again, without calling ubus > session grant like in the commit? Thank you! you need to add the following sections: "superuser": { ... "read": { "file": { "/": [ "stat", "read" ], "/*": [ "stat", "read" ]

[OpenWrt-Devel] [sdwalker/sdwalker.github.io] a8cdda: This week's update

2019-09-22 Thread Stephen Walker
Branch: refs/heads/master Home: https://github.com/sdwalker/sdwalker.github.io Commit: a8cdda328bc2290618b943506d84c496c6cf77c0 https://github.com/sdwalker/sdwalker.github.io/commit/a8cdda328bc2290618b943506d84c496c6cf77c0 Author: Stephen Walker Date: 2019-09-22 (Sun, 22 Sep 2

Re: [OpenWrt-Devel] the change 'base-files, procd: add generic service status' breaks several packages

2019-09-22 Thread Dirk Brenken
On Sat, 2019-09-21 at 11:09 +0200, Petr Štetiar wrote: > Dirk Brenken < > d...@brenken.org > > [2019-09-21 09:15:56]: > > Hi, > > > How to proceed? > > can you please try following fix[1]? Thanks! > > 1. > https://gitlab.com/ynezz/openwrt-packages/commit/79270c139f166550c8fcf89cc8f18135e3173c

[OpenWrt-Devel] [PATCH] Add support for Inventel DV4210

2019-09-22 Thread Daniel Gonzalez Cabanelas
Add support for the Inventel DV4210 router. This is an Inventel Livebox 1 board. The patch supports the board with a CFE bootloader, and a RAM mod (64 MB, tested). The board originally comes with 8 MB flash. Under this conditions this old BCM6348 based board still runs quite fine with current

Re: [OpenWrt-Devel] [PATCH] openssl: bump to 1.1.1d

2019-09-22 Thread Eneas Queiroz
On Tue, Sep 17, 2019 at 10:52 AM Eneas U de Queiroz wrote: > > This version fixes 3 low-severity vulnerabilities: > > - CVE-2019-1547: ECDSA remote timing attack > - CVE-2019-1549: Fork Protection > - CVE-2019-1563: Padding Oracle in PKCS7_dataDecode and > CMS_decrypt_set1_pkey >

Re: [OpenWrt-Devel] [PATCH] openssl: bump to 1.1.1d

2019-09-22 Thread Petr Štetiar
Eneas Queiroz [2019-09-22 22:29:07]: Hi, > Can someone please cherry pick this to 19.07: > d868d0a5d7e1d76bb1a8980346d222fae55fa18b done. -- ynezz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listi