15.05/openwrt.git
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

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

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

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

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

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

8 years agoar71xx: another fix to wndr3700_board_detect
Felix Fietkau [Sun, 3 Jan 2016 14:48:17 +0000 (14:48 +0000)]
ar71xx: another fix to wndr3700_board_detect

My last bugfix (r47538) introduced a new bug in wndr3700_board_detect
(again...).

Assigning the result of ar71xx_get_mtd_offset_size_format to the model
variable before stripping of garbage using awk will cause all NUL bytes to
be removed before awk is applied, leading to model strings like
"NETGEAR WNDRMACv2NETGEAR", where a NUL byte after the v2 is supposed to
terminate the string.

Fix by calling ar71xx_get_mtd_offset_size_format twice, once piping to awk
directly.

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

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

8 years agoar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)
Felix Fietkau [Sun, 3 Jan 2016 14:48:13 +0000 (14:48 +0000)]
ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)

When fixing the model string for WNDR3700v2 which contain a model string
followed by 0xff in r46455, the match for other versions of the WNDR3700v2
which just contain lots of 0xff broke (as the 0xff $model is checked for
is stripped off).

Fix by stripping off non-printable characters only for the actual output
string, but not for the internal matching.

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

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

8 years agoar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2
Felix Fietkau [Sun, 3 Jan 2016 14:48:06 +0000 (14:48 +0000)]
ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2

There are a few NETGEAR devices which don't terminate the model name in the
ART with a NUL byte, at least some NETGEAR WNDR3700v2. The current awk
expression doesn't match 0xFF bytes, so AR71XX_MODEL contains lots of
trailing 0xFF garbage in this case.

Fix this by matching for the first non-printable character and explicitly
setting LC_CTYPE=C (probably not strictly necessary on OpenWrt, but will
definitely work like this, even when awk supports locales and LANG is set).

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

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

8 years agolantiq: disable SW_PORTMAP usage in the ethernet driver
John Crispin [Sun, 3 Jan 2016 14:47:47 +0000 (14:47 +0000)]
lantiq: disable SW_PORTMAP usage in the ethernet driver

using the special tag in this way lead to port mirroring for certain types of traffic.
fallback to using th PMAC_EWAN register for the wan portmap.

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

8 years agoledtrig-netdev: don't stop timer on events for different interfaces
Rafał Miłecki [Sat, 2 Jan 2016 22:15:40 +0000 (22:15 +0000)]
ledtrig-netdev: don't stop timer on events for different interfaces

This fixes regression introduced in my recent ledtrig-netdev commit.
Events triggered by different interfaces were stopping timer so it
wasn't working for tx/rx mode.

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

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

8 years agoledtrig-netdev: add support for renamed devices
Rafał Miłecki [Sat, 2 Jan 2016 22:15:31 +0000 (22:15 +0000)]
ledtrig-netdev: add support for renamed devices

