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

8 years agoramips: add proper mt7688 detection
John Crispin [Fri, 2 Oct 2015 10:51:09 +0000 (10:51 +0000)]
ramips: add proper mt7688 detection

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

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

8 years agoramips: add speed and mode settings to spi-mt7621
John Crispin [Fri, 2 Oct 2015 10:50:57 +0000 (10:50 +0000)]
ramips: add speed and mode settings to spi-mt7621

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

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

8 years agoramips: add get_direction() callback and irq support to gpio-mt7621
John Crispin [Fri, 2 Oct 2015 10:50:21 +0000 (10:50 +0000)]
ramips: add get_direction() callback and irq support to gpio-mt7621

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

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

8 years agoramips: more m7628 pinmux fixes
John Crispin [Fri, 2 Oct 2015 10:50:07 +0000 (10:50 +0000)]
ramips: more m7628 pinmux fixes

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

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

8 years agoramips: add mt7628 pwm driver
John Crispin [Fri, 2 Oct 2015 10:49:52 +0000 (10:49 +0000)]
ramips: add mt7628 pwm driver

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

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

8 years agoramips: make pinctrl work on newer socs
John Crispin [Fri, 2 Oct 2015 10:49:45 +0000 (10:49 +0000)]
ramips: make pinctrl work on newer socs

newer socs have 2 mux registers

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

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

8 years agoramips: make the mt7628 spi driver work for both cs lines
John Crispin [Fri, 2 Oct 2015 10:49:31 +0000 (10:49 +0000)]
ramips: make the mt7628 spi driver work for both cs lines

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

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

8 years agoramips: make the early_printk code detect which uart is used
John Crispin [Fri, 2 Oct 2015 10:49:16 +0000 (10:49 +0000)]
ramips: make the early_printk code detect which uart is used

only tested on mt7628

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

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

8 years agorpcd: update to latest git HEAD
John Crispin [Fri, 2 Oct 2015 10:49:09 +0000 (10:49 +0000)]
rpcd: update to latest git HEAD

Provides ubus calls for sysupgrade and password changing.

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

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

8 years agouci: update to the latest version, adds various fixes
John Crispin [Fri, 2 Oct 2015 10:48:57 +0000 (10:48 +0000)]
uci: update to the latest version, adds various fixes

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

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

8 years agofstools: update to latest git revision
John Crispin [Fri, 2 Oct 2015 10:48:51 +0000 (10:48 +0000)]
fstools: update to latest git revision

jffs2reset was following symlinks making it delete mounts for example.

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

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

8 years agomountd: move code to a git repo
John Crispin [Fri, 2 Oct 2015 10:48:48 +0000 (10:48 +0000)]
mountd: move code to a git repo

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

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

8 years agoCC: ramips: Added WIZnet WizFi630A Platfrom based on Ralink RT5350
John Crispin [Thu, 1 Oct 2015 14:16:40 +0000 (14:16 +0000)]
CC: ramips: Added WIZnet WizFi630A Platfrom based on Ralink RT5350
This patch is to add the WIZnet WizFi630A board as a new platform. The board is in mini pci express form factor.

Signed-off-by: Tobias Welz <tw@wiznet.eu>
This is a backport of patch r46921

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

8 years agobzip2: add host build
John Crispin [Thu, 1 Oct 2015 14:16:37 +0000 (14:16 +0000)]
bzip2: add host build

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

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

