openwrt.git
9 years agoar71xx: add TP-LINK TL-WR710N v2
blogic [Tue, 21 Apr 2015 07:15:55 +0000 (07:15 +0000)]
ar71xx: add TP-LINK TL-WR710N v2

TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB).

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45538 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: add db149 support to OpenWrt init scripts
blogic [Tue, 21 Apr 2015 07:15:47 +0000 (07:15 +0000)]
ipq806x: add db149 support to OpenWrt init scripts

DB149 is a IPQ8064 based platform. This patch adds the init scripts to
detect it, configure the network accordingly, and generate a flashable
image for it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45537 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: add db149 dts files
blogic [Tue, 21 Apr 2015 07:15:37 +0000 (07:15 +0000)]
ipq806x: add db149 dts files

DB149 is an IPQ806x based development platform. This patch adds the dts
files to support it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45536 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: enable AT803x driver
blogic [Tue, 21 Apr 2015 07:15:30 +0000 (07:15 +0000)]
ipq806x: enable AT803x driver

Certain IPQ806x based platforms are making use of this PHY. So we'll
enable it so it gets detected as such.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45535 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: remove module checks for 3.15/3.16/3.17
blogic [Tue, 21 Apr 2015 06:59:41 +0000 (06:59 +0000)]
kernel: remove module checks for 3.15/3.16/3.17

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45534 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: remove usb-serial-motorola-phone
blogic [Tue, 21 Apr 2015 06:59:35 +0000 (06:59 +0000)]
kernel: remove usb-serial-motorola-phone

replaced by usb-serial-simple (see r45233)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45533 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agowpan: remove duplicate DEPENDS
blogic [Tue, 21 Apr 2015 06:59:29 +0000 (06:59 +0000)]
wpan: remove duplicate DEPENDS

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45532 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: add bluetooth symbols from Kernel 4.0
blogic [Tue, 21 Apr 2015 06:59:23 +0000 (06:59 +0000)]
kernel: add bluetooth symbols from Kernel 4.0

upstream commit: Bluetooth: Introduce BT_BREDR and BT_LE config options
id: 65efd2bf4885312b42de9829159789199221cc60

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45531 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: fix generic/3.18 wpan symbols
blogic [Tue, 21 Apr 2015 06:59:18 +0000 (06:59 +0000)]
kernel: fix generic/3.18 wpan symbols

-removed symbol because it should be handled by wpan.mk
-add missing FAKEHARD symbol (this symbol is removed in Kernel 4.0)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45530 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agowpan: rework bluetooth / wpan and 6lowpan dependencies
blogic [Tue, 21 Apr 2015 06:59:10 +0000 (06:59 +0000)]
wpan: rework bluetooth / wpan and 6lowpan dependencies

- remove/rename of 6lowpan-iphc
upstream change in 3.17: 6lowpan: introduce new net/6lowpan directory
id: 2c6bed7cfcd3f594ed9e4d6919fa2ebea2243d19

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45529 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: refresh patches
luka [Mon, 20 Apr 2015 20:47:53 +0000 (20:47 +0000)]
ar71xx: refresh patches

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

9 years agoar71xx: add support for compex wpj344
luka [Mon, 20 Apr 2015 20:47:48 +0000 (20:47 +0000)]
ar71xx: add support for compex wpj344

Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45527 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agonettle: bump to 3.1
cyrus [Mon, 20 Apr 2015 20:47:42 +0000 (20:47 +0000)]
nettle: bump to 3.1

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

