openwrt/svn-archive/archive.git
10 years agoralink: mt7620 has obchi/ehci and not dwc2
John Crispin [Mon, 1 Sep 2014 13:21:59 +0000 (13:21 +0000)]
ralink: mt7620 has obchi/ehci and not dwc2

fix the default package selection

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

SVN-Revision: 42383

10 years agomac80211/rt2x00: allow disabling bands through dts
John Crispin [Mon, 1 Sep 2014 13:21:57 +0000 (13:21 +0000)]
mac80211/rt2x00: allow disabling bands through dts

Add dts property ralink,2ghz and ralink,5ghz
e.g. disable 2ghz band:
wmac@10180000 {
  status = "okay";
  ralink,2ghz = <0>;
}

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

SVN-Revision: 42382

10 years agoar71xx: use ETH_ALEN for consistency
John Crispin [Mon, 1 Sep 2014 13:21:56 +0000 (13:21 +0000)]
ar71xx: use ETH_ALEN for consistency

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Backport of r42280

SVN-Revision: 42381

10 years agoar71xx: enable sysupgrade for the EnGenius ESR900
John Crispin [Mon, 1 Sep 2014 13:21:55 +0000 (13:21 +0000)]
ar71xx: enable sysupgrade for the EnGenius ESR900

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Backport of r42279

SVN-Revision: 42380

