openwrt/svn-archive/archive.git
8 years agoCC: toolchain: use latest glibc 2.21 revision
John Crispin [Tue, 1 Mar 2016 08:53:27 +0000 (08:53 +0000)]
CC: toolchain: use latest glibc 2.21 revision
Fixes "CVE-2015-7547 --- glibc getaddrinfo() stack-based buffer
overflow"

Signed-off-by: Michael Marley <michael@michaelmarley.com>
SVN-Revision: 48864

8 years agokernel: add Realtek USB to Ethernet modules
John Crispin [Tue, 1 Mar 2016 08:15:04 +0000 (08:15 +0000)]
kernel: add Realtek USB to Ethernet modules

https://forum.openwrt.org/viewtopic.php?pid=279394

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Backport of r46031

SVN-Revision: 48863

8 years agobase-files: add /etc/profile.d support
John Crispin [Tue, 1 Mar 2016 08:15:04 +0000 (08:15 +0000)]
base-files: add /etc/profile.d support

OpenWrt should support an optional /etc/profile.d directory like
most other Linux distributions. This allows packages to install
their own scripts into /etc/profile.d/ directory.

The file suffix should make clear, that these scripts
are (sourced) shell-snippets. If the user needs e.g. php or lua,
one must make sure that the interpreter is called.
The reverse failsafe test makes sure, that the effective returncode is 0.

A typcal usecase is the inclusion of private helpers,
special variables or aliases, which at the moment needs
patching the sourcecode and is not well maintainable.
Now the builder can simply add there files.

v1 initial work of Hendrik Lüth <hendrik@linux-nerds.de>
v2 changes regarding RFC (e.g. thomas.langer@lantiq.com)
v3 changes regarding RFC (e.g. mschiffer@universe-factory.net)
v4 keep it simple and mimic OpenWrt style

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
Backport of r46965

SVN-Revision: 48862

8 years agox86/generic: enable pata_atiixp driver
John Crispin [Tue, 1 Mar 2016 08:15:03 +0000 (08:15 +0000)]
x86/generic: enable pata_atiixp driver

This enables booting from devices that use an ATI PATA controller for
the boot device, such as the embedded CF cards in Fujitsu-Siemens Futro
thin-clients.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Backport of r47304

SVN-Revision: 48861

8 years agoar71xx: add support for TP-LINK TL-WR941ND v6 (international version)
John Crispin [Tue, 1 Mar 2016 08:15:02 +0000 (08:15 +0000)]
ar71xx: add support for TP-LINK TL-WR941ND v6 (international version)

The international version is completely different from the already
supported Chinese version. The WLAN of the QCA956x SoC used by this router
has been fixed in r46948.

This patch looks like it changes a lot in
700-MIPS-ath79-openwrt-machines.patch; that is not the case. Unfortunately,
quilt decided to completely reorganize the Kconfig patch even though only
a single section has been added.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r47420

SVN-Revision: 48860

8 years agoar71xx: rename firmware for Chinese version of TL-WR941ND v6
John Crispin [Tue, 1 Mar 2016 08:14:59 +0000 (08:14 +0000)]
ar71xx: rename firmware for Chinese version of TL-WR941ND v6

It seems there are two *different* versions on TL-WR941ND v6: Chinese
and European one. Currently supported by OpenWrt is Chinese one. Rename
firmware to make it clear.
For details see:
http://wiki.openwrt.org/toh/tp-link/tl-wr941nd
https://forum.openwrt.org/viewtopic.php?id=59295

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r47107

SVN-Revision: 48859

8 years agomac80211: set mcast-rate for mesh point interfaces
John Crispin [Tue, 1 Mar 2016 08:14:59 +0000 (08:14 +0000)]
mac80211: set mcast-rate for mesh point interfaces

In order to set the multicast rate for mesh point interfaces the "mesh join"
was made explicit and moved to mac80211_setup_vif(), similar to how it is
done for IBSS interfaces.

Previously, the mesh join was made implicit in case authentication (i.e.
$key) was not used when creating the interface in mac80211_prepare_vif(),
while using authentication would create the interface first, then join
later in mac80211_setup_vif() by starting authsae.

Signed-off-by: Nils Schneider <nils@nilsschneider.net>
Backport of r47408

SVN-Revision: 48858

8 years agoar71xx: compex wpj531 register usb support
John Crispin [Tue, 1 Mar 2016 08:14:58 +0000 (08:14 +0000)]
ar71xx: compex wpj531 register usb support

Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Backport of r46283

SVN-Revision: 48857

8 years agoar71xx: compex wpj531 fix setting mac address on ethernet
John Crispin [Tue, 1 Mar 2016 08:14:57 +0000 (08:14 +0000)]
ar71xx: compex wpj531 fix setting mac address on ethernet

Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Backport of r46282

SVN-Revision: 48856

8 years agoar71xx: compex wpj531 fix ethernet registration
John Crispin [Tue, 1 Mar 2016 08:14:56 +0000 (08:14 +0000)]
ar71xx: compex wpj531 fix ethernet registration

