openwrt/openwrt.git
14 months agomtd-utils: update to 2.0.2
Syrone Wong [Sat, 24 Mar 2018 00:25:43 +0000 (08:25 +0800)]
mtd-utils: update to 2.0.2

010-fix-rpmatch.patch is upstream, removed from our patchset
The file structure is changed, modify patch accordingly
use CONFIGURE_ARGS to disable tests, xattr and lzo

Compile and run tested on mvebu and x86_64

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
14 months agotools/mtd-utils: update to version 2.0.2
Hauke Mehrtens [Sun, 15 Apr 2018 17:25:17 +0000 (19:25 +0200)]
tools/mtd-utils: update to version 2.0.2

This version now uses autotools to configure the build system. They are
also using the newly added zlib package.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
14 months agotools/mtd-utils: Mark some lzma functions as static
Hauke Mehrtens [Sun, 15 Apr 2018 11:01:16 +0000 (13:01 +0200)]
tools/mtd-utils: Mark some lzma functions as static

These functions are not declared in any header file and only used in
same compile unit, mark them as static to remove one gcc warning and
make it easier for the compiler to optimize them out.

This also fixes some style problems to make this patch match the version
in the packages folder.

This is copied from this commit to the mtd-utils we pack into the image:
56d0dd56e9c6efa79 ("mtd-utils: Mark some lzma functions as static")

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
14 months agotools/zlib: move zlib build to tools
Hauke Mehrtens [Sun, 15 Apr 2018 17:24:02 +0000 (19:24 +0200)]
tools/zlib: move zlib build to tools

This allows us to link the other tools against our libz and we do not
need the system zlib any more.

Only the static linked library is copied to the staging directory so we
have a statically linked library on all systems and not only on Linux.
This also adds the new dependencies of the packages which are depending
on zlib.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
14 months agonetifd: update to latest git HEAD (Coverity fixes)
Hans Dedecker [Fri, 27 Apr 2018 19:34:34 +0000 (21:34 +0200)]
netifd: update to latest git HEAD (Coverity fixes)

56ceced interface-ip: remove superfluous iface check in interface_ip_set_enabled()
4f4a8c0 system-linux: fix strncpy bounds

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
14 months agoarm64: enable harden branch predictor
Mathias Kresin [Thu, 26 Apr 2018 20:25:11 +0000 (22:25 +0200)]
arm64: enable harden branch predictor

Enable the harden branch predictor for arm64 as it is recommend.

Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agokernel: add missing config symbols
Mathias Kresin [Thu, 26 Apr 2018 19:16:12 +0000 (21:16 +0200)]
kernel: add missing config symbols

The harden branch predictor was backported for arm64 with 4.9.92-96.

Fixes: 9aa196e0f260 ("kernel: bump 4.9 to bump 4.9.96")

Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agobuild: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE
Felix Fietkau [Wed, 25 Apr 2018 09:52:20 +0000 (11:52 +0200)]
build: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE

Also work around an issue where git would store the modified workdir in
the submodule git config files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agoscripts/feeds: add support for git feeds with submodules
Felix Fietkau [Wed, 25 Apr 2018 09:31:48 +0000 (11:31 +0200)]
scripts/feeds: add support for git feeds with submodules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agobrcm47xx: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:04 +0000 (09:56 +0200)]
brcm47xx: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agobrcm63xx: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:55:48 +0000 (09:55 +0200)]
brcm63xx: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agobcm53xx: drop linux 4.4 and 4.9 support
Felix Fietkau [Mon, 9 Apr 2018 07:50:23 +0000 (09:50 +0200)]
bcm53xx: drop linux 4.4 and 4.9 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agobrcm2708: Add support for raspberry pi 3 b+.
Christo Nedev [Thu, 26 Apr 2018 16:10:15 +0000 (16:10 +0000)]
brcm2708: Add support for raspberry pi 3 b+.

Signed-off-by: Christo Nedev <christo.nedev@me.com>
14 months agokernel: Fix data corruption on some mips devices.
Rosen Penev [Fri, 27 Apr 2018 00:11:42 +0000 (17:11 -0700)]
kernel: Fix data corruption on some mips devices.

This is mainly a bug fix for multi-core MIPS systems where L1 caches besides the primary do not get flushed.

The most obvious problem is data corruption on SATA and USB devices where read requests are typically larger than the cacheline size.