10 years agopackage/*: remove useless explicit set of function returncode
John Crispin [Mon, 1 Sep 2014 13:21:54 +0000 (13:21 +0000)]
package/*: remove useless explicit set of function returncode

somebody started to set a function returncode in the validation
stuff and everybody copies it, e.g.

myfunction()
{
fire_command

return $?
}

a function automatically returns with the last returncode,
so we can safely remove the command 'return $?'. reference:

http://tldp.org/LDP/abs/html/exit-status.html
"The last command executed in the function or script determines the exit status."

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

SVN-Revision: 42379

10 years agoramips: enable second SPI for VoCore
John Crispin [Mon, 1 Sep 2014 13:21:52 +0000 (13:21 +0000)]
ramips: enable second SPI for VoCore

This patch enables the second SPI as spidev and also fixes some typos.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42277

SVN-Revision: 42378

10 years agoramips: Add support for SPI_CS1 pinmux
John Crispin [Mon, 1 Sep 2014 13:21:51 +0000 (13:21 +0000)]
ramips: Add support for SPI_CS1 pinmux

This patch adds support for setting SPI_CS1 as Chip Select, Watchdog reset output and GPIO#27.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r41938

SVN-Revision: 42377

10 years agoramips: Add support for VoCore
John Crispin [Mon, 1 Sep 2014 13:21:49 +0000 (13:21 +0000)]
ramips: Add support for VoCore

This is based and tested on VoCore Alpha, but other stuff like status/eth LEDs are present on the final board revision + VoDock.
All GPIOs are exported, except spi/i2c.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r41939

SVN-Revision: 42376

10 years agoramips: second spi device on rt5350
John Crispin [Mon, 1 Sep 2014 13:21:48 +0000 (13:21 +0000)]
ramips: second spi device on rt5350

This is based on Jon Smirl's patch with the following changes:
- Set CS polarity as low by default.
- Add support for changing CS polarity.
- Add support for changing LSB/MSB.
- Add support for changing SPI mode.
- Fix indentations.

I tested it on a VoCore. Works fine connected to a second flash, but fails to detect MMC/SD cards due to SPI clock speed.

Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42276

SVN-Revision: 42375

10 years agofirewall: the firewall did not start properly on boot
John Crispin [Mon, 1 Sep 2014 13:21:46 +0000 (13:21 +0000)]
firewall: the firewall did not start properly on boot

https://dev.openwrt.org/ticket/17593

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

SVN-Revision: 42374

10 years agolibubox: update to latest git revision
John Crispin [Mon, 1 Sep 2014 13:21:45 +0000 (13:21 +0000)]
libubox: update to latest git revision

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

SVN-Revision: 42373

10 years agovalgrind: fix build failure on uml
John Crispin [Mon, 1 Sep 2014 13:21:44 +0000 (13:21 +0000)]
valgrind: fix build failure on uml

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Backport of r42229

SVN-Revision: 42372

10 years agobrcm47xx: image: build alternative TRX using less optimized LZMA
John Crispin [Mon, 1 Sep 2014 13:21:42 +0000 (13:21 +0000)]
brcm47xx: image: build alternative TRX using less optimized LZMA

There is a group of devices that lzma-loader doesn't work with. They
simply hang at "Starting program at 0x80001000" which is really hard to
debug and we didn't find any solution for this for years.

Broadcom doesn't use lzma-loader on these devices anyway. They decided
to drop lzma-loader and use less optimal LZMA compression that can be
handled by CFE itself (it doesn't use dictionary).

So support these devices we will need kernel compressed with different
parameters and trx without a loader.

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

SVN-Revision: 42371

10 years agoramips: Add support for Omnima MiniPlug
John Crispin [Mon, 1 Sep 2014 13:21:40 +0000 (13:21 +0000)]
ramips: Add support for Omnima MiniPlug

This patch adds support for the Omnima MiniPlug RT5350 based board, 8MB SPI flash

Signed-off-by: Ivan Ignjatic<ivan@omnima.co.uk>
Backport of r42200

SVN-Revision: 42370

10 years agogmp: add host compile
John Crispin [Mon, 1 Sep 2014 13:21:38 +0000 (13:21 +0000)]
gmp: add host compile

Currently, any package that uses host compile and depends on
libgmp.so will fail. This is because gmp is not compile for
host machine. So, staging_dir/host has only static lib for gmp

 $ ls staging_dir/host/lib/libgmp* -1
 staging_dir/host/lib/libgmp.a
 staging_dir/host/lib/libgmp.la
 staging_dir/host/lib/libgmpxx.a
 staging_dir/host/lib/libgmpxx.la

Addind host compile in gmp, the dependent package can use:

 PKG_BUILD_DEPENDS:=gmp/host

That will compile gmp to staging_dir/host with *.so files

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Backport of r42196

SVN-Revision: 42369

10 years agobusybox: Fix pam_start link errors when PAM support is enabled
John Crispin [Mon, 1 Sep 2014 13:21:36 +0000 (13:21 +0000)]
busybox: Fix pam_start link errors when PAM support is enabled

Patch to BusyBox Makefile to fix linker errors when PAM support is enabled by
CONFIG_BUSYBOX_CONFIG_PAM=y. Typical errors include:
login.c:(.text.login_main+0x122): undefined reference to `pam_start'

Signed-off-by: Stephen Parry <sgparry@mainscreen.com>
Backport of r42195

SVN-Revision: 42368

10 years agoar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC
John Crispin [Mon, 1 Sep 2014 13:21:34 +0000 (13:21 +0000)]
ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC

This sets the MAC address of the WLAN interface to the "official" primary MAC
address (the one on the label under the devices, and the one used with the stock
firmware). The MAC address used so far (primary-1) isn't even used at all with
the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the
WAN interface (like OpenWrt does with this patch).

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

SVN-Revision: 42367

10 years agoralink: clean up HAME profiles, remove unnecessary packages.
John Crispin [Mon, 1 Sep 2014 13:21:32 +0000 (13:21 +0000)]
ralink: clean up HAME profiles, remove unnecessary packages.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Backport of r42192

SVN-Revision: 42366

10 years agoramips: add mpr-a1 to default profile
John Crispin [Mon, 1 Sep 2014 13:21:31 +0000 (13:21 +0000)]
ramips: add mpr-a1 to default profile

Add hame mpr-a1 to default ramips profile.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Backport of r42191

SVN-Revision: 42365

10 years agoar71xx: build factory image for EnGenius ESR900 and ESR1750
John Crispin [Mon, 1 Sep 2014 13:21:29 +0000 (13:21 +0000)]
ar71xx: build factory image for EnGenius ESR900 and ESR1750

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Backport of r42189

SVN-Revision: 42364

10 years agoar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board
John Crispin [Mon, 1 Sep 2014 13:21:27 +0000 (13:21 +0000)]
ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board

The OpenMesh MR600(v1) can only enable the 2.4G WiFi PHY LED through the
mini-PCIe device. Not configuring the LED pin inside the platform data
makes it impossible to configure it through any standard OpenWrt tool.

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

SVN-Revision: 42363

10 years agolantiq: generate unique ARV7519RW22 firmware
John Crispin [Mon, 1 Sep 2014 13:21:25 +0000 (13:21 +0000)]
lantiq: generate unique ARV7519RW22 firmware

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42183

SVN-Revision: 42362

10 years agolantiq: add support for xrx200 firmware depending on soc type
John Crispin [Mon, 1 Sep 2014 13:21:23 +0000 (13:21 +0000)]
lantiq: add support for xrx200 firmware depending on soc type

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42182

SVN-Revision: 42361

10 years agolantiq: export soc type
John Crispin [Mon, 1 Sep 2014 13:21:21 +0000 (13:21 +0000)]
lantiq: export soc type

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42181

SVN-Revision: 42360

10 years agolantiq: improve ARV7519RW22 support
John Crispin [Mon, 1 Sep 2014 13:21:19 +0000 (13:21 +0000)]
lantiq: improve ARV7519RW22 support

- use full board name
- rename uboot-env partition
- add dsl_fw partition
- remove unneeded pinmux groups
- move gigabit ethernet to LAN
- load mac address from mtd

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42180

SVN-Revision: 42359

10 years agoramips: add a workaround to fix failsafe on RT5350
John Crispin [Mon, 1 Sep 2014 13:21:17 +0000 (13:21 +0000)]
ramips: add a workaround to fix failsafe on RT5350

Due to TCP connections not working when VLAN is disabled, this is
needed to get failsafe functional.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Backport of r42179

SVN-Revision: 42358

10 years agoramips: enable additional GPIOs on HAME MPR-A1
John Crispin [Mon, 1 Sep 2014 13:21:15 +0000 (13:21 +0000)]
ramips: enable additional GPIOs on HAME MPR-A1

According to the pcb tracing results[1] by anton.rad[2] MPR-A1s expose
6 unused GPIOs, only one of them working as configured in the current
DTS. This patch enables GPIO22-26.

Tested on hardware.

[1] http://i.imgur.com/kHVW2Ox.jpg
[2] https://forum.openwrt.org/viewtopic.php?pid=222698#p222698

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Backport of r42178

SVN-Revision: 42357

10 years agoar71xx: changed the EnGenius ESR900 mtdparts to match that of the ESR1750 since they...
John Crispin [Mon, 1 Sep 2014 13:21:13 +0000 (13:21 +0000)]
ar71xx: changed the EnGenius ESR900 mtdparts to match that of the ESR1750 since they have the same flash layout

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Backport of r42177

SVN-Revision: 42356

10 years agoppp: enable IPv6CP by default
John Crispin [Mon, 1 Sep 2014 13:21:11 +0000 (13:21 +0000)]
ppp: enable IPv6CP by default

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

SVN-Revision: 42355

10 years agofirewall: fix potential NULL pointer access
John Crispin [Mon, 1 Sep 2014 13:21:09 +0000 (13:21 +0000)]
firewall: fix potential NULL pointer access

Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting.

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

SVN-Revision: 42354

10 years agofirewall: implement selective conntrack flushing (#10225)
John Crispin [Mon, 1 Sep 2014 13:21:07 +0000 (13:21 +0000)]
firewall: implement selective conntrack flushing (#10225)

Utilize the new selective conntrack flushing facility to clear
out active conntrack entries referring to old IP addresses after
a firewall reload.

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

SVN-Revision: 42353

10 years agobuild: enable PER_FEED_REPO by default
John Crispin [Mon, 1 Sep 2014 13:21:05 +0000 (13:21 +0000)]
build: enable PER_FEED_REPO by default

Enable the separate feed repositories by default to align custom builds with the repositories
available on the snapshot download server.

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

SVN-Revision: 42352

10 years agohostapd: fix some whitespaces
John Crispin [Mon, 1 Sep 2014 13:21:04 +0000 (13:21 +0000)]
hostapd: fix some whitespaces

Signed-off-by: Luka Perkov <luka@openwrt.org>
Backport of r42111

SVN-Revision: 42351

10 years agobroadcom-wl: add default tx and rx antennas
John Crispin [Mon, 1 Sep 2014 13:21:02 +0000 (13:21 +0000)]
broadcom-wl: add default tx and rx antennas

This adds default tx and rx antennas, so that LuCI shows automatic as the default radio option for the antennas.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Backport of r42085

SVN-Revision: 42350

10 years agonetifd: update to the latest version, adds interface cleanup fixes
Felix Fietkau [Sun, 31 Aug 2014 13:09:15 +0000 (13:09 +0000)]
netifd: update to the latest version, adds interface cleanup fixes

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

SVN-Revision: 42347

10 years agonetifd: update to the latest version, fixes proto-shell teardown after renew
Felix Fietkau [Sun, 31 Aug 2014 13:09:14 +0000 (13:09 +0000)]
netifd: update to the latest version, fixes proto-shell teardown after renew

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

SVN-Revision: 42346

10 years agonettle: disable mips16 support to improve performance
Felix Fietkau [Sun, 31 Aug 2014 12:04:22 +0000 (12:04 +0000)]
nettle: disable mips16 support to improve performance

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Backport of r42341

SVN-Revision: 42342

10 years agoimagebuilder: remove postinst files before generating image
Felix Fietkau [Sun, 31 Aug 2014 11:06:48 +0000 (11:06 +0000)]
imagebuilder: remove postinst files before generating image

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

SVN-Revision: 42340

10 years agoBB: binutils: link libbfd and libopcodes dynamically again
Jonas Gorski [Sat, 30 Aug 2014 11:04:19 +0000 (11:04 +0000)]
BB: binutils: link libbfd and libopcodes dynamically again

Backport of r42337.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42338

10 years agomac80211: fix crash when unloading drivers (#17706)
Felix Fietkau [Fri, 29 Aug 2014 20:41:20 +0000 (20:41 +0000)]
mac80211: fix crash when unloading drivers (#17706)

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

SVN-Revision: 42330

10 years agotools/libtool: add missing dependency on m4
Felix Fietkau [Fri, 29 Aug 2014 11:37:50 +0000 (11:37 +0000)]
tools/libtool: add missing dependency on m4

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

SVN-Revision: 42323

10 years agotools/bc: add missing dependency on bison
Felix Fietkau [Wed, 27 Aug 2014 09:52:44 +0000 (09:52 +0000)]
tools/bc: add missing dependency on bison

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

SVN-Revision: 42311

10 years agotools/flex: disable building shared libfl.so
Felix Fietkau [Wed, 27 Aug 2014 09:52:43 +0000 (09:52 +0000)]
tools/flex: disable building shared libfl.so

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

SVN-Revision: 42310

10 years agotarget/toolchain: strip files, leave out the initial gcc
Felix Fietkau [Tue, 26 Aug 2014 12:33:15 +0000 (12:33 +0000)]
target/toolchain: strip files, leave out the initial gcc

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

SVN-Revision: 42303

10 years agobuild: override hardcoded paths to bison and m4 to make the SDK more relocatable
Felix Fietkau [Tue, 26 Aug 2014 12:16:18 +0000 (12:16 +0000)]
build: override hardcoded paths to bison and m4 to make the SDK more relocatable

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

SVN-Revision: 42301

10 years agoBB: uhttpd: do not configure TLS parameters if libustream-ssl is not present
Jo-Philipp Wich [Mon, 25 Aug 2014 12:46:35 +0000 (12:46 +0000)]
BB: uhttpd: do not configure TLS parameters if libustream-ssl is not present

A quite frequent problem after sysupgrading from an older, SSL enabled build
is that ustream-ssl is not installed so uhttpd fails to come up again due to
https listening directives in the preserved configuration.

Skip key/cert and ssl listen options when libustream-ssl.so is not present.

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

SVN-Revision: 42286

10 years agoBB: iwinfo: properly decode SSIDs when scanning through wpa_supplicant
Jo-Philipp Wich [Mon, 25 Aug 2014 12:46:27 +0000 (12:46 +0000)]
BB: iwinfo: properly decode SSIDs when scanning through wpa_supplicant

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

SVN-Revision: 42285

10 years agoodhcp6c: enable softwires support by default
Steven Barth [Mon, 25 Aug 2014 06:12:19 +0000 (06:12 +0000)]
odhcp6c: enable softwires support by default

SVN-Revision: 42275

10 years agoodhcpd: fix static lease behavior with dhcpv4
Steven Barth [Sun, 24 Aug 2014 08:13:42 +0000 (08:13 +0000)]
odhcpd: fix static lease behavior with dhcpv4

SVN-Revision: 42271

10 years agouclient: update to latest version, fixes HTTP keepalive issues
Felix Fietkau [Thu, 21 Aug 2014 19:13:10 +0000 (19:13 +0000)]
uclient: update to latest version, fixes HTTP keepalive issues

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

SVN-Revision: 42258

10 years agoBB: dropbear: restore performance by disabling mips16
Jonas Gorski [Thu, 21 Aug 2014 18:28:09 +0000 (18:28 +0000)]
BB: dropbear: restore performance by disabling mips16

Disable MIPS16 to prevent it negatively affecting performance.
Observed was a increase of connection delay from ~6 to ~11 seconds
and a reduction of scp speed from 1.1MB/s to 710kB/s on brcm63xx.

Fixes #15209.

Backport of r42250.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42255

10 years agobase-files: increase igmp_max_memberships to improve multicast-proxy handling
Steven Barth [Wed, 20 Aug 2014 10:19:03 +0000 (10:19 +0000)]
base-files: increase igmp_max_memberships to improve multicast-proxy handling

SVN-Revision: 42228

10 years agodnsmasq: fix a race condition possibly leading to lockup
Steven Barth [Wed, 20 Aug 2014 09:53:29 +0000 (09:53 +0000)]
dnsmasq: fix a race condition possibly leading to lockup

SVN-Revision: 42226

10 years agoodhcpd: bump for bugfixes
Steven Barth [Tue, 19 Aug 2014 06:00:09 +0000 (06:00 +0000)]
odhcpd: bump for bugfixes

SVN-Revision: 42219

10 years agodnsmasq: respect option dhcpv4 disabled in dhcp-config
Steven Barth [Tue, 19 Aug 2014 06:00:07 +0000 (06:00 +0000)]
dnsmasq: respect option dhcpv4 disabled in dhcp-config

SVN-Revision: 42218

10 years agobb: bump netifd
Steven Barth [Tue, 19 Aug 2014 05:39:28 +0000 (05:39 +0000)]
bb: bump netifd

SVN-Revision: 42213

10 years agoar7: backport r42168
Florian Fainelli [Sat, 16 Aug 2014 17:35:13 +0000 (17:35 +0000)]
ar7: backport r42168

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 42169

10 years agoBB: brcm47xx: image: update list of Netgear WNR* firmwares
Hauke Mehrtens [Thu, 14 Aug 2014 21:24:14 +0000 (21:24 +0000)]
BB: brcm47xx: image: update list of Netgear WNR* firmwares

backport of r42165

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

10 years agoBB: brcm47xx: fix brcm47xx.legacy build
Hauke Mehrtens [Thu, 14 Aug 2014 21:23:36 +0000 (21:23 +0000)]
BB: brcm47xx: fix brcm47xx.legacy build

we should check for ssb here.

backport of r42164.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42166

10 years agoBB: feeds: switch telephony feed to for-14.07 branch
Steven Barth [Wed, 13 Aug 2014 14:04:01 +0000 (14:04 +0000)]
BB: feeds: switch telephony feed to for-14.07 branch

Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
SVN-Revision: 42159

10 years agoodhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)
Steven Barth [Tue, 12 Aug 2014 13:30:38 +0000 (13:30 +0000)]
odhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 42154

10 years agoBB: package: fix segfault of iwinfo.scanlist("radio0").
Jo-Philipp Wich [Tue, 12 Aug 2014 11:15:38 +0000 (11:15 +0000)]
BB: package: fix segfault of iwinfo.scanlist("radio0").

This is a bug revealed in r41830.

First, the static variable `char nif[IFNAMSIZ]` of nl80211_phy2ifname()
would be zeroed out if the argument is "wlan0" or the like.  This will
happen in the following call stack.

 nl80211_get_scanlist("radio0", buf, len);
   nl80211_phy2ifname("radio0") // return static var nif with content "wlan0"
   nl80211_get_scanlist(nif, buf, len); // tail call
     nl80211_get_mode(nif);
        nl80211_phy2ifname(nif); // zero out nif

Later we try nl80211_ifadd("") which was supposed to create interface
"tmp.", but that won't happen because nl80211_msg() will put an invalid
ifidx 0 to the nlmsg.

Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily
nl80211_get_scanlist() returned 0 and left *len undefined.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Backport of r42151

SVN-Revision: 42152

10 years agoBB: base-files: /lib/functions/network.sh: fix network_get_ipaddr6
Jo-Philipp Wich [Mon, 11 Aug 2014 18:17:09 +0000 (18:17 +0000)]
BB: base-files: /lib/functions/network.sh: fix network_get_ipaddr6

When looking for the first ipaddr also consider the current prefix just
like network_get_ipaddrs6 does. If ipv6-address was empty the function
did not return the first ipaddr even if the list was non-empty.

fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006

Signed-off-by: Henning Schild <henning@hennsch.de>
Backport of r42139

SVN-Revision: 42140

10 years agoBB: netfilter: consider reply direction on selective flushing
Jo-Philipp Wich [Sun, 10 Aug 2014 10:17:03 +0000 (10:17 +0000)]
BB: netfilter: consider reply direction on selective flushing

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

SVN-Revision: 42096

10 years agoBB: netfilter: support /proc conntrack flushing of specific ip addresses
Jo-Philipp Wich [Sun, 10 Aug 2014 09:21:19 +0000 (09:21 +0000)]
BB: netfilter: support /proc conntrack flushing of specific ip addresses

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

SVN-Revision: 42094

10 years agoBB: build: fix removal of old .ipk files with CONFIG_PER_FEED_REPO
Jo-Philipp Wich [Sat, 9 Aug 2014 13:05:03 +0000 (13:05 +0000)]
BB: build: fix removal of old .ipk files with CONFIG_PER_FEED_REPO

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

SVN-Revision: 42091

10 years agoBB: build: consider sub-directories when deploying packages to image with CONFIG_PER_...
Jo-Philipp Wich [Sat, 9 Aug 2014 12:11:34 +0000 (12:11 +0000)]
BB: build: consider sub-directories when deploying packages to image with CONFIG_PER_FEED_REPO (#17430)

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

SVN-Revision: 42089

10 years agobroadcom-wl: add support for a8xx broadcom devices
Hauke Mehrtens [Fri, 8 Aug 2014 23:06:16 +0000 (23:06 +0000)]
broadcom-wl: add support for a8xx broadcom devices

Tested on Comtrend VR-3025u (brcm6368 + a8d6-43222).

backport of: r42084

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

10 years agobrcm47xx: fix reboot problem on BCM4705/BCM4785
Hauke Mehrtens [Fri, 8 Aug 2014 23:05:24 +0000 (23:05 +0000)]
brcm47xx: fix reboot problem on BCM4705/BCM4785

This adds some code based on code from the Broadcom GPL tar to fix the
reboot problems on BCM4705/BCM4785. I tried rebooting my device for ~10
times and have never seen a problem. This reverts the changes in the
previous commit and adds the real fix as suggested by Rafał.

Setting bit 22 in Reg 22, sel 4 puts the BIU (Bus Interface Unit) into
async mode.

backport of: r42083

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 42086

10 years agoodhcpd: avoid logspam in certain corner cases
Steven Barth [Fri, 8 Aug 2014 08:46:26 +0000 (08:46 +0000)]
odhcpd: avoid logspam in certain corner cases

SVN-Revision: 42068

10 years agoodhcpd: write host-entries for all leased IPv6 addresses
Steven Barth [Fri, 8 Aug 2014 05:31:38 +0000 (05:31 +0000)]
odhcpd: write host-entries for all leased IPv6 addresses

SVN-Revision: 42066

10 years agocyassl: update to 3.1.0
Steven Barth [Fri, 8 Aug 2014 05:26:21 +0000 (05:26 +0000)]
cyassl: update to 3.1.0

SVN-Revision: 42064

10 years agopolarssl: bump to 1.3.8
Steven Barth [Fri, 8 Aug 2014 05:21:38 +0000 (05:21 +0000)]
polarssl: bump to 1.3.8

SVN-Revision: 42062

10 years agoopenssl: another day another bug fix update
John Crispin [Thu, 7 Aug 2014 20:55:33 +0000 (20:55 +0000)]
openssl: another day another bug fix update

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

SVN-Revision: 42056

10 years agobase-files: enable option to skip the netfilter "filter" table for established connec...
Felix Fietkau [Thu, 7 Aug 2014 19:31:19 +0000 (19:31 +0000)]
base-files: enable option to skip the netfilter "filter" table for established connection packets by default

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

SVN-Revision: 42051

10 years agokernel: add a patch to allow disabling processing of the netfilter "filter" table...
Felix Fietkau [Thu, 7 Aug 2014 19:31:18 +0000 (19:31 +0000)]
kernel: add a patch to allow disabling processing of the netfilter "filter" table for established connection packets

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

SVN-Revision: 42050

10 years agokernel: improve ipv4 netfilter optimization patch
Felix Fietkau [Thu, 7 Aug 2014 19:31:16 +0000 (19:31 +0000)]
kernel: improve ipv4 netfilter optimization patch

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

SVN-Revision: 42049

10 years agoodhcpd: update hostfile more often
Steven Barth [Thu, 7 Aug 2014 18:08:10 +0000 (18:08 +0000)]
odhcpd: update hostfile more often

SVN-Revision: 42043

10 years agoralink: revert r37163
John Crispin [Thu, 7 Aug 2014 12:42:26 +0000 (12:42 +0000)]
ralink: revert r37163

https://dev.openwrt.org/ticket/17071

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

SVN-Revision: 42039

10 years agoiptables: add kmod-ipt-nf* to dependency list of iptables-mod-nf*.
Steven Barth [Thu, 7 Aug 2014 12:33:22 +0000 (12:33 +0000)]
iptables: add kmod-ipt-nf* to dependency list of iptables-mod-nf*.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 42035

10 years agonetifd: bump to latest version
Steven Barth [Thu, 7 Aug 2014 10:24:28 +0000 (10:24 +0000)]
netifd: bump to latest version

SVN-Revision: 42033

10 years agoar71xx: Add support for the WNDR3800CH
Steven Barth [Thu, 7 Aug 2014 10:00:30 +0000 (10:00 +0000)]
ar71xx: Add support for the WNDR3800CH

Apparently this is a fairly common refurb unit of the 3800 series now,
with merely the recognition string changed in the boot loader.

Signed-off-by: Dave Taht <dave.taht@bufferbloat.net>
SVN-Revision: 42031

10 years agoiptables: NFLOG and NFQUEUE targets' full support
Steven Barth [Thu, 7 Aug 2014 10:00:28 +0000 (10:00 +0000)]
iptables: NFLOG and NFQUEUE targets' full support

NFLOG and NFQUEUE targets' full support for iptables.

Includes all needed kernel modules (Xtables's and Netlink's)
 and userspace libraries.
All added kernel modules can be individually disabled,
 all other new libraries get their own individual packages.

Reported-by: Fabian Hugelshofer <hugelshofer2006@gmx.ch>
Reported-by: Rainer Poisel <rainer.poisel@fhstp.ac.at>
Reported-by: Derek LaHousse <dlahouss@mtu.edu>
Signed-off-by: Guillaume Déflache <guillaume.deflache@ibwag.com>
SVN-Revision: 42030

10 years agoocteon: add missing gpio_to_irq()
John Crispin [Thu, 7 Aug 2014 09:55:11 +0000 (09:55 +0000)]
octeon: add missing gpio_to_irq()

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

SVN-Revision: 42029

10 years agoodhcpd: correct incorrect commit-id in last commit
Steven Barth [Thu, 7 Aug 2014 05:51:21 +0000 (05:51 +0000)]
odhcpd: correct incorrect commit-id in last commit

SVN-Revision: 42027

10 years agoodhcpd: skip MSRs in RAs for prefixes with same size as DP
Steven Barth [Thu, 7 Aug 2014 05:34:43 +0000 (05:34 +0000)]
odhcpd: skip MSRs in RAs for prefixes with same size as DP

SVN-Revision: 42025

10 years agoBB: mac80211: b43: update b43 to version master-2014-07-29-1
Hauke Mehrtens [Wed, 6 Aug 2014 22:02:14 +0000 (22:02 +0000)]
BB: mac80211: b43: update b43 to version master-2014-07-29-1

This add 5GHz support for N-PHY to b43, thanks Rafał Miłecki.

b43_wflush16 was put into an extra function because it is pretty big in asm.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport: r41900

SVN-Revision: 42021

10 years agokernel: update bcma to version master-2014-07-29-1
Hauke Mehrtens [Wed, 6 Aug 2014 22:01:13 +0000 (22:01 +0000)]
kernel: update bcma to version master-2014-07-29-1

This is a backport of bcma from wireless-tesing/master tag master-2014-07-29-1.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport: r41899

SVN-Revision: 42020

10 years agobuild: add new option to add disabled feeds commented out to opkg.conf
John Crispin [Wed, 6 Aug 2014 18:18:49 +0000 (18:18 +0000)]
build: add new option to add disabled feeds commented out to opkg.conf

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

SVN-Revision: 42018

10 years agoinclude: fix detection of installed feeds
John Crispin [Wed, 6 Aug 2014 18:18:48 +0000 (18:18 +0000)]
include: fix detection of installed feeds

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

SVN-Revision: 42017

10 years agobuild: introduce per feed repository support
John Crispin [Wed, 6 Aug 2014 18:18:47 +0000 (18:18 +0000)]
build: introduce per feed repository support

This changeset implements a new menuconfig option to generate separate
repositories for each enabled package feed instead of one monolithic one.

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

SVN-Revision: 42016

10 years agoiwinfo: allow scans in AP mode on nl80211
Felix Fietkau [Wed, 6 Aug 2014 17:07:35 +0000 (17:07 +0000)]
iwinfo: allow scans in AP mode on nl80211

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

SVN-Revision: 42015

10 years agoar71xx: update Carambola2 platform data
Felix Fietkau [Wed, 6 Aug 2014 10:30:21 +0000 (10:30 +0000)]
ar71xx: update Carambola2 platform data

Change list:
 * Remove button info on GPIO12, there is no button there.
 * Remove nvram mtd partition, as it's not used for anything, saves 64k for user data.

Tested building for carambola2 target.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
Backport of r41993

SVN-Revision: 42013

10 years agotoolchain/musl: update to version 1.1.4
Felix Fietkau [Wed, 6 Aug 2014 10:30:20 +0000 (10:30 +0000)]
toolchain/musl: update to version 1.1.4

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

SVN-Revision: 42012

10 years agomac80211: refresh patch
Felix Fietkau [Wed, 6 Aug 2014 10:30:19 +0000 (10:30 +0000)]
mac80211: refresh patch

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

SVN-Revision: 42011

10 years agoath9k: disable periodic entropy gathering (keep initial) to fix some stability issues
Felix Fietkau [Wed, 6 Aug 2014 10:30:18 +0000 (10:30 +0000)]
ath9k: disable periodic entropy gathering (keep initial) to fix some stability issues

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

SVN-Revision: 42010

10 years agokernel: when using --gc-sections, add --sort-section=name to get a more stable sortin...
Felix Fietkau [Wed, 6 Aug 2014 10:30:17 +0000 (10:30 +0000)]
kernel: when using --gc-sections, add --sort-section=name to get a more stable sorting order

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

SVN-Revision: 42009

10 years agokernel: add a small xfrm related performance optimization
Felix Fietkau [Wed, 6 Aug 2014 10:30:14 +0000 (10:30 +0000)]
kernel: add a small xfrm related performance optimization

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

SVN-Revision: 42008

10 years agonetfilter: introduce xt_id match
Felix Fietkau [Wed, 6 Aug 2014 10:30:09 +0000 (10:30 +0000)]
netfilter: introduce xt_id match

This commit implements a new netfilter match "xt_id" which can be used to
attach unsigned 32bit IDs to iptables rules.

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

SVN-Revision: 42007

10 years agonetifd: minor fixes (thanks Hans Dedecker)
Steven Barth [Tue, 5 Aug 2014 10:03:48 +0000 (10:03 +0000)]
netifd: minor fixes (thanks Hans Dedecker)

SVN-Revision: 42001