In fb6f62e97733312053ab593fcf68eea47a21169e several settings
are set on the ethernet device, but they are not working.

Fix Ethernet by setting the right values.

Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Backport of r46281

SVN-Revision: 48855

8 years agoar71xx: rework patch for qca953x/956x
John Crispin [Tue, 1 Mar 2016 08:14:55 +0000 (08:14 +0000)]
ar71xx: rework patch for qca953x/956x

Patch cherry-picked from the following location:
https://www.codeaurora.org/cgit/quic/qsdk/oss/system/openwrt/commit/?h=release/coconut_ioe4531_2.0&id=5c357bf6c763e4140dddcc9a3bc5f005525a9c0e

Changelist,
    - add more register defines
    - add EHCI support
    - fix GPIO pin count to 18
    - fix chained irq disabled
    - fix GMAC0/GMAC1 initial
    - fix WMAC irq number to 47
    - merge the changes of dev-eth.c from the patch to file.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46207

SVN-Revision: 48854

8 years agoar71xx: fix ethernet initialization on QCA953x-based boards (TP-Link TL-WR841N/ND...
John Crispin [Tue, 1 Mar 2016 08:14:53 +0000 (08:14 +0000)]
ar71xx: fix ethernet initialization on QCA953x-based boards (TP-Link TL-WR841N/ND v9, Compex WPJ531)

The initialization routines for these boards were relying on some (wrong)
defaults for the QCA953x ethernet. Make these defaults explicit to prevent
breaking them when the QCA953x defaults are fixed.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46206

SVN-Revision: 48853

8 years agoar71xx/lzma-loader: fix O32 ABI conformance
John Crispin [Tue, 1 Mar 2016 08:14:52 +0000 (08:14 +0000)]
ar71xx/lzma-loader: fix O32 ABI conformance

According to the calling convention of the o32 ABI the caller
function must reserve stack space for $a0-$a3 registers in case
the callee needs to save its arguments.

The assembly code of the loader does not reserve stack space for
these registers thus when the 'loader_main' function needs to save
its arguments, those will be stored in the 'workspace' area instead
of the stack.

Because the workspace area is also used by other part of the code, the
saved register values gets overwritten and this often leads to failed
kernel boots.

Fix the code to reserve stack space for the registers to avoid this
error.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Backport of r48279

SVN-Revision: 48852

8 years agokernel/gpio_keys: load module on pre-init
John Crispin [Tue, 1 Mar 2016 08:14:51 +0000 (08:14 +0000)]
kernel/gpio_keys: load module on pre-init

fix rescue mode on wdr4900

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Backport of r48793

SVN-Revision: 48851

8 years agobrcm2708-gpu-fw: move pkg build dir to kernel build dir to fix rebuild bugs after...
John Crispin [Tue, 1 Mar 2016 08:14:50 +0000 (08:14 +0000)]
brcm2708-gpu-fw: move pkg build dir to kernel build dir to fix rebuild bugs after cleaning the kernel tree

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48732

SVN-Revision: 48850

8 years agokernel: disable software protection bits for macronix flash chips at init
John Crispin [Tue, 1 Mar 2016 08:14:49 +0000 (08:14 +0000)]
kernel: disable software protection bits for macronix flash chips at init

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport r47626

SVN-Revision: 48849

8 years agofirmware-utils: mkfwimage: fix firmware_max_length for XM layout
John Crispin [Tue, 1 Mar 2016 08:14:48 +0000 (08:14 +0000)]
firmware-utils: mkfwimage: fix firmware_max_length for XM layout

The new u-boot version bundled with the 5.6.x firmwares from Ubiquiti gets
confused by the smaller rootfs partition size; this can lead to various
issues:

1. We've gotten reports that flashing from the 5.6.x stock firmware to
   OpenWrt will brick devices; I wasn't able to reproduce this myself
2. Flashing from 5.5.x stock firmware to OpenWrt and back to stock (via
   TFTP recovery), following by an update to 5.6.x via web interface can
   yield a bricked device with the following properties:
   - It can't be booted without entering commands over a serial console, as
     u-boot supplies the wrong MTD layout
   - The web interface won't accept any image with the original flash
     layout, so stock firmware upgrades are impossible
   - As the TFTP recovery doesn't update u-boot, returning to the old
     u-boot from firmware 5.5.x is impossible

To recover from 2., creating an OpenWrt image which doesn't set u-boot as
read-only and flashing a backup of the old u-boot from there is the only
way known to me. (Fixing the mtdparts variable in u-boot-env from OpenWrt
might also work; settings this from u-boot over serial didn't have
any permanent effect.)

Fix all of this by setting the correct flash layout also used by the stock
firmware. Flashing has been tested from both firmware 5.5.x and 5.6.x. The
fixed layout also matches the mtdparts defined by OpenWrt.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r48829

SVN-Revision: 48848

8 years agoar71xx, firmware-utils: split ubdev01 flash layout from XM
John Crispin [Tue, 1 Mar 2016 08:14:47 +0000 (08:14 +0000)]
ar71xx, firmware-utils: split ubdev01 flash layout from XM

The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r48828

SVN-Revision: 48847

8 years agofirmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warnings
John Crispin [Tue, 1 Mar 2016 08:14:47 +0000 (08:14 +0000)]
firmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warnings

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r48827

SVN-Revision: 48846

8 years agoOpenSSL: Added source/old to PKG_SOURCE_URL
John Crispin [Tue, 1 Mar 2016 08:14:46 +0000 (08:14 +0000)]
OpenSSL: Added source/old to PKG_SOURCE_URL

OpenSSL moves old versions of the library from
http://www.openssl.org/source/ to
http://www.openssl.org/source/old/$version/ breaking the old links.
That behavior breaks the OpenWRT-build every time OpenSSL releases
a new version.

This patch adds http://www.openssl.org/source/old/$version/ to the
PKG_SOURCE_URL of OpenSSL to avoid breaking the build whenever
OpenSSL releases a new version.

Signed-off-by: Kevin Kirsch <ranlvor@starletp9.de>
Reviewed-by: Alexander Dahl <post@lespocky.de>
Backport of r47860

SVN-Revision: 48845

8 years agoar71xx: fix AR71XX_MODEL on TP-Link TL-WR703N
John Crispin [Tue, 1 Mar 2016 08:14:45 +0000 (08:14 +0000)]
ar71xx: fix AR71XX_MODEL on TP-Link TL-WR703N

The hwid check was wrong, causing the AR71XX_MODEL value to end with a
space (as $hwver was unset).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r47553

SVN-Revision: 48844

8 years agoar71xx: add support for the TP-LINK TL-WR1043ND v3
John Crispin [Tue, 1 Mar 2016 08:14:44 +0000 (08:14 +0000)]
ar71xx: add support for the TP-LINK TL-WR1043ND v3

The hardware of the v3 is identical to the v2.

Based-on-patch-by: Andreas Ziegler <github@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r47406

SVN-Revision: 48843

8 years agotools/firmware-utils: tplink-safeloader: add version 1.1 support to CPE210/220/510/520
John Crispin [Tue, 1 Mar 2016 08:14:43 +0000 (08:14 +0000)]
tools/firmware-utils: tplink-safeloader: add version 1.1 support to CPE210/220/510/520

The hardware is identical to version 1.0, add the new models to the support
list.

Also remove the empty line at the end of the support list, the current
stock images don't have it either.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r47212

SVN-Revision: 48842

8 years agotools/firmware-utils: tplink-safeloader: fix support-list format, clean up vendor...
John Crispin [Tue, 1 Mar 2016 08:14:43 +0000 (08:14 +0000)]
tools/firmware-utils: tplink-safeloader: fix support-list format, clean up vendor information

The first 4 bytes of the support list and the vendor information are
supposed to contain the length of these fields.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r47211

SVN-Revision: 48841

8 years agotools/firmware-utils: tplink-safeloader: clean up code
John Crispin [Tue, 1 Mar 2016 08:14:42 +0000 (08:14 +0000)]
tools/firmware-utils: tplink-safeloader: clean up code

There is no reason for the internal functions not to be static.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r47210

SVN-Revision: 48840

8 years agoodhcp6c: minor fixes
John Crispin [Tue, 1 Mar 2016 08:14:41 +0000 (08:14 +0000)]
odhcp6c: minor fixes

Better synchronize RA & DHCPv6 events
Accumulate some events to avoid flooding
Restart softwires for address and prefix changes

Signed-off-by: Steven Barth <steven@midlink.org>
Backport of r46518

SVN-Revision: 48839

8 years agobase-files: default_postinst: propagate the real postinst return code
John Crispin [Tue, 1 Mar 2016 08:14:40 +0000 (08:14 +0000)]
base-files: default_postinst: propagate the real postinst return code

Using the postinst script for sanity checks and expecting opkg to fail
if the postinst didn't return 0 was possible in Barrier Breaker, propagate
the real postinst return code through default_postinst to restore this
behaviour.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46653

SVN-Revision: 48838

8 years agoodhcp6c: add option "sourcefilter" to disable source filter
John Crispin [Tue, 1 Mar 2016 08:14:39 +0000 (08:14 +0000)]
odhcp6c: add option "sourcefilter" to disable source filter

Signed-off-by: Steven Barth <steven@midlink.org>
Backport of r46408

SVN-Revision: 48837

8 years agosunxi: respect CONFIG_TARGET_IMAGES_GZIP
John Crispin [Tue, 1 Mar 2016 08:14:38 +0000 (08:14 +0000)]
sunxi: respect CONFIG_TARGET_IMAGES_GZIP

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46608

SVN-Revision: 48836

8 years agosunxi: fix uboot install location
John Crispin [Tue, 1 Mar 2016 08:14:37 +0000 (08:14 +0000)]
sunxi: fix uboot install location

Install uboot files to KERNEL_BUILD_DIR instead of BIN_DIR to fix
ImageBuilder. Similar fixes are necessary for many (all?) other uboot
targets.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46605

SVN-Revision: 48835

8 years agosunxi: don't copy DTS files to BIN_DIR
John Crispin [Tue, 1 Mar 2016 08:14:36 +0000 (08:14 +0000)]
sunxi: don't copy DTS files to BIN_DIR

The DTS files aren't useful (other targets don't copy them either) and
clutter BIN_DIR with files unrelated to the chosen profile.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46604