This may also fix ar71xx systems that suffer from similar data corruption but I have not tested if it does.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
14 months agoiftop: bump to latest
Kevin Darbyshire-Bryant [Sun, 22 Apr 2018 09:19:40 +0000 (09:19 +0000)]
iftop: bump to latest

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.
Choose first running interface, rather than first "up" interface (Redhat #1403025)

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
14 months agoar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Matthias Schiffer [Thu, 26 Apr 2018 18:04:48 +0000 (20:04 +0200)]
ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache

Some Ubiquiti U-boot versions, in particular the "U-Boot 1.1.4.2-s956
(Jun 10 2015 - 10:54:50)" found with AirOS 5.6, do not correctly flush the
caches for the whole kernel address range after decompressing the kernel
image, leading to hard to debug boot failures, depending on kernel version
and configuration.

As a workaround, prepend the relocate-kernels loader, which will invalidate
the caches after moving the kernel to the correct load address.

Reported-by: Andreas Ziegler <dev@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
14 months agoscripts: bundle-libraries: fix build on OS X (FS#1493)
Jo-Philipp Wich [Thu, 26 Apr 2018 14:04:37 +0000 (16:04 +0200)]
scripts: bundle-libraries: fix build on OS X (FS#1493)

This allegedly fixes compilation of the library bundler preload library on
Apple OS X. The resulting executables have not been runtime tested due to a
lack of suitable test hardware.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
14 months agotoolchain/binutils: Remove old patches
Daniel Engberg [Tue, 17 Apr 2018 20:23:11 +0000 (22:23 +0200)]
toolchain/binutils: Remove old patches

Remove patches for arc-2016.09
Commit https://github.com/openwrt/openwrt/commit/8647f4f018e4dee663b65948d75105fae7bb3cdc
made these patches obsolete

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
14 months agotoolchain/binutils: completely remove 2.28 support
Hans Dedecker [Thu, 26 Apr 2018 08:33:31 +0000 (10:33 +0200)]
toolchain/binutils: completely remove 2.28 support

Commit 15e963915963cda515311531b182b9e0c52f35a0 removed support for
binutils version 2.28 but did not remove it as selectable item
from Binutils Version; let's remove this leftover as well.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
14 months agokernel: bump 4.14 to 4.14.36
Koen Vandeputte [Tue, 24 Apr 2018 14:59:36 +0000 (16:59 +0200)]
kernel: bump 4.14 to 4.14.36

Refreshed all patches.

Compile-tested on: cns3xxx, imx6
Runtime-tested on: cns3xxx, imx6

Fixes for CVEs:
CVE-2018-1108
CVE-2018-1092
CVE-2018-1094
CVE-2018-1095

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
14 months agokernel: bump 4.9 to 4.9.96
Kevin Darbyshire-Bryant [Tue, 24 Apr 2018 12:19:43 +0000 (12:19 +0000)]
kernel: bump 4.9 to 4.9.96

Refresh patches, following required reworking:

ar71xx/patches-4.9/930-chipidea-pullup.patch
layerscape/patches-4.9/302-dts-support-layercape.patch
sunxi/patches-4.9/0052-stmmac-form-4-12.patch

Fixes for CVEs:
CVE-2018-1108
CVE-2018-1092

Tested on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Arjen de Korte <build+openwrt@de-korte.org>
14 months agouboot-envtools: add support for ESPRESSObin and MACCHIATObin
Damir Samardzic [Tue, 24 Apr 2018 06:25:21 +0000 (08:25 +0200)]
uboot-envtools: add support for ESPRESSObin and MACCHIATObin

Added for convenience. These boards can be used as dev boards running
various operating systems from different media, and this simplifies work
with U-Boot environment.

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
14 months agomvebu: cortexa72: enable Marvell 10G PHY by default
Damir Samardzic [Mon, 23 Apr 2018 08:11:04 +0000 (10:11 +0200)]
mvebu: cortexa72: enable Marvell 10G PHY by default

This one enables 10 GbE ports on MACCHIATObin.

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
14 months agoramips: fix mt7628 eval board pinmux
Mathias Kresin [Tue, 24 Apr 2018 18:18:48 +0000 (20:18 +0200)]
ramips: fix mt7628 eval board pinmux

There is no pinmux group "jtag" for mt7628 and the pinmux driver fails
to load due to the use of the not existing group.

Fixes: FS#1515

Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agoramips: create image for mt7628 evb board
Mathias Kresin [Mon, 23 Apr 2018 17:36:02 +0000 (19:36 +0200)]
ramips: create image for mt7628 evb board

The image for the EVB board got lost with the merge of the mt7628 and
mt7688 subtargets.

Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agofirmware-utils: tplink-safeloader: increase RE350 kernel size
Alex Maclean [Mon, 23 Apr 2018 17:36:54 +0000 (18:36 +0100)]
firmware-utils: tplink-safeloader: increase RE350 kernel size

4.14 increased kernel size, so grow the kernel partition by 128K to compensate.

Fixes FS#1479.

Signed-off-by: Alex Maclean <monkeh@monkeh.net>
14 months agoramips: use patch-dtb for F5D8235 V1
Tobias Wolf [Sun, 22 Apr 2018 17:34:57 +0000 (19:34 +0200)]
ramips: use patch-dtb for F5D8235 V1

The old DTB method (OWRTDTB) is not recognized by the boot process
anymore with 4.9/4.14.

This patch reuses KERNEL_DTB to get a valid DTB applied to the kernel
image.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
14 months agokernel: fix usb interface on 3G dwm-158 modem
Giuseppe Lippolis [Fri, 20 Apr 2018 17:00:33 +0000 (19:00 +0200)]
kernel: fix usb interface on 3G dwm-158 modem

The current option driver binds to the usb interface 2,3,4,5.
But the interface 4 and 5 doesn't answer to the AT commands.
On the new openwrt configuration the wwan script select the 5th
interface as control interface, failing to establish the
3G connection.

Backport the fix for the problem.

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
14 months agoipq40xx: add support for OpenMesh A62
Sven Eckelmann [Wed, 9 Aug 2017 11:52:07 +0000 (13:52 +0200)]
ipq40xx: add support for OpenMesh A62

* QCA IPQ4019
* 256 MB of RAM
* 32 MB of SPI NOR flash (s25fl256s1)
  - 2x 15 MB available; but one of the 15 MB regions is the recovery image
* 2T2R 2.4 GHz
  - QCA4019 hw1.0 (SoC)
  - requires special BDF in QCA4019/hw1.0/board-2.bin with
    bus=ahb,bmi-chip-id=0,bmi-board-id=20,variant=OM-A62
* 2T2R 5 GHz (channel 36-64)
  - QCA9888 hw2.0 (PCI)
  - requires special BDF in QCA9888/hw2.0/board-2.bin
    bus=pci,bmi-chip-id=0,bmi-board-id=16,variant=OM-A62
* 2T2R 5 GHz (channel 100-165)
  - QCA4019 hw1.0 (SoC)
  - requires special BDF in QCA4019/hw1.0/board-2.bin with
    bus=ahb,bmi-chip-id=0,bmi-board-id=21,variant=OM-A62
* multi-color LED (controlled via red/green/blue GPIOs)
* 1x button (reset; kmod-input-gpio-keys compatible)
* external watchdog
  - triggered GPIO
* 1x USB (xHCI)
* TTL pins are on board (arrow points to VCC, then follows: GND, TX, RX)
* 2x gigabit ethernet
  - phy@mdio3:
    + Label: Ethernet 1
    + gmac0 (ethaddr) in original firmware
    + 802.3at POE+
  - phy@mdio4:
    + Label: Ethernet 2
    + gmac1 (eth1addr) in original firmware
    + 18-24V passive POE (mode B)
* powered only via POE

The tool ap51-flash (https://github.com/ap51-flash/ap51-flash) should be
used to transfer the factory image to the u-boot when the device boots up.

The initramfs image can be started using

  setenv bootargs 'loglevel=8 earlycon=msm_serial_dm,0x78af000 console=ttyMSM0,115200 mtdparts=spi0.0:256k(0:SBL1),128k(0:MIBIB),384k(0:QSEE),64k(0:CDT),64k(0:DDRPARAMS),64k(0:APPSBLENV),512k(0:APPSBL),64k(0:ART),64k(0:custom),64k(0:KEYS),15552k(inactive),15552k(inactive2)'
  tftpboot 0x84000000 openwrt-ipq40xx-openmesh_a62-initramfs-fit-uImage.itb
  set fdt_high 0x85000000
  bootm 0x84000000

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
14 months agoipq40xx: fix gpio-hog related boot issues
Sven Eckelmann [Mon, 16 Apr 2018 11:51:15 +0000 (13:51 +0200)]
ipq40xx: fix gpio-hog related boot issues

The pinctrl initialization fails with the MSM pinctrl code and gpio-hogs
because either the gpio ranges are not yet initialized (missing gpio-range
in DT) or that the msm driver unconditionally tries to re-initializes the
ranges (gpio-range in DT).

To allow gpio-hogs and similar early-boot gpio code, the gpio-ranges must
be in the device tree and the pinctrl-msm code must check whether the range
was already initialized by the DT.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
[drop changes to unrelated dtsi files, refresh patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agoipq-wifi: drop custom board-2.bins
Sven Eckelmann [Thu, 19 Apr 2018 07:12:22 +0000 (09:12 +0200)]
ipq-wifi: drop custom board-2.bins

The BDFs for all boards were upstreamed to the ath10k-firmware
repository and are now part of ath10k-firmware 2018-04-19.

We switched to the upstream board-2.bin, hence the files can be removed
here.

Keep the ipq-wifi package in case new boards are added. It might take
some time till board-2.bins send upstream are merged.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
14 months agoipq40xx: use upstream board-2.bin
Sven Eckelmann [Thu, 19 Apr 2018 07:12:22 +0000 (09:12 +0200)]
ipq40xx: use upstream board-2.bin

The BDFs for all boards were upstreamed to the ath10k-firmware
repository and are now part of ath10k-firmware 2018-04-19.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
14 months agofirmware: ath10k-firmware: update to 2018-04-19
Sven Eckelmann [Thu, 19 Apr 2018 06:59:48 +0000 (08:59 +0200)]
firmware: ath10k-firmware: update to 2018-04-19

* introduces the BDFs in /lib/firmware/ath10k/QCA4019/hw1.0/board-2.bin
  for:
  - 8devices Jalapeno
  - Asus RT-AC58U
  - AVM FRITZ!Box 4040
  - GL.iNet GL-B1300
  - Meraki MR33
  - Netgear EX6100v2
  - Netgear EX6150v2
  - OpenMesh A62
* introduces the BDFs in /lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
  - OpenMesh A62
* adds new firmware for QCA6174 hw3.0
  - firmware-6.bin_RM.4.4.1.c1-00038-QCARMSWP-1
  - firmware-6.bin_RM.4.4.1.c1-00041-QCARMSWP-1
* various undocumented BDF updates to:
  - QCA4019 hw1.0:
    + bus=ahb,bmi-chip-id=0,bmi-board-id=16
    + bus=ahb,bmi-chip-id=0,bmi-board-id=17
    + bus=ahb,bmi-chip-id=0,bmi-board-id=19
    + bus=ahb,bmi-chip-id=0,bmi-board-id=20
    + bus=ahb,bmi-chip-id=0,bmi-board-id=21
    + bus=ahb,bmi-chip-id=0,bmi-board-id=29
    + bus=ahb,bmi-chip-id=0,bmi-board-id=30
  - QCA9888 hw2.0:
    + bus=pci,bmi-chip-id=0,bmi-board-id=16
    + bus=pci,bmi-chip-id=0,bmi-board-id=17
    + bus=pci,bmi-chip-id=0,bmi-board-id=18
    + bus=pci,bmi-chip-id=0,bmi-board-id=23
    + bus=pci,bmi-chip-id=0,bmi-board-id=24
    + bus=pci,bmi-chip-id=0,bmi-board-id=25
  - QCA9984 hw1.0:
    + bus=pci,bmi-chip-id=0,bmi-board-id=1
    + bus=pci,bmi-chip-id=0,bmi-board-id=3
    + bus=pci,bmi-chip-id=0,bmi-board-id=5
    + bus=pci,bmi-chip-id=0,bmi-board-id=6
    + bus=pci,bmi-chip-id=0,bmi-board-id=7
    + bus=pci,bmi-chip-id=0,bmi-board-id=8

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
14 months agoodhcpd: update to latest git HEAD
Hans Dedecker [Mon, 23 Apr 2018 19:39:16 +0000 (21:39 +0200)]
odhcpd: update to latest git HEAD

4136529 dhcpv6-ia: keep tentative assignments alive for a short time
200cc8f dhcpv6-ia: make assignment lookup more strict

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
14 months agobrcm47xx: backport upstream patches for Netgear WNR1000 V3
Rafał Miłecki [Mon, 23 Apr 2018 11:33:09 +0000 (13:33 +0200)]
brcm47xx: backport upstream patches for Netgear WNR1000 V3

This includes fix for reading NVRAM content.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 months agomac80211: update patch to read ath10k variant from DT
Thomas Hebb [Fri, 12 Jan 2018 20:59:25 +0000 (15:59 -0500)]
mac80211: update patch to read ath10k variant from DT

This patch was revised upstream before being merged, and OpenWrt's copy
was never updated to reflect the revision.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
[refreshed patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agoipq40xx: ex61x0v2: Disable unused GMACs
Thomas Hebb [Thu, 19 Apr 2018 18:34:56 +0000 (14:34 -0400)]
ipq40xx: ex61x0v2: Disable unused GMACs

These devices have only one ethernet port. It doesn't make sense to
expose the unused GMACs as separate network devices.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
14 months agoipq40xx: Move reserved-memory DT to qcom-ipq4019.dtsi
Sven Eckelmann [Wed, 18 Apr 2018 07:48:51 +0000 (09:48 +0200)]
ipq40xx: Move reserved-memory DT to qcom-ipq4019.dtsi

The tz and smem reserved-memory information handled in the upstream Linux
sources by the SoC specific dtsi and not by the the boards dts. Using the
same approach in OpenWrt avoids unneccessary duplication.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
14 months agoipq40xx: Remove unused reserved-memory nodes
Sven Eckelmann [Tue, 17 Apr 2018 12:31:53 +0000 (14:31 +0200)]
ipq40xx: Remove unused reserved-memory nodes

The reserved-memory regions are mostly undocumented by QCA and are named
very unspecific in the QSDK device trees. It was tried to clean them up by
commit 71ed9f10a33e ("ipq40xx: Use detailed reserved memory for A42") and
similar changes.

The features which require these regions were mostly unknown but
Senthilkumar N L <snlakshm@qti.qualcomm.com> and Sricharan Ramabadhran
<srichara@qti.qualcomm.com> provided some more insight in some of them:

* crash dump feature
  - a couple of regions used when 'qca,scm_restart_reason' dt node has the
    value 'dload_status' not set to 1
    + apps_bl <0x87000000 0x400000>
    + sbl <0x87400000 0x100000>
    + cnss_debug <0x87400000 0x100000>
    + cpu_context_dump <0x87b00000 0x080000>
  - required driver not available in Linux
  - safe to remove
* QSEE app execution
  - region tz_apps <0x87b80000 0x280000>
  - required driver not available in Linux
  - safe to remove
* communication with TZ/QSEE
  - region smem <0x87b80000 0x280000>
  - driver changes not yet upstreamed
  - must not be removed because any access can crash kernel/program
* trustzone (QSEE) private memory
  - region tz <0x87e80000 0x180000>
  - must not be removed because any access can crash kernel/program

Removing the unnecessary regions saves some kilobyte of reserved-memory and
cleans up the device tree:

* 2560 KiB
  - 8devices Jalapeno
  - AVM FRITZ!Box 4040
  - Compex WPJ428
  - Meraki MR33 Access Point
  - OpenMesh A42
* 14336 KiB
  - GL.iNet GL-B1300
  - Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
14 months agobuild: consolidate fake uImage header build commands
Mathias Kresin [Fri, 20 Apr 2018 04:30:46 +0000 (06:30 +0200)]
build: consolidate fake uImage header build commands

Merge the two existing functions and use a parameter for the type
header field.

It updates the syntax of the former mpc85xx fake ramdisk header
command to be compatible with mkimage from u-boot 2018.03 and fixes the
build error spotted by the build bot.

Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agowireguard: bump to 20180420
Kevin Darbyshire-Bryant [Fri, 20 Apr 2018 10:14:29 +0000 (10:14 +0000)]
wireguard: bump to 20180420

7cc2668 version: bump snapshot
860c7c7 poly1305: do not place constants in different sections
5f1e4ca compat: remove unused dev_recursion_level backport
7e4b991 blake2s: remove unused helper
13225fc send: simplify skb_padding with nice macro
a1525bf send: account for route-based MTU
bbb2fde wg-quick: account for specified fwmark in auto routing mode
c452105 qemu: bump default version
dbe5223 version: bump snapshot
1d3ef31 chacha20poly1305: put magic constant behind macro
cdc164c chacha20poly1305: add self tests from wycheproof
1060e54 curve25519: add self tests from wycheproof
0e1e127 wg-quick.8: fix typo
2b06b8e curve25519: precomp const correctness
8102664 curve25519: memzero in batches
1f54c43 curve25519: use cmov instead of xor for cswap
fa5326f curve25519: use precomp implementation instead of sandy2x
9b19328 compat: support OpenSUSE 15
3102d28 compat: silence warning on frankenkernels
8f64c61 compat: stable kernels are now receiving b87b619
62127f9 wg-quick: hide errors on save

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
14 months agohostapd: fix encrypted mesh channel settings
Daniel Golle [Fri, 20 Apr 2018 05:41:03 +0000 (07:41 +0200)]
hostapd: fix encrypted mesh channel settings

Import two patches from Peter Oh to allow setting channel
bandwidth in the way it already works for managed interfaces.
This fixes mesh interfaces on 802.11ac devices always coming up in
VHT80 mode.

Add a patch to allow HT40 also on 2.4GHz if noscan option is set, which
also skips secondary channel scan just like noscan works in AP mode.

This time also make sure to add all files to the patch before
committing it...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 months agorpcd: update to latest HEAD
Jo-Philipp Wich [Fri, 20 Apr 2018 12:01:32 +0000 (14:01 +0200)]
rpcd: update to latest HEAD

6994c87 uci: fix session delta isolation
f0f6f81 session: remove redundant key attribute to rpc_session_set()
3d400c7 session: support reclaiming pending apply session
eb09f3a session: ignore non-string username attribute upon restore
edd37f8 uci: add rpc_uci_replace_savedir() helper
2423162 uci: switch to proper save directory on apply/rollback
66a9bad uci: fix memory leak in rpc_uci_apply_timeout()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
14 months agobuild: pass HOSTCXX to host builds as CXX
Felix Fietkau [Fri, 20 Apr 2018 11:04:41 +0000 (13:04 +0200)]
build: pass HOSTCXX to host builds as CXX

Fixes cmake build on some systems that also have an older clang++

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agoRevert "hostapd: fix encrypted mesh channel settings"
Felix Fietkau [Fri, 20 Apr 2018 08:35:51 +0000 (10:35 +0200)]
Revert "hostapd: fix encrypted mesh channel settings"

This reverts commit 7f52919a2f2894125b4dca611eb2d30181af7e0b, which is
currently breaking the builds and needs to be reworked

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agomtd: fix erase handling with partition offset on write
Felix Fietkau [Fri, 20 Apr 2018 08:02:28 +0000 (10:02 +0200)]
mtd: fix erase handling with partition offset on write

When a partition offset is given, it is used in an lseek call, which
affects write, but not erase. Add it to the offset for erase calls as
well

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agouboot-envtools: remove makefile duplication for supported targets
Felix Fietkau [Thu, 19 Apr 2018 14:26:39 +0000 (16:26 +0200)]
uboot-envtools: remove makefile duplication for supported targets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agomediatek: disable ubifs
Felix Fietkau [Thu, 19 Apr 2018 13:37:59 +0000 (15:37 +0200)]
mediatek: disable ubifs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agomediatek: remove 4.9 kernel config
Felix Fietkau [Thu, 19 Apr 2018 13:37:22 +0000 (15:37 +0200)]
mediatek: remove 4.9 kernel config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agohostapd: fix encrypted mesh channel settings
Daniel Golle [Fri, 20 Apr 2018 05:41:03 +0000 (07:41 +0200)]
hostapd: fix encrypted mesh channel settings

Import two patches from Peter Oh to allow setting channel
bandwidth in the way it already works for managed interfaces.
This fixes mesh interfaces on 802.11ac devices always coming up in
VHT80 mode.

Add a patch to allow HT40 also on 2.4GHz if noscan option is set, which
also skips secondary channel scan just like noscan works in AP mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 months agomac80211: pass down noscan to wpa_supplicant
Daniel Golle [Fri, 20 Apr 2018 05:39:10 +0000 (07:39 +0200)]
mac80211: pass down noscan to wpa_supplicant

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 months agonetifd: update to latest git HEAD
Daniel Golle [Fri, 20 Apr 2018 05:36:36 +0000 (07:36 +0200)]
netifd: update to latest git HEAD

b3dca7b wireless: include noscan option in common wdev vars

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 months agobuild: fix uImage fake header command
Mathias Kresin [Thu, 19 Apr 2018 17:09:11 +0000 (19:09 +0200)]
build: fix uImage fake header command

Use a syntax compatible with mkimage from u-boot 2018.03 to fix the
build errors spotted by the build bot.

The images are binary identical to the ones generated with mkimage from
u-boot 2014.10.

Signed-off-by: Mathias Kresin <dev@kresin.me>
14 months agoodhcpd: update to latest git HEAD (FS#1457)
Hans Dedecker [Thu, 19 Apr 2018 13:30:37 +0000 (15:30 +0200)]
odhcpd: update to latest git HEAD (FS#1457)

dcfc06a router: fix managed address configuration setting

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
14 months agomac80211: join 5GHz checks
Leon M. George [Wed, 10 Jan 2018 16:20:22 +0000 (17:20 +0100)]
mac80211: join 5GHz checks

Before this commit, devices supporting both 2.4GHz and 5GHz would be
configured for 2.4GHz by default - unless they have VHT capabilities.

With this commit, channel 36 is only set when the frequency is supported.
VHT isn't checked unless that is the case.

Signed-off-by: Leon M. George <leon@georgemail.eu>
14 months agotoolchain/glibc: unset LD_LIBRARY_PATH
Hyeonsik Song [Mon, 5 Mar 2018 07:57:45 +0000 (16:57 +0900)]
toolchain/glibc: unset LD_LIBRARY_PATH

Fix build error when use glibc

Signed-off-by: Hyeonsik Song <blogcin@naver.com>
14 months agonetwork/uqmi: pipe the output off qmi_wds_stop to /dev/null
Florian Eckert [Fri, 8 Sep 2017 11:11:07 +0000 (13:11 +0200)]
network/uqmi: pipe the output off qmi_wds_stop to /dev/null

Pipe uqmi output from qmi_wds_stop function into /dev/null.
This will supress the following output in proto teardown.

netifd: wwan (x): "No effect"
netifd: wwan (x): Command failed: Permission denied

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
14 months agoorion: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:38 +0000 (09:56 +0200)]
orion: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agoomap: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:21 +0000 (09:56 +0200)]
omap: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agomvebu: drop linux 4.4 and 4.9 support
Felix Fietkau [Mon, 9 Apr 2018 07:49:44 +0000 (09:49 +0200)]
mvebu: drop linux 4.4 and 4.9 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agotools: mkimage: provide dtc path during build
Jo-Philipp Wich [Thu, 19 Apr 2018 06:26:15 +0000 (08:26 +0200)]
tools: mkimage: provide dtc path during build

The new mkimage version requires a CONFIG_MKIMAGE_DTC_PATH variable to be
provided during build, in order to hardcode a path to a suitable DT
compiler executable.

Failure to do so will result in stray "sh: 1: -I: not found" errors when
invoking mkimage for FIT image generation.

Fix the issue by supplying "dtc" as CONFIG_MKIMAGE_DTC_PATH value during
build. As we intend our host utilities to be relocatable and since we're
already overriding PATH when invoking mkimage, an absolute path is not
required.

Fixes: b13e981d72 ("tools/mkimage: update to version 2018.03")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
14 months agopackage/utils/lua: cleanup source mirrors
Paul Wassi [Sun, 1 Apr 2018 16:18:18 +0000 (18:18 +0200)]
package/utils/lua: cleanup source mirrors

Remove inactive mirrors from the sources list.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
14 months agotools/mkimage: update to version 2018.03
Hauke Mehrtens [Sat, 14 Apr 2018 21:00:12 +0000 (23:00 +0200)]
tools/mkimage: update to version 2018.03

This activates support for fit images and some other new mkimage
features. Some of the patches were applied upstream and could be
removed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 months agouboot-envtools: update to 2018.03
Luis Araneda [Fri, 6 Apr 2018 14:23:34 +0000 (11:23 -0300)]
uboot-envtools: update to 2018.03

Several changes has been made:

+ AES support has been removed by
  upstream commit c6831c7 (2017-11-14)
  [remove patch "200-fw_env_no_aes.patch"]

+ Support for UBI volumes has beed added by
  upstream commit 34255b9 (2017-11-15)
  [remove patch "300-support-env-in-ubivol-chardev.patch"]

+ A command line argument has beed added ("-c") to manually indicate
  the location of the environment configuration file

Also, patch "400-u-boot-2015.10-stdint.patch" is no longer
necessary, and the config option to enable UBI support has
been removed.

Size comparisons:

fw_printenv size:
Target    Before         After
ar71xx    15,189 bytes   18,133 bytes (+2,944 bytes)
ipq40xx   20,873 bytes   20,987 bytes (+114 bytes)
mvebu     20,881 bytes   20,991 bytes (+110 bytes)
ramips    15,128 bytes   18,072 bytes (+2,944 bytes)

OPKG package size:
Target    Before         After
ar71xx    11,309 bytes   12,875 bytes (+1,566 bytes)
ipq40xx   11,772 bytes   13,299 bytes (+1,527 bytes)
mvebu     11,609 bytes   13,114 bytes (+1,505 bytes)
ramips    10,975 bytes   12,503 bytes (+1,528 bytes)

Compile tested: ipq40xx (musl, glibc, gcc5-musl), ar71xx, mvebu, ramips
Run tested: ipq40xx (ASUS RT-AC58U)

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
14 months agoustream-ssl: px5g: Rebuild package
Hauke Mehrtens [Sat, 14 Apr 2018 12:33:46 +0000 (14:33 +0200)]
ustream-ssl: px5g: Rebuild package

mbedtls changed in version 2.7.0 the soversion of the libmbedcrypto.so
library, all applications using this shared library have to be
recompiled to be able to load the new library.

Some binaries got rebuild to for the 2.7.0 release and are now using
libmbedcrypto.so.1, the older ones are still using libmbedcrypto.so.0.

Fixes: 75c5ab4ca ("mbedtls: update to version 2.7.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 months agomwlwifi: update to version 10.3.4.0-2018-03-30
Kabuli Chana [Fri, 30 Mar 2018 16:35:47 +0000 (10:35 -0600)]
mwlwifi: update to version 10.3.4.0-2018-03-30

Upgrade 88W8964 firmware to 9.3.2.6

Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
14 months agomac80211: ipw2200-fw: fix download mirror(s)
Stefan Lippers-Hollmann [Tue, 10 Apr 2018 20:24:27 +0000 (22:24 +0200)]
mac80211: ipw2200-fw: fix download mirror(s)

bughost.org hasn't existed for 6-8 years, add a couple of current
mirrors to avoid the fallback to http://mirror2.openwrt.org/sources/.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
14 months agomac80211: ipw2100-fw: fix download mirror(s)
Stefan Lippers-Hollmann [Tue, 10 Apr 2018 20:20:49 +0000 (22:20 +0200)]
mac80211: ipw2100-fw: fix download mirror(s)

bughost.org hasn't existed for 6-8 years, add a couple of current
mirrors to avoid the fallback to http://mirror2.openwrt.org/sources/.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
14 months agoath10k-ct: make it depend on PCI support again
Hauke Mehrtens [Sun, 15 Apr 2018 10:47:43 +0000 (12:47 +0200)]
ath10k-ct: make it depend on PCI support again

The missing dependency causes build problems on systems without PCI
support.
The ath10k_pci kernel module depends on PCI support so this dependency
should be added. ath10k now also supported the ahb interface on the
IPQ4019 SoC, but this SoC also has PCI support so this extra dependency
is not as problem.

Fixes: d0f3dd5b9f34176 ("ath10k-ct: update to latest version, enable AHB.")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 months agomac80211: ath10k: Suppress "Unknown eventid: 36925" warnings
Stefan Lippers-Hollmann [Tue, 27 Mar 2018 00:32:08 +0000 (02:32 +0200)]
mac80211: ath10k: Suppress "Unknown eventid: 36925" warnings

Merge upstream patch from Sathishkumar Muruganandam
<murugana@codeaurora.org> for OpenWrt's backports package:
https://lkml.kernel.org/r/<1522049641-19521-1-git-send-email-murugana@codeaurora.org>
Commit-ID: 606204bb863fa3b0bb54929d79b4dc46338f9180

* FW has Smart Logging feature enabled by default for detecting failures
* and processing FATAL_CONDITION_EVENTID (36925 - 0x903D) back to host.
*
* Since ath10k doesn't implement the Smart Logging and FATAL CONDITION
* EVENT processing yet, suppressing the unknown event ID warning by moving
* this under ATH10K_DBG_WMI.
*
* Simulated the same issue by having associated STA powered off when
* ping flood was running from AP backbone. This triggerd STA KICKOUT
* in AP followed by FATAL CONDITION event 36925.
*
* Issue was reproduced and verified in below DUT
* ------------------------------------------------
* AP mode of OpenWRT QCA9984 running 6.0.8 with FW ver 10.4-3.5.3-00053
*
* Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
14 months agomac80211: Fix loading of rsi_sdio module
Hauke Mehrtens [Wed, 18 Apr 2018 21:50:25 +0000 (23:50 +0200)]
mac80211: Fix loading of rsi_sdio module

When CONFIG_PM was not set rsi_sdio_reinit_device() was not compiled
into the driver but referenced.
This is a backport form the mainline Linux kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 months agomac80211: add RedPine RS9113 module support
Evgeniy Didin [Wed, 4 Apr 2018 10:52:24 +0000 (13:52 +0300)]
mac80211: add RedPine RS9113 module support

RedPine RS9113 wireless module requires rsi91x driver to be built
and linux-firmware/rsi/rs9113_wlan_qspi.rps to be installed.
Also we add patch for successful compilation of rsi91x driver.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: John Crispin <john@phrozen.org>
14 months agohostapd: mesh: make forwarding configurable
Daniel Golle [Wed, 18 Apr 2018 20:08:21 +0000 (22:08 +0200)]
hostapd: mesh: make forwarding configurable

For unencrypted mesh networks our scripts take care of setting
the various mesh_param values. wpa_supplicant changes somes of them
when being used for SAE encrypted mesh and previously didn't allow
configuring any of them. Add support for setting mesh_fwding (which
has to be set to 0 when using other routing protocols on top of
802.11s) and update our script to pass the value to wpa_supplicant.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 months agoRevert "mac80211: pass hostapd control socket to mesh-mode supplicant"
Daniel Golle [Wed, 18 Apr 2018 15:52:51 +0000 (17:52 +0200)]
Revert "mac80211: pass hostapd control socket to mesh-mode supplicant"

This reverts commit 1356a66f94f31e636fafec514a1c658356ef51b3.
The change breaks wpa_supplicant.conf generation, more work is needed
to fix mesh+AP.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 months agomt76: update to the latest version
Felix Fietkau [Wed, 18 Apr 2018 10:19:30 +0000 (12:19 +0200)]
mt76: update to the latest version

ec8435e mt76: initialize rx lock earlier
e08d5da mt76x2: fix is_mt7612 routine
e2eedc9 mt7603: retry PSE reset calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agokernel: fix an issue with infinite stack traces on MIPS
Felix Fietkau [Wed, 18 Apr 2018 09:21:01 +0000 (11:21 +0200)]
kernel: fix an issue with infinite stack traces on MIPS

Reproduced by enabling lockdep on MT7621

Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 months agokernel: disable accept_ra by default
Matthias Schiffer [Thu, 12 Apr 2018 20:14:56 +0000 (22:14 +0200)]
kernel: disable accept_ra by default

Our commands setting accept_ra to 0 on all interfaces got lost in the
transition to procd. This remained unnoticed for a long time, as we also
enable forwarding on all interfaces, which prevents RA handling by default.

Restore the commands, while also fixing a possible race condition in the
old version.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agomt76: update to the latest version
Felix Fietkau [Tue, 17 Apr 2018 13:02:27 +0000 (15:02 +0200)]
mt76: update to the latest version

ea6dd6f mt7603: add missing spin lock init
2d08440 mt76: add rcu locking around tx scheduling
8c92c91 mt7603: turn vif wcid entry back into a full mt7603_sta
ca5cc9a mt76: fix concurrent rx calls on A-MPDU release

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agomediatek: enable ramdisk support by default
Felix Fietkau [Tue, 17 Apr 2018 11:47:54 +0000 (13:47 +0200)]
mediatek: enable ramdisk support by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agomediatek: fix target FPU settings
Felix Fietkau [Tue, 17 Apr 2018 11:43:06 +0000 (13:43 +0200)]
mediatek: fix target FPU settings

This reverts commit 5555545494c876adedf4f0038db49c1d85527e78.
The target supports both NEON and VFPv4, but for this to work properly,
a few more changes are needed:
- enable NEON support in the kernel config
- add the fpu feature flag to the makefile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agobase-files: /lib/functions.sh: remove unused insert_modules
Matthias Schiffer [Tue, 17 Apr 2018 09:30:59 +0000 (11:30 +0200)]
base-files: /lib/functions.sh: remove unused insert_modules

insert_modules has been unused since r5279.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agoramips: fix locking issues in the ethernet driver
Felix Fietkau [Sun, 15 Apr 2018 17:24:42 +0000 (19:24 +0200)]
ramips: fix locking issues in the ethernet driver

The stats update needs to protect against being interrupted by a tasklet
The u64 stats seqlock needs to be initialized

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agoramips: mt7620: fix double use of pins
Mathias Kresin [Tue, 17 Apr 2018 06:20:42 +0000 (08:20 +0200)]
ramips: mt7620: fix double use of pins

The pins are used as (LED) GPIOs and can't be used at the same time as
hardware controlled ephy (LED) pins.

Fixes: FS#1500

Signed-off-by: Mathias Kresin <dev@kresin.me>
15 months agocurl: Deprecate idn(1) support and switch to xz tarball
Daniel Engberg [Sun, 15 Apr 2018 08:01:31 +0000 (10:01 +0200)]
curl: Deprecate idn(1) support and switch to xz tarball

libidn(1) is deprecated, add libidn2 support
Switch to xz tarball (smaller size)

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
15 months agofstools: update to latest master branch
Rafał Miłecki [Mon, 16 Apr 2018 17:46:35 +0000 (19:46 +0200)]
fstools: update to latest master branch

e243683 libfstools: move mount points when switching to JFFS2
3782b59 libfstools: add "const" to char pointer arguments in mount_move()
79721f0 libfstools: fix foreachdir() to pass dir with a trailing slash

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
15 months agonetifd: update to latest git HEAD (coverity fixes)
Hans Dedecker [Mon, 16 Apr 2018 11:08:44 +0000 (13:08 +0200)]
netifd: update to latest git HEAD (coverity fixes)

513eb27 system-linux: check ioctl return value in system_vlan()
df1625d system-linux: check ioctl return value in system_if_flags()
209c508 system-linux: fix segfault on alloc failure in system_if_check()
4a8e20e system-linux: fix segfault on error in system_add_ip6_tunnel()
36e4700 handler: fix resource leak on error in netifd_init_script_handlers()
86a0e7c system-linux: remove unnecessary open call in system_if_dump_info()
1e2cf67 system-linux: fix memory leak on error in system_add_vxlan()

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
15 months agokernel: bump 4.14 to 4.14.34
Stijn Tintel [Sun, 15 Apr 2018 21:00:49 +0000 (00:00 +0300)]
kernel: bump 4.14 to 4.14.34

Refresh patches.
Update patches that no longer apply:
- backport/313-netfilter-remove-defensive-check-on-malformed-packet.patch
- pending/642-net-8021q-support-hardware-flow-table-offload.patch

Compile-tested: x86/64.
Runtime-tested: x86/64.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
15 months agolldpd: bump to 1.0.1
Stijn Tintel [Sun, 15 Apr 2018 18:41:11 +0000 (21:41 +0300)]
lldpd: bump to 1.0.1

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
15 months agonghttp2: bump to 1.31.1
Hans Dedecker [Sun, 15 Apr 2018 18:10:56 +0000 (20:10 +0200)]
nghttp2: bump to 1.31.1

1e22b36c Update manual pages
0f818baf Bump up version number to 1.31.1
c411d169 Fix frame handling

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
15 months agomt76: update to the latest version
Felix Fietkau [Sun, 15 Apr 2018 08:21:53 +0000 (10:21 +0200)]
mt76: update to the latest version

1d23142 mt76: add led active low to debugfs
549f43b mt7603: ensure that the ACK flag is set for A-MPDUs with any acked subframe
df9f9f6 mt7603: always try tx rate1 first
9c52f36 mt7603: pull the final rate index from the status descriptor
f36f308 mt7603: improve validation of rx frames
9a23989 mt7603: remove warning on rx with invalid channel info
7a31731 mt76: check for pending reset before attempting to schedule tx
873a7c9 mt7603: call mt76_txq_schedule_all as a barrier to prevent tx during reset
d9e5da3 mt76: add rcu locking in tid reorder function
a8e8921 mt7603: add more checks to avoid dereferencing invalid pointers in wcid lookup

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agoramips: remove broken and bogus spinlock in the SPI driver
Felix Fietkau [Sat, 14 Apr 2018 17:52:36 +0000 (19:52 +0200)]
ramips: remove broken and bogus spinlock in the SPI driver

Based on patch by Neil Brown

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agoramips: add missing unlock in fe_phy_link_adjust
Felix Fietkau [Sat, 14 Apr 2018 17:48:58 +0000 (19:48 +0200)]
ramips: add missing unlock in fe_phy_link_adjust

Based on patch by Neil Brown

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agobase-files: remove /etc/sysctl.d/ from conffiles
Matthias Schiffer [Fri, 13 Apr 2018 12:36:43 +0000 (14:36 +0200)]
base-files: remove /etc/sysctl.d/ from conffiles

Let's use /etc/sysctl.d for package-provided snippets and leave
/etc/sysctl.conf to the admin. Don't backup /etc/sysctl.d on upgrades, so
old defaults get replaced properly.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agoramips: fix usb phy compatible string (should fix FS#1489)
Felix Fietkau [Fri, 13 Apr 2018 11:13:20 +0000 (13:13 +0200)]
ramips: fix usb phy compatible string (should fix FS#1489)

In the new USB phy driver, it checks the compatible string before
attempting to iomap its mem resource and do the extra PHY init

Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 months agobase-files: move netfilter sysctl defaults to specific kmod packages
Matthias Schiffer [Thu, 12 Apr 2018 15:57:44 +0000 (17:57 +0200)]
base-files: move netfilter sysctl defaults to specific kmod packages

Avoid warnings when applying settings for uninstalled kmods. See also
FS#1073.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agobase-files: move sysctl defaults to /etc/sysctl.d/10-default.conf
Matthias Schiffer [Thu, 12 Apr 2018 15:37:29 +0000 (17:37 +0200)]
base-files: move sysctl defaults to /etc/sysctl.d/10-default.conf

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agobase-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf
Matthias Schiffer [Thu, 12 Apr 2018 15:33:51 +0000 (17:33 +0200)]
base-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf

We can use /etc/sysctl.d/* for package-supplied sysctl snippets, giving
admins the option to use /etc/sysctl.conf to override settings.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agobase-files: remove /etc/uci-defaults/11_migrate-sysctl
Matthias Schiffer [Thu, 12 Apr 2018 15:30:16 +0000 (17:30 +0200)]
base-files: remove /etc/uci-defaults/11_migrate-sysctl

11_migrate-sysctl has not been updated with new file hashes since 2012.
Let's get rid of it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
15 months agoapm821xx: Force Ethernet PHYID on MX60/MX60W
Christian Lamparter [Tue, 10 Apr 2018 15:59:42 +0000 (10:59 -0500)]
apm821xx: Force Ethernet PHYID on MX60/MX60W

The MX60's uboot disables all the PHYs before starting linux.
This causes the PHY/switch detection code to malfunction
almost all of the time. To get around this, set a compatible
flag to force PHYID.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
15 months agoath10k-ct: Update firmware
Ben Greear [Thu, 12 Apr 2018 18:13:55 +0000 (11:13 -0700)]
ath10k-ct: Update firmware

This firmware has only small changes from the last commit, but
it does have an important fix for at least some PTK rekey logic.

The old firmware would have issues if the driver managed to set
a clear key while encryption was 'enabled'.  This new firmware for
both wave-1 and wave-2 should not be susceptible to this type of
bug any more.

And remove mesh-bcast IE flag from wave-2, still need more work before
we can enable that flag in ath10k-ct firmware it seems.

Signed-off-by: Ben Greear <greearb@candelatech.com>