9 years agobinutils/oprofile: disable mips16 to fix build errors (#19522)
nbd [Mon, 20 Apr 2015 15:01:21 +0000 (15:01 +0000)]
binutils/oprofile: disable mips16 to fix build errors (#19522)

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

9 years agoar71xx: Increase RXD/RDV to 2 on OM5P-AN
nbd [Mon, 20 Apr 2015 15:01:00 +0000 (15:01 +0000)]
ar71xx: Increase RXD/RDV to 2 on OM5P-AN

It was reported that OM5P-AN needs not only a delay setting of 1 for RXD/RDV
but 2. These was found when testing with a NetGear GS752TP POE switch with a
cable length of 50ft and 250ft.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45524 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: add a helper function to set RXDV/RXD of ETH_CFG on AR934x
nbd [Mon, 20 Apr 2015 15:00:52 +0000 (15:00 +0000)]
ar71xx: add a helper function to set RXDV/RXD of ETH_CFG on AR934x

The ETH_RXDV_DELAY (17:16) and ETH_RXD_DELAY (15:14) are currently not cleared
by the function ath79_setup_ar934x_eth_cfg. Clearing these in the
ath79_setup_ar934x_eth_cfg may cause problems on some hardware because they
rely on the preset value by the bootloader.

Instead another function is introduced which also works on ETH_CFG on AR934x.
It can be used to safely clear and set ETH_RXDV_DELAY and ETH_RXD_DELAY on
machines which require special settings.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45523 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: add mask and shift for RXD/RDV bits in AR934X register file
nbd [Mon, 20 Apr 2015 15:00:41 +0000 (15:00 +0000)]
ar71xx: add mask and shift for RXD/RDV bits in AR934X register file

The commit r38948 ("ag71xx: add F1E specific feature bit definitions to AR934X
register file") introduced definitions for some bits in the RDV/RXD part of the
ETH_CFG register of AR934x. These are incomplete because ETH_RXDV_DELAY is
specified as 17:16 and ETH_RXD_DELAY is specified 15:14. The original commit
only specified the lower bits. The upper bits also have to be unset when the
lower bits should only be set.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45522 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: Remove TX/RX delay from pll_1000 for OM5P-AN
nbd [Mon, 20 Apr 2015 15:00:20 +0000 (15:00 +0000)]
ar71xx: Remove TX/RX delay from pll_1000 for OM5P-AN

The tx/rx delay bits in the ETH_XMII_CONTROL register have to be unset when the
enable_rgmii_rx_delay/enable_rgmii_tx_delay will be set in the AT803x PHY.
Othwise the throughput in gigabit mode is heavily reduced.

Signed-off-by: Sven Eckelmann <sven@open-mesh.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45521 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: fallback to wpa_supplicant to setup encrypted mesh
nbd [Mon, 20 Apr 2015 15:00:13 +0000 (15:00 +0000)]
mac80211: fallback to wpa_supplicant to setup encrypted mesh

instead of failing when authsae is not installed, also try using
wpa_supplicant as the newly added -mesh variants support mesh mode
and SAE encryption.

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

9 years agohostapd/netifd: encrypted mesh with wpa_supplicant
nbd [Mon, 20 Apr 2015 15:00:07 +0000 (15:00 +0000)]
hostapd/netifd: encrypted mesh with wpa_supplicant

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

9 years agotools: drop unused genext2fs
jow [Mon, 20 Apr 2015 13:58:22 +0000 (13:58 +0000)]
tools: drop unused genext2fs

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

9 years agoall: replace genext2fs with make_ext4fs
jow [Mon, 20 Apr 2015 13:57:43 +0000 (13:57 +0000)]
all: replace genext2fs with make_ext4fs

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

9 years agonetfilter.mk: remove obsolete ip_nat_ftp related line
nbd [Mon, 20 Apr 2015 13:36:25 +0000 (13:36 +0000)]
netfilter.mk: remove obsolete ip_nat_ftp related line

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

9 years agonetfilter.mk: move IRC conntrack/nat helpers to kmod-nf-nathelper-extra
nbd [Mon, 20 Apr 2015 13:36:02 +0000 (13:36 +0000)]
netfilter.mk: move IRC conntrack/nat helpers to kmod-nf-nathelper-extra

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

9 years agoodhcp6c: fix SOL_MAX_RT to match RFC 3315
cyrus [Mon, 20 Apr 2015 09:17:13 +0000 (09:17 +0000)]
odhcp6c: fix SOL_MAX_RT to match RFC 3315

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

9 years agonftables: bump version
cyrus [Mon, 20 Apr 2015 06:30:34 +0000 (06:30 +0000)]
nftables: bump version

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

9 years agoiproute2: update to v4.0.0
cyrus [Mon, 20 Apr 2015 06:26:09 +0000 (06:26 +0000)]
iproute2: update to v4.0.0

The most significant change from the previous version is the trimming of
the 300-ip_tiny.patch to lib/utils.c where a section previously patched
had vanished.  That section of the patch was removed.

Built and lightly tested on ar71xx against uClibc and musl.

Signed-off-by: Russell Senior <russell@personaltelco.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45512 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoRevert "ar71xx/image: move TPLINK-LZMA image to new build code" (r45490)
nbd [Sun, 19 Apr 2015 19:19:12 +0000 (19:19 +0000)]
Revert "ar71xx/image: move TPLINK-LZMA image to new build code" (r45490)

Profile definitions need to be checked and fixed before this patch can
be applied again.

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

9 years agolibnl-tiny: link library with -Bsymbolic-functions
nbd [Sun, 19 Apr 2015 18:33:19 +0000 (18:33 +0000)]
libnl-tiny: link library with -Bsymbolic-functions

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

9 years agolua: link library with -Bsymbolic-functions
nbd [Sun, 19 Apr 2015 18:33:13 +0000 (18:33 +0000)]
lua: link library with -Bsymbolic-functions

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

9 years agocmake.mk: enable -Bsymbolic-functions by default for linking shared libs, slightly...
nbd [Sun, 19 Apr 2015 18:33:07 +0000 (18:33 +0000)]
cmake.mk: enable -Bsymbolic-functions by default for linking shared libs, slightly improves performance and compression

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

9 years agoramips: switch WSR-1166 and WSR-600 to single-firmware mtd layout
nbd [Sun, 19 Apr 2015 16:31:54 +0000 (16:31 +0000)]
ramips: switch WSR-1166 and WSR-600 to single-firmware mtd layout

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

9 years agokernel: refresh generic patches
jogo [Sun, 19 Apr 2015 11:38:46 +0000 (11:38 +0000)]
kernel: refresh generic patches

Refresh patches to remove the trailing whitespaces caused by an old
diffutils version on osx.

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

9 years agobrcm63xx: fix bcm63268 rgmii port rgmii configuration
jogo [Sun, 19 Apr 2015 11:38:42 +0000 (11:38 +0000)]
brcm63xx: fix bcm63268 rgmii port rgmii configuration

This should rather be done by passing appropriate platform_data/OF, but
should suffice for now.

Fixes e.g. GbE ports on BCM963268BU_P300.

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

9 years agobrcm63xx: allow using all four rgmii ports on bcm6316x
jogo [Sun, 19 Apr 2015 11:38:24 +0000 (11:38 +0000)]
brcm63xx: allow using all four rgmii ports on bcm6316x

At least the third rgmii port is available on 63169, so assume all are
available. Simplifies cpu vs. variant handling.

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

9 years agonetifd: update to the latest version, fixes more interface device config handling...
nbd [Sun, 19 Apr 2015 09:50:49 +0000 (09:50 +0000)]
netifd: update to the latest version, fixes more interface device config handling issues

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

9 years agobrcm63xx: BCM963268BU_P300 reference board fixes
jogo [Sat, 18 Apr 2015 22:33:50 +0000 (22:33 +0000)]
brcm63xx: BCM963268BU_P300 reference board fixes

- Fix profile name.
- Rremove whitespace on board patch.
- Refresh patches.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45499 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoimage.mk: do not emit multiple target definitions for kernel images
nbd [Sat, 18 Apr 2015 21:35:22 +0000 (21:35 +0000)]
image.mk: do not emit multiple target definitions for kernel images

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

9 years agonetifd: update to the latest version, fixes more device config handling issues
nbd [Sat, 18 Apr 2015 21:35:16 +0000 (21:35 +0000)]
netifd: update to the latest version, fixes more device config handling issues

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

9 years agobase-files: make the generic sysinfo script run earlier to allow the mount_root scrip...
nbd [Sat, 18 Apr 2015 20:14:38 +0000 (20:14 +0000)]
base-files: make the generic sysinfo script run earlier to allow the mount_root script to pick up the board name

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

9 years agoimage.mk: force rebuild of kernel dependent parts - fixes auto-rebuild on DTS changes
nbd [Sat, 18 Apr 2015 19:32:20 +0000 (19:32 +0000)]
image.mk: force rebuild of kernel dependent parts - fixes auto-rebuild on DTS changes

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

9 years agoiptables: remove obsolete files
nbd [Sat, 18 Apr 2015 17:59:31 +0000 (17:59 +0000)]
iptables: remove obsolete files

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

9 years agodropbear: update to 2015.67
cyrus [Sat, 18 Apr 2015 11:25:01 +0000 (11:25 +0000)]
dropbear: update to 2015.67

fixes dbclient login into OpenSSH 6.8p1
error: "Bad hostkey signature"

reported on irc, replicated with Arch Linux

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45493 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agohostapd: Fix wps button hotplug script to handle multiple radios
blogic [Sat, 18 Apr 2015 10:19:37 +0000 (10:19 +0000)]
hostapd: Fix wps button hotplug script to handle multiple radios

Hostapd's control file location was changed in 2013, and that has apparently
broken the wps button hotplug script in cases where there are multiple radios
and wps is possibly configured also for the second radio. The current wps
button hotplug script always handles only the first radio.

https://dev.openwrt.org/browser/trunk/package/network/services/hostapd/files/wps-hotplug.sh

The reason is that the button hotplug script seeks directories like
/var/run/hostapd*, as the hostapd-phy0.conf files were earlier in
per-interface subdirectories.

Currently the *.conf files are directly in /var/run and the control sockets
are in /var/run/hostapd, but there is no subdirectory for each radio.

root@OpenWrt:/# ls /var/run/hostapd*
/var/run/hostapd-phy0.conf  /var/run/hostapd-phy1.conf

/var/run/hostapd:
wlan0  wlan1

The hotplug script was attempted to be fixed after the hostapd change by
r38986 in Dec2013, but that change only unbroke the script for the first
radio, but left it broken for multiple radios.
https://dev.openwrt.org/changeset/38986/

The script fails to find subdirectories with [ -d "$dir" ], and passes just
the only found directory /var/run/hostapd, leading into activating only the
first radio, as hostapd_cli defaults to first socket found inthe passed
directory:
root@OpenWrt:/# hostapd_cli -?
...
usage: hostapd_cli [-p<path>] [-i<ifname>] [-hvB] [-a<path>] \
                    [-G<ping interval>] [command..]
...
    -p<path>     path to find control sockets (default: /var/run/hostapd)
...
    -i<ifname>   Interface to listen on (default: first interface found in the
                 socket path)

Below is a run with the default script and with my proposed solution.

Default script (with logging added):
==================================
root@OpenWrt:/# cat /etc/rc.button/wps
#!/bin/sh

if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
         for dir in /var/run/hostapd*; do
                 [ -d "$dir" ] || continue
                 logger "WPS activated for: $dir"
                 hostapd_cli -p "$dir" wps_pbc
         done
fi

 >>>> WPS BUTTON PRESSED <<<<<

root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan0 wps_get_status
PBC Status: Active
Last WPS result: None
root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan1 wps_get_status
PBC Status: Timed-out
Last WPS result: None
root@OpenWrt:/# logread | grep WPS
Tue Apr 14 18:38:50 2015 user.notice root: WPS activated for: /var/run/hostapd

wlan0 got WPS activated, while wlan1 remained inactive.

I have modified the script to search for sockets instead of directories and
to use the "-i" option with hostapd_cli, and now the script properly
activates wps for both radios. As "-i" needs the interface name instead of
the full path, the script first changes dir to /var/run/hostapd to get simply
the interface names.

Modified script (with logging):
===============================
root@OpenWrt:/# cat /etc/rc.button/wps
#!/bin/sh

if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
         cd /var/run/hostapd
         for dir in *; do
                 [ -S "$socket" ] || continue
                 logger "WPS activated for: $socket"
                 hostapd_cli -i "$socket" wps_pbc
         done
fi

 >>>> WPS BUTTON PRESSED <<<<<

root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan0 wps_get_status
PBC Status: Active
Last WPS result: None
root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan1 wps_get_status
PBC Status: Active
Last WPS result: None
root@OpenWrt:/# logread | grep WPS
Tue Apr 14 18:53:06 2015 user.notice root: WPS activated for: wlan0
Tue Apr 14 18:53:06 2015 user.notice root: WPS activated for: wlan1

Both radios got their WPS activated properly.

I am not sure if my solution is optimal, but it seems to work. WPS button is
maybe not that often used functionality, but it might be fixed in any case.
Routers with multiple radios are common now, so the bug is maybe more
prominent than earlier.

The modified script has been in a slightly different format in my community
build since r42420 in September 2014.

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

9 years agoar71xx/image: remove duplicated rootfs in new tplink initramfs images
blogic [Sat, 18 Apr 2015 10:19:28 +0000 (10:19 +0000)]
ar71xx/image: remove duplicated rootfs in new tplink initramfs images

The new building code included the rootfs twice when building tplink initramfs images.
To make it more readable move initramfs into an own build step
Build/mktplinkfw-initramfs.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45491 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx/image: move TPLINK-LZMA image to new build code
blogic [Sat, 18 Apr 2015 10:19:23 +0000 (10:19 +0000)]
ar71xx/image: move TPLINK-LZMA image to new build code

There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45490 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx/image: add template tplink-16mlzma
blogic [Sat, 18 Apr 2015 10:19:14 +0000 (10:19 +0000)]
ar71xx/image: add template tplink-16mlzma

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45489 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx/image: fix imagesize of template tplink-8mlzma
blogic [Sat, 18 Apr 2015 10:19:09 +0000 (10:19 +0000)]
ar71xx/image: fix imagesize of template tplink-8mlzma

The new image size is verified by a running tplink device and checked
against mktplinkfw source code.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45488 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoRemoved reference to imaginary procd_add_interface_reload in procd.sh
blogic [Sat, 18 Apr 2015 10:19:02 +0000 (10:19 +0000)]
Removed reference to imaginary procd_add_interface_reload in procd.sh

The last line of procd.sh has a reference to procd_add_interface_reload. procd_add_interface_reload
doesn't seem to exist. I've removed the reference of it to minimize confusion.

Signed-off-by: Eric Schultz <eschultz@prplfoundation.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45487 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobrcm63xx: fix bcm96318ref_p300 profile name
jogo [Sat, 18 Apr 2015 09:34:17 +0000 (09:34 +0000)]
brcm63xx: fix bcm96318ref_p300 profile name

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

9 years agonetifd: update to the latest version, fixes issues in handling device config from...
nbd [Fri, 17 Apr 2015 19:28:10 +0000 (19:28 +0000)]
netifd: update to the latest version, fixes issues in handling device config from interfaces

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

9 years agoqos-scripts: drop obsolete depdendency on iptabes-mod-filter (#19506)
nbd [Fri, 17 Apr 2015 18:52:28 +0000 (18:52 +0000)]
qos-scripts: drop obsolete depdendency on iptabes-mod-filter (#19506)

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

9 years agoiptables: remove layer7 leftovers (#19506)
nbd [Fri, 17 Apr 2015 18:52:24 +0000 (18:52 +0000)]
iptables: remove layer7 leftovers (#19506)

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

9 years agobcm53xx: add profiling support
nbd [Fri, 17 Apr 2015 18:52:15 +0000 (18:52 +0000)]
bcm53xx: add profiling support

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

9 years agonetwork: also shorten virtual interface names of ppp and 3g/4g connections
cyrus [Fri, 17 Apr 2015 14:47:12 +0000 (14:47 +0000)]
network: also shorten virtual interface names of ppp and 3g/4g connections

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

9 years agoimx6: put uboot-envtools in DEFAULT_PACKAGES
luka [Fri, 17 Apr 2015 13:47:13 +0000 (13:47 +0000)]
imx6: put uboot-envtools in DEFAULT_PACKAGES

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

9 years agokirkwood: put uboot-envtools in DEFAULT_PACKAGES
luka [Fri, 17 Apr 2015 13:47:09 +0000 (13:47 +0000)]
kirkwood: put uboot-envtools in DEFAULT_PACKAGES

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

9 years agonetwork: shorten names of generated interfaces
cyrus [Fri, 17 Apr 2015 13:10:19 +0000 (13:10 +0000)]
network: shorten names of generated interfaces

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

9 years agokernel: mark kmod-usb-bcma/ssb as hidden, they are only selected from ohci/ehci
nbd [Fri, 17 Apr 2015 11:56:28 +0000 (11:56 +0000)]
kernel: mark kmod-usb-bcma/ssb as hidden, they are only selected from ohci/ehci

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

9 years agobrcm47xx: add buttons support for WRT310N v2
rmilecki [Fri, 17 Apr 2015 08:12:00 +0000 (08:12 +0000)]
brcm47xx: add buttons support for WRT310N v2

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

9 years agobcm53xx: fix handling absolute paths in sysupgrade (for vendor formats)
rmilecki [Fri, 17 Apr 2015 06:03:00 +0000 (06:03 +0000)]
bcm53xx: fix handling absolute paths in sysupgrade (for vendor formats)

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

9 years agobrcm47xx: fix handling absolute paths in sysupgrade (for vendor formats)
rmilecki [Fri, 17 Apr 2015 05:45:46 +0000 (05:45 +0000)]
brcm47xx: fix handling absolute paths in sysupgrade (for vendor formats)

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

9 years agobusybox: fix an ash regression in handling local variables
nbd [Fri, 17 Apr 2015 00:01:29 +0000 (00:01 +0000)]
busybox: fix an ash regression in handling local variables

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

9 years agobrcm47xx: rework vendor fw handling to don't duplicate upgrade calls
rmilecki [Thu, 16 Apr 2015 21:43:27 +0000 (21:43 +0000)]
brcm47xx: rework vendor fw handling to don't duplicate upgrade calls

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

9 years agobrcm47xx: explicitly select CPU_MIPS32_R2 and CPU_MIPSR2 for mips74k
rmilecki [Thu, 16 Apr 2015 21:20:37 +0000 (21:20 +0000)]
brcm47xx: explicitly select CPU_MIPS32_R2 and CPU_MIPSR2 for mips74k

The mips74k subtarget of brcm47xx configures gcc to compile for mips32r2;
however, the generated kernel config for 3.14 and later kernels ends up
with CPU_MIPS32_R1 and CPU_MIPSR1 selected.  The generated kernel config
for the 3.10 kernel (Barrier Breaker) properly selected CPU_MIPS32_R2 and
CPU_MIPSR2.  Modify the default kernel config for mips74k to explicitly
select CPU_MIPS32_R2 and CPU_MIPSR2.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
Tested-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45469 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: accidentally committed a few patches in the wrong place, move them
nbd [Thu, 16 Apr 2015 20:43:11 +0000 (20:43 +0000)]
kernel: accidentally committed a few patches in the wrong place, move them

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

9 years agobcm53xx: add power button for WXR-1900DHP
nbd [Thu, 16 Apr 2015 20:09:55 +0000 (20:09 +0000)]
bcm53xx: add power button for WXR-1900DHP

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

9 years agobcm53xx: add power button for Buffalo WZR-1750DHP
nbd [Thu, 16 Apr 2015 20:09:48 +0000 (20:09 +0000)]
bcm53xx: add power button for Buffalo WZR-1750DHP

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

9 years agobcm53xx: add USB LED for Buffalo WZR-1750DHP
nbd [Thu, 16 Apr 2015 20:09:42 +0000 (20:09 +0000)]
bcm53xx: add USB LED for Buffalo WZR-1750DHP

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

9 years agobcm53xx: make NAND flash timeouts non-interruptible to fix corruption issues
nbd [Thu, 16 Apr 2015 20:09:36 +0000 (20:09 +0000)]
bcm53xx: make NAND flash timeouts non-interruptible to fix corruption issues

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

9 years agobase-files: reorder led trigger/brightness writes
nbd [Thu, 16 Apr 2015 20:09:30 +0000 (20:09 +0000)]
base-files: reorder led trigger/brightness writes

Depending on configuration, disable the LED before writing the trigger
and enable it after writing it. Fixes LEDs where the value defaults to 1

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

9 years agobase-files: add generic preinit script to extract board/model info from device-tree
nbd [Thu, 16 Apr 2015 20:09:21 +0000 (20:09 +0000)]
base-files: add generic preinit script to extract board/model info from device-tree

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

9 years agobcm53xx: increate trx maxlen to prevent build failures with bigger images
nbd [Thu, 16 Apr 2015 20:09:15 +0000 (20:09 +0000)]
bcm53xx: increate trx maxlen to prevent build failures with bigger images

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

9 years agobcm53xx: fix WXR-1900DHP power led name and add usb led
nbd [Thu, 16 Apr 2015 20:09:08 +0000 (20:09 +0000)]
bcm53xx: fix WXR-1900DHP power led name and add usb led

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

9 years agomvebu: better integrate xp-gp
luka [Thu, 16 Apr 2015 13:53:57 +0000 (13:53 +0000)]
mvebu: better integrate xp-gp

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

9 years agobcm53xx: make use of the new board detection layer
nbd [Thu, 16 Apr 2015 12:18:34 +0000 (12:18 +0000)]
bcm53xx: make use of the new board detection layer

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

9 years agobuild: tell users to do non-paralle builds on errors
nbd [Thu, 16 Apr 2015 12:18:26 +0000 (12:18 +0000)]
build: tell users to do non-paralle builds on errors

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

9 years agomvebu: add support for the Linksys Caiman and Cobra
kaloz [Thu, 16 Apr 2015 09:54:39 +0000 (09:54 +0000)]
mvebu: add support for the Linksys Caiman and Cobra

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

9 years agomvebu: bring back CONFIG_CPU_THERMAL
luka [Thu, 16 Apr 2015 00:23:34 +0000 (00:23 +0000)]
mvebu: bring back CONFIG_CPU_THERMAL

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

9 years agomvebu: refresh kernel config
luka [Thu, 16 Apr 2015 00:10:42 +0000 (00:10 +0000)]
mvebu: refresh kernel config

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

9 years agomvebu: fix typo in marvell profile
luka [Wed, 15 Apr 2015 16:23:20 +0000 (16:23 +0000)]
mvebu: fix typo in marvell profile

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

9 years agomvebu: better integrate 385-ap-db
luka [Wed, 15 Apr 2015 16:23:10 +0000 (16:23 +0000)]
mvebu: better integrate 385-ap-db

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

9 years agobcm53xx: add USB 2.0 power control for WXR-1900DHP
nbd [Wed, 15 Apr 2015 16:06:20 +0000 (16:06 +0000)]
bcm53xx: add USB 2.0 power control for WXR-1900DHP

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

9 years agobcm53xx: add USB 2.0 support
nbd [Wed, 15 Apr 2015 16:06:14 +0000 (16:06 +0000)]
bcm53xx: add USB 2.0 support

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

9 years agoodhcp6c: silence "bad number" warnings
cyrus [Wed, 15 Apr 2015 14:04:17 +0000 (14:04 +0000)]
odhcp6c: silence "bad number" warnings

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

9 years agoodhcp6c: avoid saving empty RA search domains
cyrus [Wed, 15 Apr 2015 12:57:41 +0000 (12:57 +0000)]
odhcp6c: avoid saving empty RA search domains

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

9 years agoopkg: fix md5 related #ifdef (thx, swalker)
nbd [Tue, 14 Apr 2015 22:10:40 +0000 (22:10 +0000)]
opkg: fix md5 related #ifdef (thx, swalker)

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

9 years agouclient: update to the latest version, fixes a crash in processing redirect/disconnec...
nbd [Tue, 14 Apr 2015 21:05:45 +0000 (21:05 +0000)]
uclient: update to the latest version, fixes a crash in processing redirect/disconnect after headers

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

9 years agobcm53xx: add (disabled) support for upgrading kernel during sysupgrade
rmilecki [Tue, 14 Apr 2015 20:50:59 +0000 (20:50 +0000)]
bcm53xx: add (disabled) support for upgrading kernel during sysupgrade

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

9 years agootrx: support for creating simple TRX files
rmilecki [Tue, 14 Apr 2015 20:50:53 +0000 (20:50 +0000)]
otrx: support for creating simple TRX files

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

9 years agootrx: change command line API to start with a mode
rmilecki [Tue, 14 Apr 2015 20:50:46 +0000 (20:50 +0000)]
otrx: change command line API to start with a mode

This will allow adding more modes without options conflict.

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

9 years agorpcd: update to latest git HEAD
blogic [Tue, 14 Apr 2015 19:01:29 +0000 (19:01 +0000)]
rpcd: update to latest git HEAD

adds support for reading md5 sums of files

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

9 years agoustream-ssl: update to latest git HEAD
blogic [Tue, 14 Apr 2015 19:01:24 +0000 (19:01 +0000)]
ustream-ssl: update to latest git HEAD

fixes long writes when using polarssl

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

9 years agofstools: update to latest git HEAD
blogic [Tue, 14 Apr 2015 19:01:09 +0000 (19:01 +0000)]
fstools: update to latest git HEAD

fixes issues with semi-initialized overlay partitions during firstboot

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

9 years agoar71xx: Enable AT803X_PHY to set special flags
blogic [Tue, 14 Apr 2015 19:00:57 +0000 (19:00 +0000)]
ar71xx: Enable AT803X_PHY to set special flags

Open-Mesh OM5P-AN use a AT8035 (F1E) behind one of the ethernet ports. This PHY
requires special flags to work correctly. Otherwise massive packet loss happens
with active POE or when switching the link speed from gigabit ethernet to fast
ethernet. The generic PHY doesn't have support to change these settings.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45439 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: fix ethernet packet loss issues on OM5P-AN
blogic [Tue, 14 Apr 2015 19:00:51 +0000 (19:00 +0000)]
ar71xx: fix ethernet packet loss issues on OM5P-AN

The OM5P-AN boards are suffering from ethernet packet loss when booting with
some active POE setups or when switching to Fast Ethernet when previously
booted with Gigabit ethernet attached.

The cause of the problem is that the AR8035 PHYs requires special register
settings to work reliably on these boards. Enable the RGMII TX, RX delays and
disable SmartEE functionality of the AR8035 PHYs. Also enable the RXD and RDV
delay in the ETH_CFG register to fix the issue.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45438 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoopkg: drop md5 in favour of sha256
blogic [Tue, 14 Apr 2015 19:00:14 +0000 (19:00 +0000)]
opkg: drop md5 in favour of sha256

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

9 years agootrx: use %zd to fix printf format warnings
rmilecki [Tue, 14 Apr 2015 16:16:11 +0000 (16:16 +0000)]
otrx: use %zd to fix printf format warnings

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

9 years agoodhcpd: fix accidental logic inversion
cyrus [Tue, 14 Apr 2015 14:21:52 +0000 (14:21 +0000)]
odhcpd: fix accidental logic inversion

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

9 years agobuild: replace the deprecated find argument -perm +0100 with /0100 (#19480)
nbd [Tue, 14 Apr 2015 12:49:30 +0000 (12:49 +0000)]
build: replace the deprecated find argument -perm +0100 with /0100 (#19480)

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