SVN-Revision: 48834

8 years agoar71xx: add support for TL-WR741ND v5
John Crispin [Tue, 1 Mar 2016 08:14:35 +0000 (08:14 +0000)]
ar71xx: add support for TL-WR741ND v5

This device is identical to the TL-WR740N v5, it even uses the same HWID (which
wasn't the case for older TL-WR741ND revisions).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46238

SVN-Revision: 48833

8 years agoar71xx: add support for tp-link wr740n v5.0 (EU)
John Crispin [Tue, 1 Mar 2016 08:14:35 +0000 (08:14 +0000)]
ar71xx: add support for tp-link wr740n v5.0 (EU)

TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
China) with 4 MB flash and 32 MB memory (confirmed by their local
support). This patch adds support for the v5.0 clone of v4, i just
tested it on my own v5.0 router and it works.

Signed-off-by: Daniel Petre <daniel.petre@posteo.net>
Backport of r46115

SVN-Revision: 48832

8 years agokernel: take bcm47xx_nvram.h from kernel and not backports
John Crispin [Tue, 1 Mar 2016 08:14:34 +0000 (08:14 +0000)]
kernel: take bcm47xx_nvram.h from kernel and not backports

compat-wireless/backports now contains a bcm47xx_nvram.h file to
backport some of the functions in it which are used by the bcmfmac
driver. This file just checks for the kernel versions and provide an
empty implementations on older kernel versions. This is OK on most
systems, but on bcm47xx / bcm53xx systems we want to call the real
functions here. This commit removes the file from backports in our
build process like we do it with the bcma and ssb header files. Instead
we add a recent version into our kernel so all code uses only one
header file. On bcm47xx / bcm53xx the real implementations of this code
will be used.