The ppp0 interface is renamed after the connection is established. Due
to a missing NETDEV_REGISTER event, the ledtrig-netdev isn't aware of
the renamed interface and literally ignores the device
(no tx/rx indication, led isn't switched off with 'ifdown wan').

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
Backport of r48048

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

8 years agobcm53xx: switch to simpler devm_gpiod_get in USB driver
Rafał Miłecki [Sat, 2 Jan 2016 11:15:28 +0000 (11:15 +0000)]
bcm53xx: switch to simpler devm_gpiod_get in USB driver

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

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

8 years agokernel: fix duplication of sch_netem in multiple packages (#21479)
Felix Fietkau [Fri, 1 Jan 2016 12:29:29 +0000 (12:29 +0000)]
kernel: fix duplication of sch_netem in multiple packages (#21479)

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

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

8 years agonetifd: update to the latest version (trunk r47897), fixes route table handling issue...
Felix Fietkau [Tue, 29 Dec 2015 13:06:37 +0000 (13:06 +0000)]
netifd: update to the latest version (trunk r47897), fixes route table handling issues (among other things)

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

8 years agoledtrig-netdev: reset link status & stats after changing device_name
Rafał Miłecki [Wed, 23 Dec 2015 17:13:04 +0000 (17:13 +0000)]
ledtrig-netdev: reset link status & stats after changing device_name

Previously switching to non-existing device (interface) could result in
leaving LED on.

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

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

8 years agoledtrig-netdev: drop locking from timer callback function
Rafał Miłecki [Wed, 23 Dec 2015 17:12:56 +0000 (17:12 +0000)]
ledtrig-netdev: drop locking from timer callback function

We may just delete timer on every trigger update and then start it again
if needed. This will let us avoid both: races and locking in frequently
called timer callback.

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

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

8 years agoledtrig-netdev: switch rwlock to spinlock
Rafał Miłecki [Wed, 23 Dec 2015 15:47:41 +0000 (15:47 +0000)]
ledtrig-netdev: switch rwlock to spinlock

Read/write lock was adding useless complexity, there wasn't any real
gain in case of this driver.
Also switch to _bh variants to avoid deadlocks.

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

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

8 years agoledtrig-netdev: update base driver instead of patching it for every kernel
Rafał Miłecki [Wed, 23 Dec 2015 15:47:29 +0000 (15:47 +0000)]
ledtrig-netdev: update base driver instead of patching it for every kernel

All supported kernels require patching ledtrig-netdev in the same way,
so it's safe to just move these changes to the base version of this
driver. We needed these patches for some old kernels 2.6.36 and 3.11.

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

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

8 years agokernel: add remaining kernel patch accidentally left out of r47963
Felix Fietkau [Wed, 23 Dec 2015 11:41:51 +0000 (11:41 +0000)]
kernel: add remaining kernel patch accidentally left out of r47963

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

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

8 years agokernel: backport all current pppoe kernel fixes to 3.18
Felix Fietkau [Wed, 23 Dec 2015 11:15:22 +0000 (11:15 +0000)]
kernel: backport all current pppoe kernel fixes to 3.18

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

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

8 years agomwlwifi: upgrade to 10.3.0.15-20151216 (backport of [47954])
Imre Kaloz [Sun, 20 Dec 2015 12:56:14 +0000 (12:56 +0000)]
mwlwifi: upgrade to 10.3.0.15-20151216 (backport of [47954])

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47955 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoRevert "bzip2: extend/fix the Host/Install rule to install libbz2.so files"
Felix Fietkau [Sat, 19 Dec 2015 11:29:42 +0000 (11:29 +0000)]
Revert "bzip2: extend/fix the Host/Install rule to install libbz2.so files"

This reverts r47245.

Linking to shared libraries under $STAGING_DIR_HOST{,/usr}/lib is harmful,
as these directories aren't added to LD_LIBRARY_PATH (see r47103 for an
explanation why LD_LIBRARY_PATH is not used).

Revert to static linking; in particular, this fixes the build of the python
bz2 module on OpenSUSE and Fedora (which in turn broke the build of
nodejs).

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

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

8 years agoar71xx: clean up ethernet tx queue after reset, wake queues when done - fixes hangs...
Felix Fietkau [Wed, 16 Dec 2015 08:56:10 +0000 (08:56 +0000)]
ar71xx: clean up ethernet tx queue after reset, wake queues when done - fixes hangs reported in #18922

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

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

8 years agoCC: mac80211: fix disabling HT in IBSS mode (#21340)
Jo-Philipp Wich [Wed, 9 Dec 2015 15:36:22 +0000 (15:36 +0000)]
CC: mac80211: fix disabling HT in IBSS mode (#21340)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Backport of r47813

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

8 years agoralink: fix audio recording
John Crispin [Wed, 9 Dec 2015 11:25:01 +0000 (11:25 +0000)]
ralink: fix audio recording

there was an incorrect usage of tx path helpers in the rx path causing the code to
run into endless sleep states

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

8 years agobrcm47xx: make bcm47xxpart patch apply after recent backports
Rafał Miłecki [Mon, 7 Dec 2015 19:30:51 +0000 (19:30 +0000)]
brcm47xx: make bcm47xxpart patch apply after recent backports

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

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

8 years agokernel: add bcm47xxpart patches sent for 4.5 merge window
Rafał Miłecki [Mon, 7 Dec 2015 10:15:52 +0000 (10:15 +0000)]
kernel: add bcm47xxpart patches sent for 4.5 merge window

This replaces old bcm53xx patch for scanning whole flash and makes
bcm47xxpart compatible with NAND.

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

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

8 years agobcm53xx: fix Netgear R8000 clock
Rafał Miłecki [Sun, 6 Dec 2015 09:33:51 +0000 (09:33 +0000)]
bcm53xx: fix Netgear R8000 clock

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

8 years agolantiq: sync spi-xway driver with trunk r47770
Felix Fietkau [Sat, 5 Dec 2015 15:45:43 +0000 (15:45 +0000)]
lantiq: sync spi-xway driver with trunk r47770

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

8 years agoCC: ar71xx: backport support for TP-LINK TL-WR841N/ND v10
Felix Fietkau [Sat, 5 Dec 2015 09:57:29 +0000 (09:57 +0000)]
CC: ar71xx: backport support for TP-LINK TL-WR841N/ND v10
The TL-WR841N/ND v10 is mostly identical to the v9. Apart from some minor
changes, it contains a newer revision of the QCA9533 SoC and the CPU clock
is significantly higher.

Backport of r47263

Signed-off-by: Matteo Valentini <matteo.valentini@wiman.me>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47788 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: ar71xx: fix ath79_soc_rev value for QCA9531 ver. 2
Felix Fietkau [Sat, 5 Dec 2015 09:57:23 +0000 (09:57 +0000)]
CC: ar71xx: fix ath79_soc_rev value for QCA9531 ver. 2
ath9k expects to get revision id 2 for the QCA9531 ver. 2 rev. 0. This
fixes the very low TX power on some devices like the TP-LINK
TL-WR841ND v10

As ath79_soc_rev is only used to get the revision number to ath9k on the
QCA9533, just set it to the expected value on the ver. 2.

Backport of r47262

Signed-off-by: Matteo Valentini <matteo.valentini@wiman.me>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47787 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: ramips: minor fixes for ZTB-WG2626
Felix Fietkau [Sat, 5 Dec 2015 09:47:06 +0000 (09:47 +0000)]
CC: ramips: minor fixes for ZTB-WG2626
In backport commit r47605 the LED was named wrongly in a userspace
script.
Also remove reference to undefined pinmux group "wdt rst" causing
logline
rt2880-pinmux pinctrl: invalid group "wdt rst" for function "gpio"

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47773 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: openssl: update to version 1.0.2e
Hauke Mehrtens [Thu, 3 Dec 2015 21:08:28 +0000 (21:08 +0000)]
CC: openssl: update to version 1.0.2e
backport of r47726.

This fixes the following security problems:
* CVE-2015-3193
* CVE-2015-3194
* CVE-2015-3195)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47727 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomwlwifi: update to latest revision, fixes a kernel panic (backport of [47677])
Imre Kaloz [Mon, 30 Nov 2015 11:58:12 +0000 (11:58 +0000)]
mwlwifi: update to latest revision, fixes a kernel panic (backport of [47677])

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47678 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomwlwifi: update to latest version (backport of [47661])
Imre Kaloz [Thu, 26 Nov 2015 14:09:10 +0000 (14:09 +0000)]
mwlwifi: update to latest version (backport of [47661])

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47662 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomkimage: cross compile fix: pass HOST_*FLAGS in to uboot's makefile
Felix Fietkau [Thu, 26 Nov 2015 10:39:41 +0000 (10:39 +0000)]
mkimage: cross compile fix: pass HOST_*FLAGS in to uboot's makefile

The HOST_*FLAGS are for compiling programs which will run on the machine that is
running the build.  Setting these flags is frequently required for unusual
cross-compiles.

Signed-off-by: Lawrence D'Anna <larry@elder-gods.org>
Backport of r46424

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

8 years agoCC: tools/pkg-config: update to 0.29
Hauke Mehrtens [Mon, 23 Nov 2015 23:02:40 +0000 (23:02 +0000)]
CC: tools/pkg-config: update to 0.29
backport of r47300

Release announcement:
http://lists.freedesktop.org/archives/pkg-config/2015-September/001019.html

Drop patches, as they have been implemented upstream.

This also fixes a build problem in the glib configure script when the
user id is bigger than 2^21 - 1.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Felix Fietkau <nbd@openwrt.org> [fix OSX compatibility]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47608 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: add -Wno-error=unused-result to target cflags
Felix Fietkau [Mon, 23 Nov 2015 14:03:03 +0000 (14:03 +0000)]
build: add -Wno-error=unused-result to target cflags

Many glibc functions have __warn_unused_result__ in so many different
core functions, and failing the build for all of those simply does not
make any sense

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

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

8 years agoprocd: rework makefile, split ujail/seccomp
John Crispin [Mon, 23 Nov 2015 07:14:44 +0000 (07:14 +0000)]
procd: rework makefile, split ujail/seccomp

ujail doesn't depend on seccomp and some archs dont support seccomp

Backport of r46936
needed since last procd update (r47268)

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47606 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: ramips: Backport support for ZBT WG2626
John Crispin [Mon, 23 Nov 2015 07:14:42 +0000 (07:14 +0000)]
CC: ramips: Backport support for ZBT WG2626
Backport of r47351

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

8 years agoCC: brcm2708: Add sysupgrade support for Raspberry Pi
John Crispin [Mon, 23 Nov 2015 07:14:38 +0000 (07:14 +0000)]
CC: brcm2708: Add sysupgrade support for Raspberry Pi
Also create .gz images if configured to do so.

This is equivalent, but different to what we have in trunk, as the image
creation has been rewritten there.

Signed-off-by: Bruno Randolf <br1@einfach.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47604 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: ubox: update ubox to version 2015-11-22
Hauke Mehrtens [Sun, 22 Nov 2015 21:25:00 +0000 (21:25 +0000)]
CC: ubox: update ubox to version 2015-11-22
Backport of r47600

This version fixes a potential uncontrolled format string problem. This
makes it possible to activate the format security check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47602 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: mountd: update mountd to version 2015-11-22
Hauke Mehrtens [Sun, 22 Nov 2015 21:24:21 +0000 (21:24 +0000)]
CC: mountd: update mountd to version 2015-11-22
Backport of r47599

This version fixes a potential uncontrolled format string problem. This
makes it possible to activate the format security check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47601 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: ar71xx: fix network default config of the TEW-732BR
Jo-Philipp Wich [Sun, 22 Nov 2015 20:06:09 +0000 (20:06 +0000)]
CC: ar71xx: fix network default config of the TEW-732BR
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Backport of r47595

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

8 years agoodhcpd: backport trunk fixes
Steven Barth [Thu, 19 Nov 2015 11:53:51 +0000 (11:53 +0000)]
odhcpd: backport trunk fixes

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

8 years agouboot-envtools: add support for linkits7688d
John Crispin [Wed, 18 Nov 2015 15:02:24 +0000 (15:02 +0000)]
uboot-envtools: add support for linkits7688d

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47500

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

8 years agouhttpd: update to the latest version, adds support for redirect helper scripts
Felix Fietkau [Wed, 18 Nov 2015 12:39:06 +0000 (12:39 +0000)]
uhttpd: update to the latest version, adds support for redirect helper scripts

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

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

8 years agolibubox: sync with trunk r47418
Felix Fietkau [Wed, 18 Nov 2015 12:39:00 +0000 (12:39 +0000)]
libubox: sync with trunk r47418

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

8 years agoscripts/diffconfig.sh: reduce config output with CONFIG_BUSYBOX_CUSTOM
Felix Fietkau [Wed, 18 Nov 2015 12:38:56 +0000 (12:38 +0000)]
scripts/diffconfig.sh: reduce config output with CONFIG_BUSYBOX_CUSTOM

Use similar approach as r47461 to reduce output for busybox config.

Since r39435 CONFIG_BUSYBOX_CUSTOM=y has caused the addition of
all ~260 busybox config options to the diffconfig output even if
only one option has been changed.

This patch eliminates the unchanged busybox config options from the output
and leaves only the actually modified options.

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

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

8 years agoscripts/diffconfig.sh: reduce config output with CONFIG_ALL_KMODS
Felix Fietkau [Wed, 18 Nov 2015 12:38:48 +0000 (12:38 +0000)]
scripts/diffconfig.sh: reduce config output with CONFIG_ALL_KMODS

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

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

8 years agosamba: convert init script to procd, add reload support
Felix Fietkau [Wed, 18 Nov 2015 12:38:40 +0000 (12:38 +0000)]
samba: convert init script to procd, add reload support

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

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

8 years agoCC: base-files: add missing public key
Jo-Philipp Wich [Fri, 13 Nov 2015 15:55:37 +0000 (15:55 +0000)]
CC: base-files: add missing public key
Add the secondary package signature key to the 15.05 sources so that people
building the release have the same keys as people using precompiled images.

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

8 years agouhttpd: add support for configuration option ubus_cors
Luka Perkov [Fri, 13 Nov 2015 00:39:12 +0000 (00:39 +0000)]
uhttpd: add support for configuration option ubus_cors

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47462 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobcm53xx: add missing Netgear R8000 LEDs
Rafał Miłecki [Sat, 7 Nov 2015 00:32:23 +0000 (00:32 +0000)]
bcm53xx: add missing Netgear R8000 LEDs

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

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

8 years agobcm53xx: Netgear R8000: define GPIO powering USB ports
Rafał Miłecki [Sat, 7 Nov 2015 00:26:20 +0000 (00:26 +0000)]
bcm53xx: Netgear R8000: define GPIO powering USB ports

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

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

8 years agobcm53xx: replace USB patch fixing power control with the most recent version
Rafał Miłecki [Sat, 7 Nov 2015 00:26:06 +0000 (00:26 +0000)]
bcm53xx: replace USB patch fixing power control with the most recent version

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

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

8 years agoramips: minor tweak to the lks7688 baord name
John Crispin [Thu, 5 Nov 2015 10:05:15 +0000 (10:05 +0000)]
ramips: minor tweak to the lks7688 baord name

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47388

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

8 years agoramips: add feature to blink led on sysupgrade
John Crispin [Tue, 3 Nov 2015 13:32:55 +0000 (13:32 +0000)]
ramips: add feature to blink led on sysupgrade

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47373

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

8 years agouboot: create the uboot config file for the shelby as well
Imre Kaloz [Tue, 3 Nov 2015 11:08:53 +0000 (11:08 +0000)]
uboot: create the uboot config file for the shelby as well

fixes #20827, backport of r47365

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47366 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: kernel: update kernel 3.18 to version 3.18.23
Hauke Mehrtens [Sun, 1 Nov 2015 13:48:26 +0000 (13:48 +0000)]
CC: kernel: update kernel 3.18 to version 3.18.23
Changelog:
 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.22
 * https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.23

backport of r47334.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47335 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: toolchain: fix PKG_SOURCE_URL for gdb
Jo-Philipp Wich [Mon, 26 Oct 2015 15:07:47 +0000 (15:07 +0000)]
CC: toolchain: fix PKG_SOURCE_URL for gdb
The url for the gdb source changed upstream.

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47277 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobzip2: extend/fix the Host/Install rule to install libbz2.so files
John Crispin [Mon, 26 Oct 2015 09:18:03 +0000 (09:18 +0000)]
bzip2: extend/fix the Host/Install rule to install libbz2.so files

It looks like the bzip2 package does not install any shared libs
and has no build rules to install any shared libs.

So, for the host build we're installing the libbz2 shared libs manually
so that other modules can link against them.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Backport of r47245

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

8 years agoprocd: update to latest git
John Crispin [Mon, 26 Oct 2015 09:17:54 +0000 (09:17 +0000)]
procd: update to latest git

this unbreaks glibc builds

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47266

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

8 years agoar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power
John Crispin [Mon, 26 Oct 2015 09:17:51 +0000 (09:17 +0000)]
ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power

Antminers using the stock bootloader will not hash without this GPIO set.
Applies to DD and CC

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Backport of r47261

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

8 years agoramips: WIZnet WizFi630A Platfrom support - board detection
John Crispin [Tue, 20 Oct 2015 19:03:28 +0000 (19:03 +0000)]
ramips: WIZnet WizFi630A Platfrom support - board detection

This patch is adding the missing board detection of WIZnet WizFi630A board.
ramips.sh was not submitted with the former patch.

This belongs to to the backport of patch r46921

Signed-off-by: Tobias Welz <tw@wiznet.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47243 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoar71xx: Bitmain Antminer S1 & S3 cleanup
John Crispin [Tue, 20 Oct 2015 19:03:26 +0000 (19:03 +0000)]
ar71xx: Bitmain Antminer S1 & S3 cleanup

Sets the LEDs to boardname:color:led-name
Sets the LAN to eth0
Corrects the profile names in the Makefile and changes tabs to spaces
in the Makefile 'define Device/' like the other devices.
Other corrections such as the Machine Name and HWIDs

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

8 years agouhttpd: update to latest git HEAD
John Crispin [Tue, 20 Oct 2015 18:17:12 +0000 (18:17 +0000)]
uhttpd: update to latest git HEAD

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47240

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

8 years agoramips: gpio-mt7621 was not handling irqs above 31 properly
John Crispin [Tue, 20 Oct 2015 07:10:05 +0000 (07:10 +0000)]
ramips: gpio-mt7621 was not handling irqs above 31 properly

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47238

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

8 years agoar71xx: Add Gainstrong MiniBox v1.0 support to 15.05
John Crispin [Mon, 19 Oct 2015 17:58:05 +0000 (17:58 +0000)]
ar71xx: Add Gainstrong MiniBox v1.0 support to 15.05

This patch supersedes the v1 from September 17th.

Bumping the patch version - the MiniBox profile showed up under M, but
since it's called 'Gainstrong MiniBox v1.0' now it looks out of place.
Renamed the profile to gs-minibox-v1.mk to fix that.

The following patch adds support for the Gainstrong MiniBox to 15.05
Chaos Calmer.

Fixed items:

- Inverted LED polarity (OOLITE seems to suffer from the same problem).
- Changed uppercase MINIBOX_V1_ prefix as requested.
- Prefixes are now gs_minibox_ similar to gs_oolite_ (same vendor).
- Mention the vendor (Gainstrong) in code headers.

Compiles fine, has been confirmed working by owners.

Question: I've seen some boards use tools/firmware-utils/src/mktplinkfw.c,
the MiniBox images build fine without, so I'm wondering: do I need to add
it in there as well? Any added benefit?

Thank you

Signed-off by: Stijn Segers <francesco.borromini@inventati.org>

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

8 years agomalta: remove le64/be64 references
John Crispin [Mon, 19 Oct 2015 10:30:18 +0000 (10:30 +0000)]
malta: remove le64/be64 references

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

8 years agoar71xx: Add support for WeIO board
John Crispin [Mon, 19 Oct 2015 10:19:44 +0000 (10:19 +0000)]
ar71xx: Add support for WeIO board

Support for WeIO board (http://we-io.net),
backported from Designated Driver trunk.

Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Backport of r47110

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

8 years agouhttpd: update to latest git revision
John Crispin [Mon, 19 Oct 2015 10:19:33 +0000 (10:19 +0000)]
uhttpd: update to latest git revision

adds URL alias support

Signed-off-by: John Crispin <blogic@openwrt.org>
BAckport of r47206

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

8 years agoramips: add alsa driver
John Crispin [Mon, 19 Oct 2015 10:19:29 +0000 (10:19 +0000)]
ramips: add alsa driver

add the alsa driver from the latest RTSDK

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47205

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

8 years agoramips: update mt7628 dtsi file
John Crispin [Mon, 19 Oct 2015 10:19:25 +0000 (10:19 +0000)]
ramips: update mt7628 dtsi file

add nodes required for audio
add missing pinmux definitions

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47205

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

8 years agoramips: add a baurate hack
John Crispin [Mon, 19 Oct 2015 10:19:23 +0000 (10:19 +0000)]
ramips: add a baurate hack

When talking to an atmel controller we need 9600 or 250000 baud.
as 250000 does not exist we use 2500000.

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47204

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

8 years agoramips: add LinkIt Smart7688 support
John Crispin [Mon, 19 Oct 2015 10:19:22 +0000 (10:19 +0000)]
ramips: add LinkIt Smart7688 support

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47203

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

8 years agoramips: add mt7688 subtarget
John Crispin [Mon, 19 Oct 2015 10:19:18 +0000 (10:19 +0000)]
ramips: add mt7688 subtarget

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47203

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

8 years agoCC: polarssl: update to version 1.3.14
Hauke Mehrtens [Sun, 18 Oct 2015 22:27:38 +0000 (22:27 +0000)]
CC: polarssl: update to version 1.3.14
This fixes CVE-2015-5291 and some other smaller security issues.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47202 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoopkg: backport 'opkg list --size' option
John Crispin [Thu, 15 Oct 2015 14:41:30 +0000 (14:41 +0000)]
opkg: backport 'opkg list --size' option

Backport from trunk to CC15.05 the --size option to optionally show also
the *.ipk size in the opkg package listing.

* Default behaviour is to list the available packages as earlier:
  "name - version - description"
* with "--size" the output of is "name - version - size - description".

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47196 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogeneric: add 8139cp fixes from 4.3
John Crispin [Thu, 15 Oct 2015 14:41:22 +0000 (14:41 +0000)]
generic: add 8139cp fixes from 4.3

This contains only the fixes from the 4.3-rc4 kernel.

Additional improvements are going into 4.4 which will fix and enable
hardware checksum/TSO offload, but backporting those to older kernels
is non-trivial.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47195 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomcs814x: use firmware partition splitter on dLAN USB Extender
John Crispin [Thu, 15 Oct 2015 14:38:36 +0000 (14:38 +0000)]
mcs814x: use firmware partition splitter on dLAN USB Extender

to avoid editing the dts every time the kernel size changes.
uImage is now bigger than 1MB. Pad uImage to 64k erase block size.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
Backport of r46648

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

8 years agomcs814x: fix interrupt handling
John Crispin [Thu, 15 Oct 2015 14:38:14 +0000 (14:38 +0000)]
mcs814x: fix interrupt handling

Switch to generich chip irqs/irq domains.
Interrupts were broken since kernel 3.14. dLAN USB extender is now
booting again.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
Backport of r46647

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

8 years agomcs814x: fix debug UART
John Crispin [Thu, 15 Oct 2015 14:38:00 +0000 (14:38 +0000)]
mcs814x: fix debug UART

Switch to new 8250 debug uart code because the old
mach-mcs814x/include/mach/debug-macro.S tries to include
asm/hardware/debug-8250.S which no longer exists since kernel 3.14

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
Backport of r46646

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

8 years agoar71xx: add support for D-LINK DIR-615 rev. Ix board
John Crispin [Thu, 15 Oct 2015 14:37:38 +0000 (14:37 +0000)]
ar71xx: add support for D-LINK DIR-615 rev. Ix board

backport of r46248.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
rebased on r46767.

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

8 years agolantiq: several ARV7519RW22 fixes
John Crispin [Thu, 15 Oct 2015 14:37:12 +0000 (14:37 +0000)]
lantiq: several ARV7519RW22 fixes

Fixes ARV7519RW22 flash register (only 1 flash).
Power LED is green, not red.
Rename message LEDs to internet.
Add LEDs configuration (lan, wan, power).
Enable switch VLANs.
Fix secondary USB.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47190 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomt76: update to the latest version, fixes tx related crashes
Felix Fietkau [Mon, 12 Oct 2015 13:14:36 +0000 (13:14 +0000)]
mt76: update to the latest version, fixes tx related crashes

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

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

8 years agomvebu: add support for the Linksys WRT1900ACS (Shelby)
Imre Kaloz [Thu, 8 Oct 2015 10:02:10 +0000 (10:02 +0000)]
mvebu: add support for the Linksys WRT1900ACS (Shelby)

Backport of r47164.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47165 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogeneric/3.18: refresh patches
Imre Kaloz [Thu, 8 Oct 2015 09:17:08 +0000 (09:17 +0000)]
generic/3.18: refresh patches

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47163 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: uhttpd: fix keep-alive bug (#20607, #20661)
Jo-Philipp Wich [Wed, 7 Oct 2015 22:20:55 +0000 (22:20 +0000)]
CC: uhttpd: fix keep-alive bug (#20607, #20661)
The two commits

  5162e3b0ee7bd1d0fd6e75e1ca7993a1834b5291
"allow request handlers to disable chunked reponses"

and

  618493e378e2239f0d30902e47adfa134e649fdc
"file: disable chunked encoding for file responses"

broke the chunked transfer encoding handling for proc responses in keep-alive
connections that followed a file response with http status 204 or 304.

The effect of this bug is that cgi responses following a 204 or 304 one where
sent neither in chunked encoding nor with a content-length header, causing
browsers to stall until the keep alive timeout was reached.

Fix the logic flaw by inverting the chunk prevention flag in the client state
and by testing the chunked encoding preconditions every time instead of
once upon client (re-)initialization.

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

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

8 years agohostapd: wait longer for inactive client probe (empty data frame)
Felix Fietkau [Tue, 6 Oct 2015 12:33:38 +0000 (12:33 +0000)]
hostapd: wait longer for inactive client probe (empty data frame)

One second is not enough for some devices to ackowledge null data frame
which is sent at the end of ap_max_inactivity interval. In particular,
this causes severe Wi-Fi instability with Apple iPhone which may take
up to 3 seconds to respond.

Signed-off-by: Dmitry Ivanov <dima@ubnt.com>
Backport of r47149

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

8 years agomt76: sync with trunk r47143, add backports for compat with the older mac80211 version
Felix Fietkau [Mon, 5 Oct 2015 22:38:39 +0000 (22:38 +0000)]
mt76: sync with trunk r47143, add backports for compat with the older mac80211 version

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

8 years agomac80211: add a fix to initialize the tid field in the tx queue struct
Felix Fietkau [Mon, 5 Oct 2015 22:38:32 +0000 (22:38 +0000)]
mac80211: add a fix to initialize the tid field in the tx queue struct

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

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

8 years agobuild: include homebrew include/library directory in cflags/ldflags on mac os x
Felix Fietkau [Mon, 5 Oct 2015 14:12:45 +0000 (14:12 +0000)]
build: include homebrew include/library directory in cflags/ldflags on mac os x

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

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

8 years agobuild: use host cflags/ldflags for openssl prereq check
Felix Fietkau [Mon, 5 Oct 2015 14:12:42 +0000 (14:12 +0000)]
build: use host cflags/ldflags for openssl prereq check

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

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

8 years agoramips: various mt7688 pinmux fixes
John Crispin [Fri, 2 Oct 2015 10:53:10 +0000 (10:53 +0000)]
ramips: various mt7688 pinmux fixes

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46474

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

8 years agoralink: add irq to mt7628 gpio node
John Crispin [Fri, 2 Oct 2015 10:53:01 +0000 (10:53 +0000)]
ralink: add irq to mt7628 gpio node

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47076

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

8 years agoralink: the mmc driver can now handle CD lines that are active low
John Crispin [Fri, 2 Oct 2015 10:52:43 +0000 (10:52 +0000)]
ralink: the mmc driver can now handle CD lines that are active low

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47074

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

8 years agoramips: add CD polling to sd driver
John Crispin [Fri, 2 Oct 2015 10:52:32 +0000 (10:52 +0000)]
ramips: add CD polling to sd driver

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46475

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

8 years agoralink: speed selection was broken in spi-mt7621
John Crispin [Fri, 2 Oct 2015 10:52:24 +0000 (10:52 +0000)]
ralink: speed selection was broken in spi-mt7621

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47073

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

8 years agoramips: remove debug code from usb phy driver
John Crispin [Fri, 2 Oct 2015 10:52:13 +0000 (10:52 +0000)]
ramips: remove debug code from usb phy driver

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46659

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

8 years agoramips: add mt7621/3/8 support to the I2C driver
John Crispin [Fri, 2 Oct 2015 10:51:51 +0000 (10:51 +0000)]
ramips: add mt7621/3/8 support to the I2C driver

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46959

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

8 years agoramips: fix reported vendor name
John Crispin [Fri, 2 Oct 2015 10:51:41 +0000 (10:51 +0000)]
ramips: fix reported vendor name

Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46958

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