Re: [OpenWrt-Devel] [PATCH 2/2] add channel information for scan results

2018-08-17 Thread Rafał Miłecki
> diff --git a/include/iwinfo.h b/include/iwinfo.h > index b3f5470..1559837 100644 > --- a/include/iwinfo.h > +++ b/include/iwinfo.h > @@ -145,6 +145,24 @@ struct iwinfo_crypto_entry { >uint8_t auth_suites; >uint8_t auth_algs; > }; > +struct iwinfo_channel_info_entry { > + /** > + *

[OpenWrt-Devel] [PATCH 1/2] bzip2: Fix CVE-2016-3189

2018-08-17 Thread Rosen Penev
Taken from Fedora. Signed-off-by: Rosen Penev --- Please backport to 18.06 and/or 17.01 package/utils/bzip2/Makefile| 2 +- package/utils/bzip2/patches/010-CVE-2016-3189.patch | 11 +++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644

[OpenWrt-Devel] [PATCH 2/2] grub2: Fix CVE-2015-8370

2018-08-17 Thread Rosen Penev
Taken from Fedora. Signed-off-by: Rosen Penev --- Please backport to 18.06 and/or 17.01 package/boot/grub2/Makefile| 2 +- package/boot/grub2/patches/300-CVE-2015-8370.patch | 44 ++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode

Re: [OpenWrt-Devel] openwrt/packages: [RFC] Regarding preferences re: switch to codeload

2018-08-17 Thread Daniel F. Dickinson
On 2018-08-13 01:45 PM, Rosen Penev wrote: > On Mon, Aug 13, 2018 at 2:45 AM Jo-Philipp Wich wrote: >> Hi, >> >> personally I'm opposed to the entire code load thing. >> >> First of all I was unable to reproduce the tarballs offered by Github. >> >> Github seems to use an extended tar (pax)

[OpenWrt-Devel] [PATCH v3 4/4] base-files: add sysupgrade -k to save list of pkgs

2018-08-17 Thread luizluca
From: Luiz Angelo Daros de Luca When '-k' is used, sysupgrade inserts into backup a new file /etc/backup/installed_packages.txt which contains pkgname and origin (rom, overlay, unknown) without touching rootfs. It's maily used to reinstall all extra packages: # opkg update # grep "\toverlay"

[OpenWrt-Devel] [PATCH v3 3/4] base-files: add sysupgrade -o to save all overlay files

2018-08-17 Thread luizluca
From: Luiz Angelo Daros de Luca Add sysupgrade '-o' option in order to include all overlay files in backup, except for those that are from packages but including files listed in conffiles, sysupgrade.conf or /lib/upgrade/keep.d. With '-u' option, it will skip files equals to /rom and conffiles

[OpenWrt-Devel] [PATCH v3 2/4] base-files: add sysupgrade -u to skip unchanged files

2018-08-17 Thread luizluca
From: Luiz Angelo Daros de Luca With '-u', for a file /aaa/bbb/ccc enlisted for backup, it will only get into backup if /rom/aaa/bbb/ccc does not exist or /aaa/bbb/ccc is different from /rom/aaa/bbb/ccc. It also works with '-c', but only effective for files touched but not modified.

[OpenWrt-Devel] [PATCH v3 1/4] base-files: minor cleanups on sysupgrade

2018-08-17 Thread luizluca
From: Luiz Angelo Daros de Luca Renamed add_uci_conffiles to add_conffiles as it includes any conffiles listed, not only UCI ones. Make do_save_conffiles arg mandatory Allow other options after -l (like -c) Do not use stdout for error messages (fixes backup to stdout) Signed-off-by: Luiz

[OpenWrt-Devel] [PATCH v3 0/4] base-files: add new backup options

2018-08-17 Thread luizluca
From: Luiz Angelo Daros de Luca Today, every file listed in /etc/sysupgrade.conf, /etc/config, marked as changed conffile and others will be in backup. Some of these files from previous OpenWrt version might break something. /etc/profile is a good example of what should not be in backup if

Re: [OpenWrt-Devel] [PATCH v2 2/2] ath79: add support for WD My Net Wi-Fi Range Extender

2018-08-17 Thread Christian Lamparter
On Friday, August 17, 2018 11:07:23 PM CEST Mathias Kresin wrote: > Hey Christian, > > I found something to nitpick about. Find my comments inline. Thank you for the review, I'll wait a until early next week, maybe Jonas has a comment on the cybertan-trx too. > [...] > > diff --git

Re: [OpenWrt-Devel] [PATCH] [RFC] ath79: ag71xx: apply interface mode to MII0/1_CNTL on ar71xx/ar913x

2018-08-17 Thread Mathias Kresin
08/17/2018 09:45 PM, Martin Blumenstingl: On Thu, Aug 16, 2018 at 5:06 AM Chuanhong Guo wrote: Signed-off-by: Chuanhong Guo --- RFC: Previous discussion about this patch can be found on GitHub PR#1271. This patch applies correct interface mode to MII0/1_CNTL register at 0x1807/

Re: [OpenWrt-Devel] [PATCH] ath79: add support for TP-Link Archer C7 v1

2018-08-17 Thread Christian Lamparter
On Friday, August 17, 2018 11:10:59 PM CEST Mathias Kresin wrote: > 17.08.2018 18:36, Christian Lamparter: > > TP-Link Archer C7 v1 is a dual band router > > based on Qualcomm/Atheros QCA9558 + QCA9880. > > > > Specification: > > > > - 720 MHz CPU > > - 128 MB of RAM (Various chips) > > -

Re: [OpenWrt-Devel] [PATCH] ath79: add support for TP-Link Archer C7 v1

2018-08-17 Thread Joel Wirāmu Pauling
Just a question on this particular MiniPCIE; having pulled one of my broken C7's apart (due to shorting 5v on the MCU) and placed the wireless card (which is oversized) into an x86 dev board. I notice that atk10k fails due to missing board.bin ; googling shows that this is some sort of radio

Re: [OpenWrt-Devel] [PATCH] ath79: add support for TP-Link Archer C7 v1

2018-08-17 Thread Mathias Kresin
17.08.2018 18:36, Christian Lamparter: TP-Link Archer C7 v1 is a dual band router based on Qualcomm/Atheros QCA9558 + QCA9880. Specification: - 720 MHz CPU - 128 MB of RAM (Various chips) - 8 MB of FLASH (Various chips) - SoC QCA9558 integrated 3T3R 2.4 GHz Wi-Fi - minipcie slot with

Re: [OpenWrt-Devel] [PATCH v2 2/2] ath79: add support for WD My Net Wi-Fi Range Extender

2018-08-17 Thread Mathias Kresin
Hey Christian, I found something to nitpick about. Find my comments inline. Mathias 17.08.2018 14:06, Christian Lamparter: This patch ports over support for the device from ar71xx. SOC:AR7370 (Wasp - AR9344 rev2 0001974c) RAM:Winbond W9725G6KB-25 32MiB FLASH: Winbond 25Q64FVSIG 8MiB

[OpenWrt-Devel] [PATCH] libevent2: Switch to using release tarball

2018-08-17 Thread Rosen Penev
Starting with version 2.1.8, a release tarball is available. Simplifies the Makefile slightly. Updated the project URL. HTTPS is broken. Issue has been reported upstream Adjusted patches. CMake support is not present in the tarball. It's made for Windows anyway. Signed-off-by: Rosen Penev ---

Re: [OpenWrt-Devel] [PATCH] libevent2: Add missing PKG_MIRROR_HASH

2018-08-17 Thread Rosen Penev
On Fri, Aug 17, 2018 at 12:40 PM Rosen Penev wrote: > > Discovered through make check FIXUP=1 The Makefile is a mess. I found a better solution. > > Signed-off-by: Rosen Penev > --- > package/libs/libevent2/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [OpenWrt-Devel] [PATCH v3 1/2] ramips: fix RBM33G partitioning

2018-08-17 Thread Rafał Miłecki
On 04.08.2018 15:44, Thibaut VARÈNE wrote: This patch improves 5684d087418d176cfdef4e045e1950ca7ba3b09f by correcting the partition scheme for the "RouterBoot" section of the flash. The partition scheme initially submitted is incorrect and does not reflect the actual flash structure. The

Re: [OpenWrt-Devel] [PATCH] [RFC] ath79: ag71xx: apply interface mode to MII0/1_CNTL on ar71xx/ar913x

2018-08-17 Thread Martin Blumenstingl via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- On Thu, Aug 16, 2018 at 5:06 AM

[OpenWrt-Devel] [PATCH] libevent2: Add missing PKG_MIRROR_HASH

2018-08-17 Thread Rosen Penev
Discovered through make check FIXUP=1 Signed-off-by: Rosen Penev --- package/libs/libevent2/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libs/libevent2/Makefile b/package/libs/libevent2/Makefile index 1b1690b..9593259 100644 --- a/package/libs/libevent2/Makefile +++

Re: [OpenWrt-Devel] [PATCH] [RFC] ath79: ag71xx: apply interface mode to MII0/1_CNTL on ar71xx/ar913x

2018-08-17 Thread Martin Blumenstingl via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Hi, On Fri, Aug 17, 2018 at

Re: [OpenWrt-Devel] [PATCH] build: add mkrasimage

2018-08-17 Thread Christian Lamparter
On Thursday, August 16, 2018 12:31:38 PM CEST David Bauer wrote: > On 8/16/18 3:12 AM, Karl Palsson wrote: > > 1) how bad are the portability issues that you felt > > reimplementing in _C_ was the best path? 2) if it's that bad, why > > keep it? How will future people knwo what to use. Either get

[OpenWrt-Devel] [PATCH] ath79: add support for TP-Link Archer C7 v1

2018-08-17 Thread Christian Lamparter
TP-Link Archer C7 v1 is a dual band router based on Qualcomm/Atheros QCA9558 + QCA9880. Specification: - 720 MHz CPU - 128 MB of RAM (Various chips) - 8 MB of FLASH (Various chips) - SoC QCA9558 integrated 3T3R 2.4 GHz Wi-Fi - minipcie slot with 3T3R 5 GHz QCA9880-AR1A (unsupported by

Re: [OpenWrt-Devel] Second RGMII ethernet on MT7621?

2018-08-17 Thread Bjørn Mork
Marek Behun writes: > Will this work with WiTiBoard also? Should I try? :D I assume it will. But how useful it is depends on the board layout. My primary motivation was the RGMII connected Quantenna module, requiring access to the second GMAC. Maybe you'd want to test the driver with the

Re: [OpenWrt-Devel] Second RGMII ethernet on MT7621?

2018-08-17 Thread Marek Behun
Will this work with WiTiBoard also? Should I try? :D On Fri, 17 Aug 2018 14:12:29 +0200 Bjørn Mork wrote: > Bjørn Mork writes: > > > The WiFi extender I am having trouble with (ZyXEL WAP6805 - similar > > to the WAP6806) has an RGMII connected Quantenna 5Ghz module. My > > assumption is that

Re: [OpenWrt-Devel] build: Unset CDPATH to avoid problems

2018-08-17 Thread Langer, Thomas
Hi Maksym, > >export GREP_OPTIONS > > > > + CDPATH= > > + export CDPATH > > May be consider to use 'unset CDPATH' instead of exporting empty var? This is make syntax, unset is not available here. > > >include $(TOPDIR)/include/debug.mk > >include $(TOPDIR)/include/depends.mk

Re: [OpenWrt-Devel] Second RGMII ethernet on MT7621?

2018-08-17 Thread Bjørn Mork
Bjørn Mork writes: > @@ -2184,11 +2197,13 @@ static int mtk_free_dev(struct mtk_eth * > > static int mtk_unreg_dev(struct mtk_eth *eth) > { > + struct mtk_mac *mac; > int i; > > for (i = 0; i < MTK_MAC_COUNT; i++) { > if (!eth->netdev[i]) >

Re: [OpenWrt-Devel] Second RGMII ethernet on MT7621?

2018-08-17 Thread Bjørn Mork
Bjørn Mork writes: > The WiFi extender I am having trouble with (ZyXEL WAP6805 - similar to > the WAP6806) has an RGMII connected Quantenna 5Ghz module. My > assumption is that this module is connected to the RGMII pads on the > MT7621 and that I need support for the second GMAC to get it

[OpenWrt-Devel] [PATCH v2 1/2] ath79: port cybertan_part from ar71xx

2018-08-17 Thread Christian Lamparter
This patch ports the cybertan_part code from ar71xx and converts the driver to a DT-supported mtd parser. As a result, it will no longer add the u-boot, nvram and art partitions, which were never part of the special Cybertan header. Instead these partitions have to be specified in the DT, which

[OpenWrt-Devel] [PATCH v2 2/2] ath79: add support for WD My Net Wi-Fi Range Extender

2018-08-17 Thread Christian Lamparter
This patch ports over support for the device from ar71xx. SOC:AR7370 (Wasp - AR9344 rev2 0001974c) RAM:Winbond W9725G6KB-25 32MiB FLASH: Winbond 25Q64FVSIG 8MiB WLAN: AR9380 Dual-Band 802.11abgn 3x3:3 INPUT: WPS, RESET button (hardware on/off toggle button) LED:Power, LAN, WiFi, 3

Re: [OpenWrt-Devel] build: Unset CDPATH to avoid problems

2018-08-17 Thread Maksym Ruchko
Hi, nitpick inline > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Hauke Mehrtens > Sent: Friday 17 August 2018 11:25 > To: openwrt-devel@lists.openwrt.org > Cc: Hauke Mehrtens ; Thomas Langer > > Subject: [OpenWrt-Devel] build:

[OpenWrt-Devel] build: Unset CDPATH to avoid problems

2018-08-17 Thread Hauke Mehrtens
From: Thomas Langer In some places the output of commands, which include "cd" are used. In case of CDPATH the new path is printed, which might not be expected. Disable the variable to avoid these problem. Signed-off-by: Thomas Langer Signed-off-by: Hauke Mehrtens --- Makefile | 2 ++ 1 file

Re: [OpenWrt-Devel] [PATCH] [RFC] ath79: ag71xx: apply interface mode to MII0/1_CNTL on ar71xx/ar913x

2018-08-17 Thread Jonas Gorski
Hi, On 16 August 2018 at 05:05, Chuanhong Guo wrote: > Signed-off-by: Chuanhong Guo > --- > RFC: > Previous discussion about this patch can be found on GitHub PR#1271. > This patch applies correct interface mode to MII0/1_CNTL register at > 0x1807/ > 0x18070004. But there is a small