Reported-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
[Backport of r47467. The recent mac80211 backport was missing this patch,
breaking the build of the brcmfmac module]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 48831

8 years agoar71xx: backport ath10k firmware loading from trunk (as of r48711)
Felix Fietkau [Mon, 29 Feb 2016 20:02:36 +0000 (20:02 +0000)]
ar71xx: backport ath10k firmware loading from trunk (as of r48711)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48825

8 years agobuild: download.mk: bugfix download.pl argument call order
Felix Fietkau [Mon, 29 Feb 2016 20:02:35 +0000 (20:02 +0000)]
build: download.mk: bugfix download.pl argument call order

Change wrong download.pl argument call order.
See download.pl argument list.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Backport of r48427

SVN-Revision: 48824

8 years agobuild: add support for choosing a different url filename part than the output file
Felix Fietkau [Mon, 29 Feb 2016 20:02:34 +0000 (20:02 +0000)]
build: add support for choosing a different url filename part than the output file

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r47591

SVN-Revision: 48823

8 years agomac80211: backport from trunk r48782 + required kernel patches and mt76, mwlwifi
Felix Fietkau [Mon, 29 Feb 2016 17:19:04 +0000 (17:19 +0000)]
mac80211: backport from trunk r48782 + required kernel patches and mt76, mwlwifi

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48822

8 years agoath10k-firmware: remove dependency on kmod-ath10k so that it can be selected instead
Felix Fietkau [Mon, 29 Feb 2016 17:18:57 +0000 (17:18 +0000)]
ath10k-firmware: remove dependency on kmod-ath10k so that it can be selected instead

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48821

8 years agob43legacy-firmware: add from r48184
Felix Fietkau [Mon, 29 Feb 2016 17:18:56 +0000 (17:18 +0000)]
b43legacy-firmware: add from r48184

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48820

8 years agoath10k-firmware: add from trunk r47984
Felix Fietkau [Mon, 29 Feb 2016 17:18:55 +0000 (17:18 +0000)]
ath10k-firmware: add from trunk r47984

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48819

8 years agolinux-firmware: sync with trunk r48750
Felix Fietkau [Mon, 29 Feb 2016 17:18:54 +0000 (17:18 +0000)]
linux-firmware: sync with trunk r48750

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48818

8 years agobuild: do not deselect CONFIG_USE_SSTRIP if CONFIG_DEBUG is enabled
Felix Fietkau [Mon, 29 Feb 2016 16:06:20 +0000 (16:06 +0000)]
build: do not deselect CONFIG_USE_SSTRIP if CONFIG_DEBUG is enabled

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48504

SVN-Revision: 48817

8 years agoscripts/config: fix handling of CONFDEFAULT on oldconfig
Felix Fietkau [Mon, 29 Feb 2016 16:06:19 +0000 (16:06 +0000)]
scripts/config: fix handling of CONFDEFAULT on oldconfig

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r47372

SVN-Revision: 48816

