14.07/openwrt.git
8 years agoBB: openssl: update to 1.0.2f (fixes CVE-2016-0701, CVE-2015-3197) master
jow [Fri, 29 Jan 2016 13:25:24 +0000 (13:25 +0000)]
BB: openssl: update to 1.0.2f (fixes CVE-2016-0701, CVE-2015-3197)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@48549 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: samba36: add three CVE patches from 2015-12-16
jow [Mon, 11 Jan 2016 11:57:36 +0000 (11:57 +0000)]
BB: 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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@48199 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: build: add a variable pointing to the main openwrt git repositories (useful if...
jow [Mon, 11 Jan 2016 08:44:07 +0000 (08:44 +0000)]
BB: 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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@48198 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: scripts/feeds: add support for optionally using a full clone of git repositories
jow [Mon, 7 Dec 2015 16:30:59 +0000 (16:30 +0000)]
BB: scripts/feeds: add support for optionally using a full clone of git repositories

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@47805 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: openssl: update to v1.0.2e (CVE-2015-3193, CVE-2015-3194, CVE-2015-3195)
jow [Mon, 7 Dec 2015 16:05:54 +0000 (16:05 +0000)]
BB: openssl: update to v1.0.2e (CVE-2015-3193, CVE-2015-3194, CVE-2015-3195)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@47804 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agohostapd: check for banned client on association event
rmilecki [Mon, 28 Sep 2015 12:46:58 +0000 (12:46 +0000)]
hostapd: check for banned client on association event

When using FullMAC drivers (e.g. brcmfmac) we don't get mgmt frames so
check for banned client in probe request handler won't ever be used.
Since cfg80211 provides us info about STA associating let's put a check
there.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@47068 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: backport CVE-2015-3294 security fix
rmilecki [Tue, 8 Sep 2015 11:03:39 +0000 (11:03 +0000)]
dnsmasq: backport CVE-2015-3294 security fix

Upstream release 2.73 included CVE-2015-3294 fix, let's backport patch
fixing this security issue.
This avoids bumping version to 2.73 which introduced many new features.
This way we keep dnsmasq safe and don't risk new problems.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@46817 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: sdk: provide explicit CONFIG_MODULES kconfig symbol
jow [Mon, 27 Jul 2015 23:50:05 +0000 (23:50 +0000)]
BB: sdk: provide explicit CONFIG_MODULES kconfig symbol

Extend the SDK Config.in file to explicitely declare a MODULES symbol with
the "option modules" flag set in order to prevent a kconfig segmentation fault
whenever a "depends m" dependency is encountered.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@46516 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: hostapd: Fix RADIUS connection recovery after initial failure (#18197)
jow [Mon, 27 Jul 2015 13:29:08 +0000 (13:29 +0000)]
BB: hostapd: Fix RADIUS connection recovery after initial failure (#18197)

If the initial attempt at opening the socket connection to the RADIUS
server failed due to missing IP connectivity during startup, e.g., with
"connect[radius]: Network is unreachable", hostapd did not try to
reconnect when RADIUS messages were sent. Instead, it only reported "No
authentication server configured" even if the configuration did have a
server entry.

Backport of upstream commit 94b39e5927e570e6b0fe41d455dde0a361c71c36
("RADIUS client: Fix server connection recovery after initial failure")

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@46512 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: openssl: update to v1.0.2d (CVE-2015-1793)
jow [Thu, 9 Jul 2015 13:15:32 +0000 (13:15 +0000)]
BB: openssl: update to v1.0.2d (CVE-2015-1793)

During certificate verification, OpenSSL (starting from version 1.0.1n and
1.0.2b) will attempt to find an alternative certificate chain if the first
attempt to build such a chain fails. An error in the implementation of this
logic can mean that an attacker could cause certain checks on untrusted
certificates to be bypassed, such as the CA flag, enabling them to use a valid
leaf certificate to act as a CA and "issue" an invalid certificate.

This issue will impact any application that verifies certificates including
SSL/TLS/DTLS clients and SSL/TLS/DTLS servers using client authentication.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@46287 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: kernel: kmod-scsi-core: fix load on install
jogo [Sat, 4 Jul 2015 12:56:21 +0000 (12:56 +0000)]
BB: kernel: kmod-scsi-core: fix load on install

sd_mod depends on scsi_mod, but due to it being an AutoLoad and not
AutoProbe module, it was not loading when installing the package,
causing unknown symbol errors for sd_mod and anything depending on it.

Closes #14927, #18293, #19351.

Backport of r46176.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@46178 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoBB: uclibc++: make g++-uc* wrappers relocatable
jow [Fri, 3 Jul 2015 13:49:24 +0000 (13:49 +0000)]
BB: uclibc++: make g++-uc* wrappers relocatable

The g++-uc wrapper hardcodes $(STAGING_DIR) and $(TOOLCHAIN_DIR) paths which
will not work outside of the original build environment.

Replace the hardcoded staging_dir occurences with paths relative to the
$STAGING_DIR environment variable to make the g++-uc* wrappers usable in an
SDK environment.

Fixes the libdb47 build failure reported at
  https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032455.html

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@46164 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoopenssl: bump to 1.0.2c
cyrus [Fri, 12 Jun 2015 20:59:57 +0000 (20:59 +0000)]
openssl: bump to 1.0.2c

fixes CVE-2015-4000 CVE-2015-1788 CVE-2015-1789 CVE-2015-1790 CVE-2015-1792 CVE-2015-1791

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@45951 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agohostapd: fix remote denial of service vulnerability in WMM action frame parsing
nbd [Wed, 6 May 2015 09:47:05 +0000 (09:47 +0000)]
hostapd: fix remote denial of service vulnerability in WMM action frame parsing

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@45620 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: openssl: update to v1.0.2a (14 CVEs)
jow [Mon, 23 Mar 2015 14:08:16 +0000 (14:08 +0000)]
BB: openssl: update to v1.0.2a (14 CVEs)

Fixes CVE-2015-0204, CVE-2015-0207, CVE-2015-0208, CVE-2015-0209,
CVE-2015-0285, CVE-2015-0286, CVE-2015-0287, CVE-2015-0288, CVE-2015-0289,
CVE-2015-0290, CVE-2015-0291, CVE-2015-0292, CVE-2015-0293, CVE-2015-1787.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44952 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: remove the netfilter optimization that skips the filter table, it has caused...
nbd [Tue, 17 Mar 2015 17:15:15 +0000 (17:15 +0000)]
kernel: remove the netfilter optimization that skips the filter table, it has caused too many issues

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44874 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: fix a beacon enable handling bug
nbd [Thu, 12 Mar 2015 16:32:07 +0000 (16:32 +0000)]
ath9k: fix a beacon enable handling bug

Backport of r44696

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44697 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: Fix LED polarity for the TP-LINK TL-MR13U.
blogic [Tue, 10 Mar 2015 13:26:19 +0000 (13:26 +0000)]
ar71xx: Fix LED polarity for the TP-LINK TL-MR13U.

Please also backport to Barrier Breaker (this same patch applies there too).

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44645 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBackport: ar71xx: Fix board detection for the TP-LINK TL-MR13U.
blogic [Tue, 10 Mar 2015 13:26:15 +0000 (13:26 +0000)]
Backport: ar71xx: Fix board detection for the TP-LINK TL-MR13U.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44644 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: ubox: fix segmentation fault in insmod
jow [Thu, 26 Feb 2015 21:29:57 +0000 (21:29 +0000)]
BB: ubox: fix segmentation fault in insmod

Fix segfault in kmodloader insmod mode due to uninitialized module
directory list.

Apply the required fix as patch for now since we don't have the
ulog infrastructure in BB (yet) required for the git head of ubox.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44550 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: fstools: fix build with enabled ubifs extroot support
jow [Wed, 25 Feb 2015 18:55:39 +0000 (18:55 +0000)]
BB: fstools: fix build with enabled ubifs extroot support

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44539 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: fstools: cumulative backport
jow [Wed, 25 Feb 2015 17:43:00 +0000 (17:43 +0000)]
BB: fstools: cumulative backport

- Adds support for /dev/vd* virtual io
- Adds support for overlayfs v23
- Fixes overlayfs mount on 3.18
- Make the block tool ignore case when comparing uuid strings
- Fixes sysupgrade on linux 3.18
- Support extroot/ubi
- Allows using UBIFS volume as overlay and adds support for Btrfs
- Fix exit code of uci-defaults script
- Support external overlays on non-MTD systems again
- Account for new directory structure of overlayfs partitions (additional upper/ component)
- Support executing block from either overlay or rom
- Support loading fstab from either overlay or rom
- Log extroot failures to dmesg

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Backport of r42812, r42890, r43090, r43368, r43480, r43485, r43717, r43868, r44180, r44535

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44537 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: ubox: kmodloader: support loading kmods from multiple directories
jow [Wed, 25 Feb 2015 17:42:49 +0000 (17:42 +0000)]
BB: ubox: kmodloader: support loading kmods from multiple directories

This is required during early boot in the extroot setup phase to support
loading kmods from the overlay that depend on kmods on the rom partition.

The subsequent mount_root updates will use the LD_LIBRARY_PATH env
variable to pass kmod directories to kmodloader.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44536 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosamba36: update to 3.6.25, fixes remote code execution bug (CVE-2015-0240)
nbd [Tue, 24 Feb 2015 07:24:29 +0000 (07:24 +0000)]
samba36: update to 3.6.25, fixes remote code execution bug (CVE-2015-0240)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44516 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: build: improve feed handling for opkg.conf
jow [Fri, 13 Feb 2015 11:59:16 +0000 (11:59 +0000)]
BB: build: improve feed handling for opkg.conf

 - Consider not installed feeds as well
 - Add option to decide whether to comment disabled feeds

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44441 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB:ramips:Kingston MLW221 cleanup
blogic [Wed, 11 Feb 2015 05:55:18 +0000 (05:55 +0000)]
BB:ramips:Kingston MLW221 cleanup

MLW221 dts use tabs NOT spaces.
Cleanup uci-defaults and diag.sh

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44382 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoopenssl: fix upstream regression for non-ec builds
cyrus [Mon, 9 Feb 2015 15:28:09 +0000 (15:28 +0000)]
openssl: fix upstream regression for non-ec builds

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44365 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoopenssl: bump to 1.0.2
cyrus [Mon, 9 Feb 2015 12:13:06 +0000 (12:13 +0000)]
openssl: bump to 1.0.2

Fixes CVE-2014-3513, CVE-2014-3567, CVE-2014-3568, CVE-2014-3566

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44347 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: add support for NFSv4
blogic [Wed, 28 Jan 2015 12:01:51 +0000 (12:01 +0000)]
kernel: add support for NFSv4

To: openwrt-devel@lists.openwrt.org

This work is based on Daniel Colascione's submission to the OpenWrt
devel mailing list on January 15th, 2014. I modified his patch so that
it applied to the current OpenWrt Barrier Breaker tree.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44162 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoca-certificates: update to 20141019
blogic [Wed, 28 Jan 2015 12:01:44 +0000 (12:01 +0000)]
ca-certificates: update to 20141019

update to version 20141019 and
create symbolic link for certificate hashes during installation

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44161 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB : ramips : Backport for Kingston MLWG2
blogic [Wed, 28 Jan 2015 10:37:51 +0000 (10:37 +0000)]
BB : ramips : Backport for Kingston MLWG2

Backport r43990 to Barrier Breaker.

http://wiki.openwrt.org/toh/kingston/mlwg2

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
 target/linux/ramips/base-files/etc/diag.sh                 |   3 +++
 target/linux/ramips/base-files/etc/uci-defaults/01_leds    |   4 +++
 target/linux/ramips/base-files/etc/uci-defaults/02_network |   4 +++
 target/linux/ramips/base-files/lib/ramips.sh               |   3 +++
 target/linux/ramips/base-files/lib/upgrade/platform.sh     |   1 +
 target/linux/ramips/dts/MLWG2.dts                          | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 target/linux/ramips/image/Makefile                         |   2 ++
 7 files changed, 135 insertions(+)

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44160 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: fix subject in generated certificates
jow [Sun, 25 Jan 2015 23:56:05 +0000 (23:56 +0000)]
BB: fix subject in generated certificates

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44152 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: px5g: generate unique serial numbers
jow [Sun, 25 Jan 2015 23:56:02 +0000 (23:56 +0000)]
BB: px5g: generate unique serial numbers

Generate a random serial from /dev/urandom when creating selfsigned certs.
Fixes "sec_error_reused_issuer_and_serial" with Firefox.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44151 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: gmp: use http instead of ftp download (#18805)
jow [Sat, 24 Jan 2015 13:08:49 +0000 (13:08 +0000)]
BB: gmp: use http instead of ftp download (#18805)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44095 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: backport restart fix from r43777 (fixes #17839)
nbd [Tue, 20 Jan 2015 16:41:46 +0000 (16:41 +0000)]
ar71xx: backport restart fix from r43777 (fixes #17839)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44065 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: add support for TL-WA701ND v2
blogic [Tue, 20 Jan 2015 15:49:04 +0000 (15:49 +0000)]
ar71xx: add support for TL-WA701ND v2

Signed-off-by: Luigi Tarenga <luigi.tarenga@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44064 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: polarssl: update to v1.3.9 and patch CVE-2015-1182
jow [Tue, 20 Jan 2015 13:02:38 +0000 (13:02 +0000)]
BB: polarssl: update to v1.3.9 and patch CVE-2015-1182

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44061 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: bridge: multicast: backport a few more fixes for 3.10
nbd [Mon, 19 Jan 2015 01:13:25 +0000 (01:13 +0000)]
kernel: bridge: multicast: backport a few more fixes for 3.10

The following patches unfortunately didn't hit the kernel stable
branches yet, therefore cherrypicking them for OpenWRT here:

* bridge: fix netfilter/NF_BR_LOCAL_OUT for own, locally generated queries
* bridge: multicast: enable snooping on general queries only
* bridge: multicast: add sanity check for general query destination

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Backport of r43841

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@44049 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomap: backport fixes from trunk
cyrus [Tue, 13 Jan 2015 19:02:32 +0000 (19:02 +0000)]
map: backport fixes from trunk

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43962 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: openssl: update to v1.0.1k (8 CVEs)
jow [Fri, 9 Jan 2015 00:10:55 +0000 (00:10 +0000)]
BB: openssl: update to v1.0.1k (8 CVEs)

Fixes CVE-2014-3571, CVE-2015-0206, CVE-2014-3569, CVE-2014-3572,
CVE-2015-0204, CVE-2015-0205, CVE-2014-8275 and CVE-2014-3570.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43889 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: Fix LED definitions for the DRAGINO2 board
nbd [Wed, 7 Jan 2015 16:47:38 +0000 (16:47 +0000)]
ar71xx: Fix LED definitions for the DRAGINO2 board

This patch fixes LED definitions for the DRAGINO2 board.

1. It renames the Router/USB led to System, as it is now marked "SYS" on the board.
2. It gives control of the LAN and WAN leds and some other GPIOs to Linux.
3. It fixes the active_low property for the LAN and WAN leds.
4. It sets up WLAN, LAN and WAN leds in the UCI defaults.
5. It allows usage of the System led by the diag.sh script, so it will be used to indicate boot and failsafe status.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
Backport of r42897

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43867 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: qos-scripts: bump PKG_REVISION and copyright year
jow [Tue, 6 Jan 2015 12:43:49 +0000 (12:43 +0000)]
BB: qos-scripts: bump PKG_REVISION and copyright year

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43862 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: openvpn: bump PKG_REVISION and copyright year
jow [Tue, 6 Jan 2015 12:43:44 +0000 (12:43 +0000)]
BB: openvpn: bump PKG_REVISION and copyright year

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43861 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoopenvpn: backport an upstream fix for a regression in using --cipher none (fixes...
nbd [Sun, 4 Jan 2015 12:03:51 +0000 (12:03 +0000)]
openvpn: backport an upstream fix for a regression in using --cipher none (fixes #18676)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43824 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: fix HT mode selection for ad-hoc
nbd [Mon, 22 Dec 2014 21:46:52 +0000 (21:46 +0000)]
mac80211: fix HT mode selection for ad-hoc

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43770 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoubi-utils: add mirror md5sum
nbd [Mon, 22 Dec 2014 17:43:21 +0000 (17:43 +0000)]
ubi-utils: add mirror md5sum

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43764 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotools/mtd-utils: add mirror md5sum
nbd [Mon, 22 Dec 2014 17:43:14 +0000 (17:43 +0000)]
tools/mtd-utils: add mirror md5sum

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43763 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: disable multicast-to-unicast translation for ipv6 neighbor solicitation ...
nbd [Wed, 17 Dec 2014 12:29:04 +0000 (12:29 +0000)]
kernel: disable multicast-to-unicast translation for ipv6 neighbor solicitation (#17625)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43737 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobuild: ensure tools are built before building the toolchain
nbd [Sat, 13 Dec 2014 12:01:19 +0000 (12:01 +0000)]
build: ensure tools are built before building the toolchain

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43694 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc85xx: add missing devicetree ranges property for ethernet devices
nbd [Sat, 13 Dec 2014 11:44:04 +0000 (11:44 +0000)]
mpc85xx: add missing devicetree ranges property for ethernet devices

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43683 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agouClibc: fix ptrace header files for powerpc
nbd [Thu, 11 Dec 2014 14:39:40 +0000 (14:39 +0000)]
uClibc: fix ptrace header files for powerpc

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43618 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotelephony: update feed url
cyrus [Thu, 11 Dec 2014 10:32:52 +0000 (10:32 +0000)]
telephony: update feed url

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43615 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agouclient: update to the latest version, fixes HTTP digest auth processing
nbd [Wed, 10 Dec 2014 16:04:08 +0000 (16:04 +0000)]
uclient: update to the latest version, fixes HTTP digest auth processing

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43601 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoodhcp6c: correctly handle renew-replies with short lease times
cyrus [Wed, 10 Dec 2014 10:42:41 +0000 (10:42 +0000)]
odhcp6c: correctly handle renew-replies with short lease times

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43593 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoqos-scripts: fix insmod commands
nbd [Mon, 8 Dec 2014 12:06:02 +0000 (12:06 +0000)]
qos-scripts: fix insmod commands

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43566 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoopenvpn: update to 2.3.6, fixes CVE-2014-8104
nbd [Mon, 1 Dec 2014 19:50:45 +0000 (19:50 +0000)]
openvpn: update to 2.3.6, fixes CVE-2014-8104

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43483 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: fix hardware tx queue allocation order
nbd [Sun, 30 Nov 2014 19:45:37 +0000 (19:45 +0000)]
ath9k: fix hardware tx queue allocation order

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43439 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoodhcp6c: backport from trunk to fix busyloop
cyrus [Fri, 28 Nov 2014 00:42:24 +0000 (00:42 +0000)]
odhcp6c: backport from trunk to fix busyloop

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43416 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: brcm63xx: uci-defaults: network: move DSL-274x1 F1 to right section
jogo [Tue, 25 Nov 2014 19:09:55 +0000 (19:09 +0000)]
BB: brcm63xx: uci-defaults: network: move DSL-274x1 F1 to right section

The cpu port is at 8, not 5.

Fixes #18406.

Backport of r43379.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43380 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: disable the ICPlus phy driver
blogic [Wed, 19 Nov 2014 14:36:43 +0000 (14:36 +0000)]
ralink: disable the ICPlus phy driver

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43321 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: backport the pcie reset fix for mt7620a
blogic [Wed, 19 Nov 2014 10:59:12 +0000 (10:59 +0000)]
ralink: backport the pcie reset fix for mt7620a

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43313 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: backport the ethernet driver from trunk
blogic [Wed, 19 Nov 2014 10:59:10 +0000 (10:59 +0000)]
ralink: backport the ethernet driver from trunk

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43312 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: vgv7519: set some defaults for leds
blogic [Mon, 17 Nov 2014 08:31:14 +0000 (08:31 +0000)]
lantiq: vgv7519: set some defaults for leds

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43286 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: set default led configuration from /sys entry later, after per board settings
blogic [Mon, 17 Nov 2014 08:31:06 +0000 (08:31 +0000)]
lantiq: set default led configuration from /sys entry later, after per board settings

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43285 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: Concatenate multiple flash chips for lantiq-flash (fixed regression)
blogic [Mon, 17 Nov 2014 08:31:03 +0000 (08:31 +0000)]
lantiq: Concatenate multiple flash chips for lantiq-flash (fixed regression)

Signed-off-by: Maikel Bloemendal <openwrt@maikelenyvonne.nl>
Tested-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43284 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoRevert "ath9k: fix crashes when using shared IRQs"
nbd [Sat, 15 Nov 2014 21:17:21 +0000 (21:17 +0000)]
Revert "ath9k: fix crashes when using shared IRQs"

This backport seems to be incomplete and causing some IRQ related
issues.

This reverts commit r43240

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43276 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: fix crashes when using shared IRQs
nbd [Thu, 13 Nov 2014 18:26:27 +0000 (18:26 +0000)]
ath9k: fix crashes when using shared IRQs

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43240 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: ssb: add PCI ID 0x4351
rmilecki [Sat, 8 Nov 2014 21:00:20 +0000 (21:00 +0000)]
kernel: ssb: add PCI ID 0x4351

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r43221

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43222 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agonetifd: fix default ORO for 6rd
cyrus [Sat, 8 Nov 2014 12:27:41 +0000 (12:27 +0000)]
netifd: fix default ORO for 6rd

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43215 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: merge a few pending upstream fixes
nbd [Fri, 7 Nov 2014 11:17:41 +0000 (11:17 +0000)]
mac80211: merge a few pending upstream fixes

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43209 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: vr9: vgv7519: load vmmc and tapi module into firmware image
blogic [Mon, 3 Nov 2014 08:33:07 +0000 (08:33 +0000)]
BB: lantiq: vr9: vgv7519: load vmmc and tapi module into firmware image

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43166 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: vr9: add vpe/watchdog modules to kernel
blogic [Mon, 3 Nov 2014 08:33:04 +0000 (08:33 +0000)]
BB: lantiq: vr9: add vpe/watchdog modules to kernel

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43165 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: vr9: vgv7519: modify dts to pass cmdline to support vmmc/fxs/vpe
blogic [Mon, 3 Nov 2014 08:33:00 +0000 (08:33 +0000)]
BB: lantiq: vr9: vgv7519: modify dts to pass cmdline to support vmmc/fxs/vpe

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43164 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: vr9: - modify dts to support vmmc
blogic [Mon, 3 Nov 2014 08:32:58 +0000 (08:32 +0000)]
BB: lantiq: vr9: - modify dts to support vmmc

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43163 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: exportt ltq_soc_type
blogic [Mon, 3 Nov 2014 08:32:55 +0000 (08:32 +0000)]
BB: lantiq: exportt ltq_soc_type

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43162 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: vr9: - fix vmmc build
blogic [Mon, 3 Nov 2014 08:32:50 +0000 (08:32 +0000)]
BB: lantiq: vr9: - fix vmmc build

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43161 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: vr9: - fix tapi build
blogic [Mon, 3 Nov 2014 08:32:46 +0000 (08:32 +0000)]
BB: lantiq: vr9: - fix tapi build

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43160 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq:
blogic [Mon, 3 Nov 2014 08:32:38 +0000 (08:32 +0000)]
BB: lantiq:

MIPS: Fix rtlx build error.

      CC      arch/mips/kernel/rtlx.o
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c: In function ‘file_write’:
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c:439:23: error: unused variable ‘rt’ [-Werror=unused-variable]
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c: In function ‘rtlx_module_init’:
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c:523:3: error: implicit declaration of function ‘set_vi_handler’ [-Werror=implicit-function-declaration]
    cc1: all warnings being treated as errors

    Caused by 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 [new helper:
    file_inode(file)].

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43159 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: falcon/vr9 - add support for vpe1
blogic [Mon, 3 Nov 2014 08:32:34 +0000 (08:32 +0000)]
BB: lantiq: falcon/vr9 - add support for vpe1

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43158 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: falcon/vr9 - vpe softdog
blogic [Mon, 3 Nov 2014 08:32:32 +0000 (08:32 +0000)]
BB: lantiq: falcon/vr9 - vpe softdog

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43157 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: lantiq: ltq-vmmc add support for ar9-vr9
blogic [Mon, 3 Nov 2014 08:32:30 +0000 (08:32 +0000)]
BB: lantiq: ltq-vmmc add support for ar9-vr9

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43156 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: feeds: use https for LuCI github feed, like all others
jow [Sat, 1 Nov 2014 10:09:51 +0000 (10:09 +0000)]
BB: feeds: use https for LuCI github feed, like all others

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43142 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: feeds: switch to LuCI github repo
jow [Sat, 1 Nov 2014 09:44:56 +0000 (09:44 +0000)]
BB: feeds: switch to LuCI github repo

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43141 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotarget/imagebuilder: remove obsolete !TARGET_ROOTFS_INITRAMFS dependency
nbd [Fri, 31 Oct 2014 12:59:42 +0000 (12:59 +0000)]
target/imagebuilder: remove obsolete !TARGET_ROOTFS_INITRAMFS dependency

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43129 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: vgv7519: fix profile, this board have a rt2800-pci board
blogic [Thu, 30 Oct 2014 08:13:05 +0000 (08:13 +0000)]
lantiq: vgv7519: fix profile, this board have a rt2800-pci board

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43116 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: vgv7519: fix board_config on dts, read mac address and set it
blogic [Wed, 29 Oct 2014 20:51:43 +0000 (20:51 +0000)]
lantiq: vgv7519: fix board_config on dts, read mac address and set it

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43110 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: busybox: make high ASCII chars printable (#7993)
jow [Mon, 27 Oct 2014 11:22:41 +0000 (11:22 +0000)]
BB: busybox: make high ASCII chars printable (#7993)

Currently busybox utils like "ls" fail to display filenames containing UTF-8
characters, replacing any special characters with "?".

Change libbb's printable_string() function to allow high ASCII characters so
that unicode filenames are displayed correctls.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43085 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: px5g-standalone: use /dev/urandom to initialize serial (#18232)
jow [Mon, 27 Oct 2014 11:09:37 +0000 (11:09 +0000)]
BB: px5g-standalone: use /dev/urandom to initialize serial (#18232)

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43083 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: uhttpd: fix HTTP incompatibilities in file handler
jow [Mon, 27 Oct 2014 11:09:09 +0000 (11:09 +0000)]
BB: uhttpd: fix HTTP incompatibilities in file handler

 * Fixes sending an extraneous message body for 204 and 304 resoponses which
   breaks Chrome in keep-alive mode.

 * Adds mimetypes for JSON and JSONP.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43082 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: fix key flush handling in AP+STA
nbd [Mon, 27 Oct 2014 11:07:45 +0000 (11:07 +0000)]
mac80211: fix key flush handling in AP+STA

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43081 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agompc85xx: fix WAN/LAN-MAC for TP-LINK TL-WDR4900 v1
blogic [Sun, 26 Oct 2014 20:33:34 +0000 (20:33 +0000)]
mpc85xx: fix WAN/LAN-MAC for TP-LINK TL-WDR4900 v1

This works around a bootloader issue where every device
has the same lan/wan-mac 00:04:9f:ef:01:01 - with this patch
we read the macs from config-partition during initial network
setup. We have 9 valid macs stored in the partition, the
1st two are used for the radios, 3 and 4 are now used for WAN/LAN.

on an already setup / running device we can get the real macs with
. /lib/functions.sh
. /lib/functions/system.sh
echo "LAN = $(mtd_get_mac_binary config 338)"
echo "WAN = $(mtd_get_mac_binary config 344)"

see:
https://dev.openwrt.org/ticket/14714

from the ticket / user klondike:
U-Boot passed this commit https://gitorious.org/0xlab-kernel/u-boot/commit/ecd1a09b81f2ed6e6ba7bd1d0bfb0cc3d0ea2ad0
http://u-boot.10912.n7.nabble.com/U-Boot-PATCH-mpc83xx-remove-hardcoded-network-addresses-from-config-files-td44372.html
I suppose to prevent this particular issue, but the WDR4900 may be using an old bootloader still affected.
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I have been checking the contents of the dtb on the flash, this particular bit is quite revealing:

ethernet@b0000 {
                        #address-cells = <0x1>;
                        #size-cells = <0x1>;
                        device_type = "network";
                        model = "eTSEC";
                        compatible = "fsl,etsec2";
                        fsl,num_rx_queues = <0x8>;
                        fsl,num_tx_queues = <0x8>;
                        local-mac-address = [00 00 00 00 00 00];
                                             ^^^^^^^^^^^^^^^^^

                        interrupt-parent = <0x2>;
                        phy-handle = <0x3>;
                        phy-connection-type = "rgmii-id";
                        ptimer-handle = <0x4>;

                        queue-group@0 {
                                #address-cells = <0x1>;
                                #size-cells = <0x1>;
                                reg = <0xb0000 0x1000>;
                                rx-bit-map = <0xff>;
                                tx-bit-map = <0xff>;
                                interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
                        };
                };

I also have been checking the live device map to find this:

root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b0000/local-mac-address
00000000  00 04 9f ef 01 01                                 |......|
00000006
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b1000/local-mac-address
*
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b2000/local-mac-address
*

My conclussion is that U-Boot most likely finds the device and (as no valid MAC-address is provided)
falls back to the default MAC provided by the old code, the kernel then receives thee modified
device map from U-Boot and assumes this is the correct MAC for the device despite it obviously isn't.

This can be seen at
target/linux/mpc85xx/patches-3.10/140-powerpc-85xx-tl-wdr4900-v1-support.patch

The enetaddr is filled up by using the device tree data by the process_boot_dtb
function and used by the platform_fixups function to set the eth0 address
(by calling dt_fixup_mac_address_by_alias("ethernet0", enetaddr); ).
But instead we should be used the device address which to my understanding is
provided in the mtd.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43077 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoBB: vgv7519: support more recent board release with vrx288 v1.2
blogic [Sun, 26 Oct 2014 17:59:55 +0000 (17:59 +0000)]
BB: vgv7519: support more recent board release with vrx288 v1.2

The existance of this new board has been confirmed and tested by the guy on this commit

https://github.com/openwrt-vgv7519/uboot-bin/commit/76fdd8e638f81e324ffe77856481bd147398f6e8

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43075 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: makefiles: make use of new var KERNEL_PATCHVER
rmilecki [Sun, 26 Oct 2014 13:27:27 +0000 (13:27 +0000)]
kernel: makefiles: make use of new var KERNEL_PATCHVER

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Inspired by r43047

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43067 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: allow targets to specify KERNEL_PATCHVER instead of LINUX_VERSION
rmilecki [Sun, 26 Oct 2014 13:26:59 +0000 (13:26 +0000)]
kernel: allow targets to specify KERNEL_PATCHVER instead of LINUX_VERSION

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r43043

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43066 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agofindutils: add dependency on bison
nbd [Sun, 26 Oct 2014 11:27:15 +0000 (11:27 +0000)]
findutils: add dependency on bison

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43065 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobase-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug...
nbd [Sat, 25 Oct 2014 17:23:14 +0000 (17:23 +0000)]
base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206)

Based on bug #18206 sysupgrade can lead to loss of password information in
certain situations. Most likely all users who will upgrade from versions
r43017-43040, will lose their current passwords. :-(
https://dev.openwrt.org/ticket/18206

Currently /etc/shadow is defined as a conffile in base-files:
https://dev.openwrt.org/browser/trunk/package/base-files/Makefile#L37

But it is not defined in the default list of essential files to keep in
sysupgrade:
https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/keep.d/base-files-essential

If exporting conffiles info fails, /etc/shadow can get lost.

Shadow passwords are now the default, so saying that preserving /etc/passwd
is essential while /etc/shadow is not, makes no sense.

The attached patch adds /etc/shadow to the list of essential files.

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

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43062 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoodhcp6c: avoid some unnecessary big mallocs
cyrus [Sat, 25 Oct 2014 10:39:31 +0000 (10:39 +0000)]
odhcp6c: avoid some unnecessary big mallocs

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43057 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: fix regulatory notifier calls with CONFIG_ATH_USER_REGD=y (#18211)
nbd [Sat, 25 Oct 2014 09:31:04 +0000 (09:31 +0000)]
ath9k: fix regulatory notifier calls with CONFIG_ATH_USER_REGD=y (#18211)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43055 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: refresh patches
nbd [Sat, 25 Oct 2014 09:31:01 +0000 (09:31 +0000)]
mac80211: refresh patches

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43054 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: backport tx power reporting fix
nbd [Sat, 25 Oct 2014 09:30:59 +0000 (09:30 +0000)]
ath9k: backport tx power reporting fix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43053 3c298f89-4303-0410-b956-a3cf2f4a3e73