8 years agohostapd: check for banned client on association event
Rafał Miłecki [Mon, 28 Sep 2015 09:39:47 +0000 (09:39 +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/chaos_calmer@47065 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoigmpproxy: fix spurious restarts on interface events, pass used netdevs to procd...
Felix Fietkau [Sun, 27 Sep 2015 10:54:39 +0000 (10:54 +0000)]
igmpproxy: fix spurious restarts on interface events, pass used netdevs to procd instead

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

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

8 years agonetifd: update to the latest version, fixes spurious client isolation in unbridged...
Felix Fietkau [Sat, 26 Sep 2015 23:18:56 +0000 (23:18 +0000)]
netifd: update to the latest version, fixes spurious client isolation in unbridged AP configurations (#20574)

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

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

8 years agobison: replace the yacc script with one that does not hardcode the path (fixes #20605)
Felix Fietkau [Sat, 26 Sep 2015 21:11:16 +0000 (21:11 +0000)]
bison: replace the yacc script with one that does not hardcode the path (fixes #20605)

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

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

8 years agokernel: backport some SPI layer improvements from 4.1 to 3.18, significantly improves...
Felix Fietkau [Thu, 24 Sep 2015 16:07:34 +0000 (16:07 +0000)]
kernel: backport some SPI layer improvements from 4.1 to 3.18, significantly improves flash speed on ramips

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

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

8 years agoath9k: fix handling of tx headroom for padding
Felix Fietkau [Thu, 24 Sep 2015 15:43:24 +0000 (15:43 +0000)]
ath9k: fix handling of tx headroom for padding

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

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

8 years agobase-files: sysupgrade: quote source image name
Rafał Miłecki [Wed, 23 Sep 2015 11:55:18 +0000 (11:55 +0000)]
base-files: sysupgrade: quote source image name

get_image() eval a filename without quoting it, resulting in errors with
filenames containing characters that need to be escaped.
    $ sysupgrade -T -f ./cfg\(12\).tar.gz img.bin; echo $?
    Image check 'platform_check_image' failed.
    Invalid config file. Please use only .tar.gz files
    1
    $ mv cfg\(12\).tar.gz cfg_12.tar.gz
    $ mv img\(1\).bin img.bin
    sysupgrade -T -f ./cfg_12.tar.gz img.bin; echo $?
    0

Enclose the content of $from in double quotes.

Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
Backport of r46919

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

8 years agokernel: add a patch to fix crashes on pppoe disconnect/reconnect
Felix Fietkau [Tue, 22 Sep 2015 11:29:00 +0000 (11:29 +0000)]
kernel: add a patch to fix crashes on pppoe disconnect/reconnect

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

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

8 years agobase-files: fix ramoverlay function with kernels 3.18+
Felix Fietkau [Mon, 21 Sep 2015 17:43:12 +0000 (17:43 +0000)]
base-files: fix ramoverlay function with kernels 3.18+

Even though there are not many users left within the OpenWrt tree it seems
this function broke during the kernel 3.18 transition.

Fix it by providing a workdir as required by overlayfs.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Backport of r47015

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

8 years agotools/mtd-utils: fix PKG_MIRROR_MD5SUM
Felix Fietkau [Mon, 21 Sep 2015 17:19:08 +0000 (17:19 +0000)]
tools/mtd-utils: fix PKG_MIRROR_MD5SUM

The checksum doesn't match the file on mirror2.openwrt.org.

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

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

8 years agomips: Free memory when load_module fails (#14453)
Felix Fietkau [Fri, 18 Sep 2015 12:47:46 +0000 (12:47 +0000)]
mips: Free memory when load_module fails (#14453)

The mips reloc patch introduced new allocations which were done before
add_unformed_module but never freed them in case of an error. A new hook in
Linux 3.19 called module_arch_freeing_init can be used for freeing memory
which were allocated during this init phase.

The problem can be seen when trying to load a module (via busybox insmod)
when it was already loaded.

    free -m
    for i in `seq 1 100`; do
        /sbin/insmod /lib/modules/*/ath9k.ko >& /dev/null
    done
    free -m

This simple loop would leak ~3.2 MB.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Backport of r46247

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

8 years agokernel: bridge, multicast-to-unicast: fix echoes on STA
Felix Fietkau [Fri, 18 Sep 2015 12:47:31 +0000 (12:47 +0000)]
kernel: bridge, multicast-to-unicast: fix echoes on STA

Currently, multicast packets from an STA are sent to any according
multicast listener directly through the bridge multicast-to-unicast
feature. Unfortunately, so far this includes the originating STA, too,
resulting in multicast packets being echo'ed back to the originating STA
if it itself is a multicast listener for that group.

This behaviour breaks IPv6 duplicate address detection: An IPv6 Neighbor
Solicitation for IPv6 Duplicate Address Detection is being echo'ed back,
resulting in the host falsely detecting an address collision, which
makes the node unable to claim an IPv6 address and use IPv6 in general.

Mac80211 unfortunately only prevents the echoes for us for multicast
frames. For the multicast frames cast to a unicast destination we'll
need to take care of excluding the originator ourselves.

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

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

8 years agogeneric: Fix per interface nf_call_iptables setting
Felix Fietkau [Fri, 18 Sep 2015 12:47:20 +0000 (12:47 +0000)]
generic: Fix per interface nf_call_iptables setting

commit r30917 ("kernel: bypass all netfilter hooks if the sysctls for that
functionality have been disabled - eliminates the overhead of enabling
CONFIG_BRIDGE_NETFILTER in the kernel config") introduced an optimization
which should reduce/eliminate the overhead for traffic send over bridges on
kernels compiled with CONFIG_BRIDGE_NETFILTER=y. But this optimization
breaks the nf_call_iptables per bridge setting which is more fine grained
than the global sysctl net.bridge.bridge-nf-call-iptables setting.

A test reflecting a real world setup was created to identify if this really
eliminates the overhead and if per-bridge nf_call_iptables could be used in
some setups to increase the throughput. A Qualcomm Atheros QCA9558 based
system with one ethernet and an ath9k wifi 3x3 in HT40 mode was used.
Cables from the AP to the wifi station were used to reduce interference
problems during the tests.

The wlan interface was put in one bridge interface called br-wlan. This
bridge usually contains some more wlan interfaces. The eth0 was put in a
second bridge called br-lan. This usually contains some other privileged
wlan or mesh interfaces. Routing was added between br-lan and br-wlan.

Three kernels were tested:

 * (default) OpenWrt kernel for this device
 * (brfilter-global) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y
 * (brfilter-local)  OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y and
    without 644-bridge_optimize_netfilter_hooks.patch

The changes to the the netfilter settings of the bridge were done via:

 * (brfilter-global) /sbin/sysctl -w net.bridge.bridge-nf-call-iptables=1
 * (brfilter-lobal) echo 1 > /sys/class/net/br-lan/bridge/nf_call_iptables
   and/or echo 1 > /sys/class/net/br-wan/bridge/nf_call_iptables

A station connected to the wlan0 (AP) interface was used to send traffic to
a PC connected via ethernet. iperf with 3 concurrent transmissions was used
to generate the traffic.

| kernel          | br-nf-* global | nf-call* iface | download | upload   |
|-----------------|----------------|----------------|----------|----------|
| default         | 0              | -              |      209 |      268 |
| brfilter-global | 0              | -              |      185 |      243 |
| brfilter-local  | 0              | -              |      187 |      243 |
| brfilter-local  | 0              | br-lan         |      157 |      226 |
| brfilter-local  | 0              | br-lan br-wlan |      139 |      161 |
| brfilter-global | 1              | -              |      136 |      162 |

Download/upload results in Mibit/s

It can be seen that the patch doesn't eliminate the overhead. It can also
be seen that the throughput of brfilter-global and brfilter-local with
disabled filtering is the roughly the same. Also the throughput for
brfilter-global and brfilter-local for enabled filtering on all bridges is
roughly the same.

But also the brfilter-local throughput is higher when only br-lan requires
the filtering. This setting would not be possible with
644-bridge_optimize_netfilter_hooks.patch applied and thus can only be
compared with brfilter-global and filtering enabled for all interfaces.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Backport of r46835

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

8 years agokernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
Felix Fietkau [Fri, 18 Sep 2015 12:47:10 +0000 (12:47 +0000)]
kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()

A call to pskb_may_pull() might reallocate skb->data. Therefore we
should only assign the src-pointer after any potential reallocations.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r46721

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

8 years agoRevert "kernel: disable multicast-to-unicast translation for ipv6 neighbor solicitati...
Felix Fietkau [Fri, 18 Sep 2015 12:46:59 +0000 (12:46 +0000)]
Revert "kernel: disable multicast-to-unicast translation for ipv6 neighbor solicitation (#17625)"

This reverts commit a080e8e1943156168913d0353a2e99d1151102aa.

It did not fix the problem but just hid some symptom. The real issue was
that IGMP/MLD report suppression was not considered for the
multicast-to-unicast feature. A recent netifd which isolates IGMP/MLD
reports between STAs by utilizing AP-isolation and bridge-hairpinning
should have fixed this.

It is perfectly fine to apply multicast-to-unicast to IPv6 Neighbor
Solicitations, too (once that feature is configured correctly).

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r46720

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

8 years agonetifd: update to the latest version (as of trunk r46841)
Felix Fietkau [Fri, 18 Sep 2015 12:46:50 +0000 (12:46 +0000)]
netifd: update to the latest version (as of trunk r46841)

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

8 years agoprocd: update to latest git revision
Felix Fietkau [Thu, 17 Sep 2015 17:21:16 +0000 (17:21 +0000)]
procd: update to latest git revision

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

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

8 years agokernel: solos-pci: Increase headroom on received packets
Felix Fietkau [Thu, 17 Sep 2015 16:42:53 +0000 (16:42 +0000)]
kernel: solos-pci: Increase headroom on received packets

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

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

8 years agokernel: ipv6: ip6_fragment: fix headroom tests and skb leak
Felix Fietkau [Thu, 17 Sep 2015 16:42:49 +0000 (16:42 +0000)]
kernel: ipv6: ip6_fragment: fix headroom tests and skb leak

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

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

8 years agoCC: firewall: depend on kmod-ipt-conntrack (#20542)
Jo-Philipp Wich [Thu, 17 Sep 2015 15:32:31 +0000 (15:32 +0000)]
CC: firewall: depend on kmod-ipt-conntrack (#20542)
Our ruleset requires kernel support for conntrack state matching, therfore
depend on the require kmod. Fixes #20542.

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

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

8 years agox86/geode: enable DMI and Geos support (fixes #20512)
Felix Fietkau [Thu, 17 Sep 2015 10:16:41 +0000 (10:16 +0000)]
x86/geode: enable DMI and Geos support (fixes #20512)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Backport of r46986

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

8 years agox86: fix Geode LX timekeeping (#20531)
Felix Fietkau [Thu, 17 Sep 2015 10:16:38 +0000 (10:16 +0000)]
x86: fix Geode LX timekeeping (#20531)

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

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

8 years agoppp: backport use a more reliable way to set script environment
Steven Barth [Tue, 15 Sep 2015 14:56:43 +0000 (14:56 +0000)]
ppp: backport use a more reliable way to set script environment

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

8 years agobase-files: replace the opkg key with the one used for the final image
Felix Fietkau [Mon, 14 Sep 2015 16:50:47 +0000 (16:50 +0000)]
base-files: replace the opkg key with the one used for the final image

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

8 years agoramips: fix chunked-io support for big flash chips (#20504)
Felix Fietkau [Mon, 14 Sep 2015 06:57:07 +0000 (06:57 +0000)]
ramips: fix chunked-io support for big flash chips (#20504)

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

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

8 years agobcm53xx: add NAND flash chip description for Asus RT-AC87U
Rafał Miłecki [Mon, 14 Sep 2015 06:14:41 +0000 (06:14 +0000)]
bcm53xx: add NAND flash chip description for Asus RT-AC87U

This isn't that important due to different NAND driver but keeps DTS and
backports consistent.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Inspired by r46892 (trunk).

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

8 years agoath10k: reduce dma burst size on newer firmware to fix crashes
Felix Fietkau [Sun, 13 Sep 2015 20:46:00 +0000 (20:46 +0000)]
ath10k: reduce dma burst size on newer firmware to fix crashes

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

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

8 years agokernel: drop some left XHCI patch for 4.0
Rafał Miłecki [Fri, 11 Sep 2015 12:09:00 +0000 (12:09 +0000)]
kernel: drop some left XHCI patch for 4.0

It was accidentally added in r46094.

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

8 years agoCC: opkg: ensure image provided feeds are available after sysupgrade
Jonas Gorski [Fri, 11 Sep 2015 10:48:42 +0000 (10:48 +0000)]
CC: opkg: ensure image provided feeds are available after sysupgrade
Split the opkg.conf into three files, to make it easier to support custom
feeds and configs:

* /etc/opkg.conf -> base opkg configuration
* /etc/opkg/distfeeds.conf -> default Openwrt package feeds
* /etc/opkg/customfeeds.conf -> custom package feeds

Of these three, only the base opkg.conf and the customfeeds.conf is marked
as to be kept, so that the distfeeds.conf from the image is always used.

To ease migration, a script is added that moves any feeds from /etc/opkg.conf
to /etc/opkg/customfeeds.conf on first boot.

Also ensure that any keys used for verification are also kept in upgrade.

Backport of r46491.

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

8 years agoCC: kernel: update 3.18 to 3.18.21
Jonas Gorski [Fri, 11 Sep 2015 10:48:34 +0000 (10:48 +0000)]
CC: kernel: update 3.18 to 3.18.21
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

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

8 years agoipq806x: delete from CC branch; it is broken and unsupported
Felix Fietkau [Fri, 11 Sep 2015 08:49:42 +0000 (08:49 +0000)]
ipq806x: delete from CC branch; it is broken and unsupported

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

8 years agokernel: restore 640-bridge_no_eap_forward.patch to its original form
Felix Fietkau [Tue, 8 Sep 2015 14:31:41 +0000 (14:31 +0000)]
kernel: restore 640-bridge_no_eap_forward.patch to its original form

It was corrupted in r38528. The most obvious symptom is repeated messages like this:

Tue Sep  8 08:25:18 2015 kern.warn kernel: [77141.972226] br-lan: received packet on wlan0 with own address as source address

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

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

8 years agobrcm47xx: apply serial flash size trick to Netgear WNR1000 V3
Rafał Miłecki [Tue, 8 Sep 2015 06:01:04 +0000 (06:01 +0000)]
brcm47xx: apply serial flash size trick to Netgear WNR1000 V3

It also uses different block size just like WGR614 V10.

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

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