8 years agoar71xx: reset ethernet tx ring on fast reset to prevent packet loss / irq issues
Felix Fietkau [Mon, 29 Feb 2016 15:53:25 +0000 (15:53 +0000)]
ar71xx: reset ethernet tx ring on fast reset to prevent packet loss / irq issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48753

SVN-Revision: 48815

8 years agoramips: Backport support for Netgear EX2700
John Crispin [Fri, 26 Feb 2016 07:46:18 +0000 (07:46 +0000)]
ramips: Backport support for Netgear EX2700

This patch adds support for the Netgear EX2700 in Chaos Calmer and
builds approriate -sysupgrade and -factory images.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
SVN-Revision: 48792

8 years agobrcm2708: Fix sysupgrade support for Raspberry Pi
John Crispin [Fri, 26 Feb 2016 07:46:14 +0000 (07:46 +0000)]
brcm2708: Fix sysupgrade support for Raspberry Pi

Backport patch for implementing sysupgrade support on brcm2708 target was
incomplete, since it was missing the default packages (r47604).
Add those packages in order to fully support sysupgrade.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 48791

8 years agokernel: support bgmac on BCM47094
Rafał Miłecki [Fri, 26 Feb 2016 07:10:16 +0000 (07:10 +0000)]
kernel: support bgmac on BCM47094

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48564 and r48756

SVN-Revision: 48790

8 years agokernel: backport trivial bcma patches from 4.6 for BCM47094
Rafał Miłecki [Fri, 26 Feb 2016 07:10:09 +0000 (07:10 +0000)]
kernel: backport trivial bcma patches from 4.6 for BCM47094

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48789

8 years agokernel: backport bcma init patch from 4.5
Rafał Miłecki [Fri, 26 Feb 2016 07:09:57 +0000 (07:09 +0000)]
kernel: backport bcma init patch from 4.5

This simply replaces init fix with a final version and puts it in a
generic dir. This will allow backporting some trivial changes from 4.6.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48788

8 years agoralink: fix mt7628 ehci support
John Crispin [Fri, 19 Feb 2016 16:39:12 +0000 (16:39 +0000)]
ralink: fix mt7628 ehci support

the u2_phy init was missing

Backport of r48747

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 48749

8 years agoralink: fix alsa mic in support
John Crispin [Fri, 19 Feb 2016 16:39:06 +0000 (16:39 +0000)]
ralink: fix alsa mic in support

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 48748

8 years agomvebu: add SolidRun ClearFog A1 support
Luka Perkov [Wed, 17 Feb 2016 17:51:46 +0000 (17:51 +0000)]
mvebu: add SolidRun ClearFog A1 support

Signed-off-by: Andrej Vlasic <andrej.vlasic@sartura.hr>
SVN-Revision: 48737

8 years agomalta: add harddisk support
John Crispin [Mon, 8 Feb 2016 09:22:12 +0000 (09:22 +0000)]
malta: add harddisk support

Is it possible to backport commit r46269 (3c298f89-4303-0410-b956-a3cf2f4a3e73) to CC 15.05 in order to provide harddisk support.

Backporting tested (info available at: https://forum.openwrt.org/viewtopic.php?id=62389).

Thnx in advance!

Here is the original patch from trunk:
>From 76bfcd46bd55263947461e40bd02047922755c72 Mon Sep 17 00:00:00 2001
From: blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Wed, 8 Jul 2015 14:25:36 +0000
Subject: [PATCH] malta: add harddisk support

works with:
qemu-system-mipsel -M malta \
-hda openwrt-malta-le-root.ext4 \
-kernel openwrt-malta-le-vmlinux.elf \
-nographic -append "root=/dev/sda console=ttyS0"

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 48666

8 years agobcm53xx: add Netgear R8500 GPIOs
Rafał Miłecki [Fri, 5 Feb 2016 13:41:24 +0000 (13:41 +0000)]
bcm53xx: add Netgear R8500 GPIOs

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48633

SVN-Revision: 48634

8 years agobcm53xx: start working on Netgear R8500
Rafał Miłecki [Thu, 4 Feb 2016 09:23:48 +0000 (09:23 +0000)]
bcm53xx: start working on Netgear R8500

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48625

SVN-Revision: 48629

8 years agobcm53xx: support Netgear R8500 in sysupgrade
Rafał Miłecki [Thu, 4 Feb 2016 09:23:18 +0000 (09:23 +0000)]
bcm53xx: support Netgear R8500 in sysupgrade

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48572

SVN-Revision: 48628

8 years agobcm53xx: use proper CPU port in b53 for Netgear R8500
Rafał Miłecki [Thu, 4 Feb 2016 09:23:05 +0000 (09:23 +0000)]
bcm53xx: use proper CPU port in b53 for Netgear R8500

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48571

SVN-Revision: 48627

8 years agoopenssl: update to 1.0.2f (fixes CVE-2016-0701, CVE-2015-3197)
Felix Fietkau [Thu, 28 Jan 2016 18:26:18 +0000 (18:26 +0000)]
openssl: update to 1.0.2f (fixes CVE-2016-0701, CVE-2015-3197)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48531

SVN-Revision: 48532

8 years agoramips: HiLink HLK-RM04 image name typo (RM02 -> RM04)
John Crispin [Thu, 21 Jan 2016 14:17:54 +0000 (14:17 +0000)]
ramips: HiLink HLK-RM04 image name typo (RM02 -> RM04)

The image name for the HiLink HLK-RM04 module has a typo and should read "RM04" rather than "RM02"

Backport of r48355

Signed-off-by: John Clark <inindev@gmail.com>
SVN-Revision: 48430

8 years agokernel: fix module load issue in the dma-buf debloat patch
Felix Fietkau [Wed, 20 Jan 2016 20:27:08 +0000 (20:27 +0000)]
kernel: fix module load issue in the dma-buf debloat patch

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48409

SVN-Revision: 48411

8 years agomac80211: fix brcmfmac picking wrong channel when using 80 MHz
Rafał Miłecki [Wed, 20 Jan 2016 19:32:04 +0000 (19:32 +0000)]
mac80211: fix brcmfmac picking wrong channel when using 80 MHz

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48404

8 years agokernel: modularize dma shared buffer code to eliminate kernel bloat
Felix Fietkau [Wed, 20 Jan 2016 10:32:18 +0000 (10:32 +0000)]
kernel: modularize dma shared buffer code to eliminate kernel bloat

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48371

SVN-Revision: 48392

8 years agokernel: fix keyring reference leak (CVE-2016-0728)
Felix Fietkau [Tue, 19 Jan 2016 21:09:59 +0000 (21:09 +0000)]
kernel: fix keyring reference leak (CVE-2016-0728)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48372

SVN-Revision: 48373

8 years agokernel: disable AFS support by default
Felix Fietkau [Tue, 19 Jan 2016 15:15:11 +0000 (15:15 +0000)]
kernel: disable AFS support by default

This pulls in CONFIG_KEYS, which bloats up the kernel size and is thus
very undesirable. It also currently exposes the kernel to a local root
vulnerability

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48364

SVN-Revision: 48365

8 years agoar71xx: fix ethernet MAC reset on DMA hang
Felix Fietkau [Fri, 15 Jan 2016 12:59:30 +0000 (12:59 +0000)]
ar71xx: fix ethernet MAC reset on DMA hang

Fully reset the chip like on a full up/down, but without the PHY
statemachine restart.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48228

SVN-Revision: 48246

8 years agoar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chips
Felix Fietkau [Fri, 15 Jan 2016 12:59:26 +0000 (12:59 +0000)]
ar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chips

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48227

SVN-Revision: 48245

8 years agoCC: base-files: use the correct path in case of modified preinit options
Jo-Philipp Wich [Thu, 14 Jan 2016 14:27:23 +0000 (14:27 +0000)]
CC: base-files: use the correct path in case of modified preinit options
If the user sets any preinit options in .config, the wrong path may get
applied due to wrong default value in image-config.in and due to Makefile
writing also the unchanged options into 00_preinit.conf

Modify the default path in image-config.in to match the current default
path set by r47080. Also modify the fall-back default in Makefile.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Backport of r47590

SVN-Revision: 48238

8 years agoCC: base-files: sanitize and unify $PATH
Jo-Philipp Wich [Thu, 14 Jan 2016 14:27:20 +0000 (14:27 +0000)]
CC: base-files: sanitize and unify $PATH
Previously init and hotplug paths were different from console.

Signed-off-by: Steven Barth <steven@midlink.org>
Backport of r47080

SVN-Revision: 48237

8 years agoCC: procd: align early init PATH with rest of OpenWrt
Jo-Philipp Wich [Thu, 14 Jan 2016 13:06:36 +0000 (13:06 +0000)]
CC: procd: align early init PATH with rest of OpenWrt
Backport upstream Git commit 45cb04fd85d788a37367a5385e5e90dd98a0a991 to CC.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 48236

8 years agomac80211: resync regulatory db with master-2015-12-14
Imre Kaloz [Tue, 12 Jan 2016 14:29:19 +0000 (14:29 +0000)]
mac80211: resync regulatory db with master-2015-12-14

backport of [48219]

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 48220

8 years agoCC: sdk: add base repository fallback
Jo-Philipp Wich [Tue, 12 Jan 2016 09:27:30 +0000 (09:27 +0000)]
CC: sdk: add base repository fallback
When the build system cannot infer its own repository url then let it fall
back to http://git.openwrt.org/ for the base feed.

The path to openwrt.git is guessed from the VERSION_NUMBER variable:

 "unknown" or "r12345" -> http://git.openwrt.org/openwrt.git
 "15.05.1"             -> http://git.openwrt.org/15.05/openwrt.git

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Backport of r48212

SVN-Revision: 48213

8 years agoCC: gettext-full: make autopoint and gettextize reloctable
Jo-Philipp Wich [Tue, 12 Jan 2016 07:54:25 +0000 (07:54 +0000)]
CC: gettext-full: make autopoint and gettextize reloctable
The autopoint and gettextize host utilities contain hardcoded staging dir
paths which need to be overridden for the SDK environment.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Backport of r48208

SVN-Revision: 48211

8 years agoCC: gettext-full: activate format-security checks
Jo-Philipp Wich [Tue, 12 Jan 2016 07:54:22 +0000 (07:54 +0000)]
CC: gettext-full: activate format-security checks
This patch was taken from upstream libcroco

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Backport of r47585

SVN-Revision: 48210

8 years agoCC: gettext-full: update to version 0.19.6
Jo-Philipp Wich [Tue, 12 Jan 2016 07:54:18 +0000 (07:54 +0000)]
CC: gettext-full: update to version 0.19.6
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Backport of r47584

SVN-Revision: 48209

8 years agohostapd: fix disassociation with FullMAC drivers and multi-BSS
Rafał Miłecki [Mon, 11 Jan 2016 22:08:35 +0000 (22:08 +0000)]
hostapd: fix disassociation with FullMAC drivers and multi-BSS

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48202

SVN-Revision: 48205

8 years agoCC: build: add a variable pointing to the main openwrt git repositories (useful if...
Jo-Philipp Wich [Mon, 11 Jan 2016 08:43:50 +0000 (08:43 +0000)]
CC: build: add a variable pointing to the main openwrt git repositories (useful if we want to support using a mirror later)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48117

SVN-Revision: 48197

8 years agofstools: fix off-by-one error in the version number
Felix Fietkau [Sun, 10 Jan 2016 18:04:56 +0000 (18:04 +0000)]
fstools: fix off-by-one error in the version number

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48193

SVN-Revision: 48194

8 years agofstools: sync with trunk r48191
Felix Fietkau [Sun, 10 Jan 2016 17:37:20 +0000 (17:37 +0000)]
fstools: sync with trunk r48191

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48192

8 years agohostapd: fix post v2.4 security issues
Felix Fietkau [Sun, 10 Jan 2016 17:04:09 +0000 (17:04 +0000)]
hostapd: fix post v2.4 security issues

- WPS: Fix HTTP chunked transfer encoding parser (CVE-2015-4141)
- EAP-pwd peer: Fix payload length validation for Commit and Confirm
  (CVE-2015-4143)
- EAP-pwd server: Fix payload length validation for Commit and Confirm
  (CVE-2015-4143)
- EAP-pwd peer: Fix Total-Length parsing for fragment reassembly
  (CVE-2015-4144, CVE-2015-4145)
- EAP-pwd server: Fix Total-Length parsing for fragment reassembly
  (CVE-2015-4144, CVE-2015-4145)
- EAP-pwd peer: Fix asymmetric fragmentation behavior (CVE-2015-4146)
- NFC: Fix payload length validation in NDEF record parser (CVE-2015-8041)
- WNM: Ignore Key Data in WNM Sleep Mode Response frame if no PMF in use
  (CVE-2015-5310)
- EAP-pwd peer: Fix last fragment length validation (CVE-2015-5315)
- EAP-pwd server: Fix last fragment length validation (CVE-2015-5314)
- EAP-pwd peer: Fix error path for unexpected Confirm message (CVE-2015-5316)

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Backport of r48185

SVN-Revision: 48186

8 years agomac80211: brcmfmac: add beamforming support
Rafał Miłecki [Sun, 10 Jan 2016 01:30:13 +0000 (01:30 +0000)]
mac80211: brcmfmac: add beamforming support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48168

8 years agomac80211: brcmfmac: support dumping stations
Rafał Miłecki [Sun, 10 Jan 2016 00:19:16 +0000 (00:19 +0000)]
mac80211: brcmfmac: support dumping stations

It allows user-space fetch associated STAs and e.g. iwinfo/luci display
them.

SVN-Revision: 48167

8 years agomac80211: brcmfmac: fix getting/setting TX power
Rafał Miłecki [Sun, 10 Jan 2016 00:19:09 +0000 (00:19 +0000)]
mac80211: brcmfmac: fix getting/setting TX power

This patches also adds BCM4366 support which may be found on some new
routers based on BCM47094 or BCM4709C0. Unfortunately firmware is still
missing for this chipset.

SVN-Revision: 48166

8 years agokernel: backport some bcma header file definitions from wireless-testing
Rafał Miłecki [Sun, 10 Jan 2016 00:18:39 +0000 (00:18 +0000)]
kernel: backport some bcma header file definitions from wireless-testing

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r47284

SVN-Revision: 48165

8 years agomac80211: rename patches to use all prefixes
Rafał Miłecki [Sat, 9 Jan 2016 18:38:01 +0000 (18:38 +0000)]
mac80211: rename patches to use all prefixes

After last commit we got few unuset slots (prefixes). Use all available
numbers one by one to allow more backports.
This doesn't change a single patch (or order), only renames files.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48164

8 years agomac80211: group brcmfmac patches into sets as they were sent
Rafał Miłecki [Sat, 9 Jan 2016 18:37:55 +0000 (18:37 +0000)]
mac80211: group brcmfmac patches into sets as they were sent

It doesn't change any single patch (or order), it only renames files.
This creates some place for more backports, as we were already using
398 prefix which left only 1 slot.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48163

8 years agomwlwifi: update to 10.3.0.16-20160105 (adds DFS support)
Imre Kaloz [Fri, 8 Jan 2016 19:24:58 +0000 (19:24 +0000)]
mwlwifi: update to 10.3.0.16-20160105 (adds DFS support)

backport of [48152]

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 48153

8 years agokernel: make bcm47xxpart work with TRX flashed at bad block(s)
Rafał Miłecki [Wed, 6 Jan 2016 16:10:40 +0000 (16:10 +0000)]
kernel: make bcm47xxpart work with TRX flashed at bad block(s)

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48061

SVN-Revision: 48140

8 years agokernel: drop bcm47xxpart patch for Xiaomi
Rafał Miłecki [Wed, 6 Jan 2016 16:10:13 +0000 (16:10 +0000)]
kernel: drop bcm47xxpart patch for Xiaomi

It was never tested, most likely not working (because of le32_to_cpu)
and not upstreamed.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48060

SVN-Revision: 48139

8 years agoramips: override features to disable mips16 support for rt288x
Felix Fietkau [Tue, 5 Jan 2016 12:20:34 +0000 (12:20 +0000)]
ramips: override features to disable mips16 support for rt288x

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48137

8 years agobzip2: only build the static library for the host, fixes build errors on mac os x
Felix Fietkau [Tue, 5 Jan 2016 12:15:59 +0000 (12:15 +0000)]
bzip2: only build the static library for the host, fixes build errors on mac os x

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48135

SVN-Revision: 48136

8 years agosamba36: add three CVE patches from 2015-12-16
Felix Fietkau [Tue, 5 Jan 2016 11:01:00 +0000 (11:01 +0000)]
samba36: add three CVE patches from 2015-12-16

This is a patch for CVE-2015-5252, CVE-2015-5296 and CVE-2015-5299. A
patchset for these vulnerabilities was published on 16th December 2015.

Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
Backport of r48133

SVN-Revision: 48134

8 years agoramips: Disable all ethernet ports except port 4 on HT-TM02.
John Crispin [Sun, 3 Jan 2016 18:03:27 +0000 (18:03 +0000)]
ramips: Disable all ethernet ports except port 4 on HT-TM02.

Port 4 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 48097

8 years agoramips: Get rt3052 ethernet ports to be disabled from the device tree.
John Crispin [Sun, 3 Jan 2016 18:03:17 +0000 (18:03 +0000)]
ramips: Get rt3052 ethernet ports to be disabled from the device tree.

This patch allows configuring ports to be disabled in the device tree; this
saves power, since disabling ports here actually disables power to ethernet
PHYs.

Line 461 enables all ethernet ports, so line 508 is getting zero ports to be
disabled, except for port 5 in SoCs where this is not implemented as it will
be sticky disabled in register POC0. Because of this, the code will still read
the switch configuration and OR it to the device tree setting.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 48096

8 years agoramips: Fix comment in rt3052 ethernet switch driver.
John Crispin [Sun, 3 Jan 2016 18:03:07 +0000 (18:03 +0000)]
ramips: Fix comment in rt3052 ethernet switch driver.

Line 461 is actually enabling all switch ports by setting the disable bits
to 0. This needs to be done because the bootloader sets all ports to disabled
by default (which is the case for at least one router based on RT5350).

So, this patch fixes the comment in line 460.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 48095

8 years agoramips: Fix whitespace in the rt3052 switch driver.
John Crispin [Sun, 3 Jan 2016 18:02:51 +0000 (18:02 +0000)]
ramips: Fix whitespace in the rt3052 switch driver.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 48094

8 years agoar71xx: fix sysupgrade for wnr2200
Felix Fietkau [Sun, 3 Jan 2016 15:12:07 +0000 (15:12 +0000)]
ar71xx: fix sysupgrade for wnr2200

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48005

SVN-Revision: 48093

8 years agoar71xx: fix factory images for WNR2200 (#19807)
Felix Fietkau [Sun, 3 Jan 2016 14:48:34 +0000 (14:48 +0000)]
ar71xx: fix factory images for WNR2200 (#19807)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48085

SVN-Revision: 48092

8 years agoar71xx: on wnr2200, revert the mac0/mac1, the ethernet interfaces are swapped. use...
Felix Fietkau [Sun, 3 Jan 2016 14:48:28 +0000 (14:48 +0000)]
ar71xx: on wnr2200, revert the mac0/mac1, the ethernet interfaces are swapped. use MAC1 for wlan

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r47873

SVN-Revision: 48091

8 years agoar71xx: fix MAC address swapping on WNR2200 and fix the WLAN MAC address
Felix Fietkau [Sun, 3 Jan 2016 14:48:20 +0000 (14:48 +0000)]
ar71xx: fix MAC address swapping on WNR2200 and fix the WLAN MAC address

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r47871

SVN-Revision: 48090