openwrt/staging/dangole.git
7 years agoar71xx: add support for COMFAST CF-E355AC
Enrique Giraldo [Thu, 29 Jun 2017 10:03:03 +0000 (12:03 +0200)]
ar71xx: add support for COMFAST CF-E355AC

COMFAST CF-E355AC is a ceiling mount AP with PoE support, based on
Qualcomm/Atheros QCA9531 + QCA9882.

Short specification:

- 2x 10/100 Mbps Ethernet, with PoE support
- 64MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, 802.11b/g/n
- 2T2R 5 GHz, 802.11ac/n/a
- built-in 4x 3 dBi antennas
- output power (max): 500 mW (27 dBm)
- 1x RGB LED, 1x button
- built-in watchdog chipset

Flash instruction:

Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.

Signed-off-by: Enrique Giraldo <enrique.giraldo@galgus.net>
[whitespace fixes, ac radio caldata offset fix]
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agoar71xx: add support for GL.iNet GL-USB150
Piotr Dymacz [Sat, 19 Aug 2017 16:26:46 +0000 (18:26 +0200)]
ar71xx: add support for GL.iNet GL-USB150

GL.iNet GL-USB150 is an USB dongle WiFi router, based on Atheros AR9331.

Specification:

- 400/400/200 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- Realtek RTL8152B USB to Ethernet bridge (connected with AR9331 PHY4)
- 1T1R 2.4 GHz
- 2x LED, 1x button
- UART header on PCB

Flash instruction:

Vendor firmware is based on OpenWrt CC. GUI or sysupgrade can be used
to flash LEDE firmware.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agohostapd: fix iapp_interface option
Lorenzo Santina [Sat, 9 Sep 2017 14:40:57 +0000 (16:40 +0200)]
hostapd: fix iapp_interface option

ifname variable were not assigned due to syntax error
causing the hostapd config file to have an empty iapp_interface= option

Signed-off-by: Lorenzo Santina <lorenzo.santina.dev@gmail.com>
7 years agolantiq: ARV7519RW22: enable PCIe
Jorge Amorós [Sat, 9 Sep 2017 09:30:03 +0000 (11:30 +0200)]
lantiq: ARV7519RW22: enable PCIe

Enable PCIe to make the (still unsupported) WAVE300 wireless visible to
the system.

Signed-off-by: Jorge Amorós <joramar76@yahoo.es>
7 years agolantiq: VR200v: enable PCI
Vittorio Alfieri [Fri, 8 Sep 2017 10:35:05 +0000 (10:35 +0000)]
lantiq: VR200v: enable PCI

Enable PCI to make the (still unsupported) WAVE300 wireless visible to
the system.

Signed-off-by: Vittorio Alfieri <vittorio88@gmail.com>
7 years agoramips: Archer C50v1: support US and EU versions
Thibaut VARENE [Fri, 28 Jul 2017 11:00:54 +0000 (13:00 +0200)]
ramips: Archer C50v1: support US and EU versions

For the Archer C50v1, the EU and US versions are differentiated by their
respective HW additional version (0x0 for US, 0x2 for EU).

The stock web interface checks this field before flashing, making it
impossible to flash the current (US) factory image on EU hardware.

However the bootloader does not check this field, making it possible to use
a single sysupgrade image for both hardware.

This patch adds the necessary build bits to generate both EU and US factory
images, and renames the target as "Archer C50v1" since there are as of now
3 different versions of Archer C50 (all with different CPUs).

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agotools/firmware-utils: mktplinkfw2: allow parameter override
Thibaut VARENE [Fri, 28 Jul 2017 10:59:42 +0000 (12:59 +0200)]
tools/firmware-utils: mktplinkfw2: allow parameter override

This patch enables commandline override of board hw_ver and hw_ver_add

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agokernel: update 4.4 to 4.4.87
Kevin Darbyshire-Bryant [Thu, 7 Sep 2017 13:13:53 +0000 (14:13 +0100)]
kernel: update 4.4 to 4.4.87

Fixes CVE-2017-11600

No patch refresh required

Compile & run tested: ar71xx - Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agoramips: add support for the HNET C108
Kristian Evensen [Wed, 6 Sep 2017 09:14:16 +0000 (11:14 +0200)]
ramips: add support for the HNET C108

The HNET C108
(http://www.szhwtech88.com/Product-product-cid-100-id-4374.html) is a
mifi based on MT7602A, which has the following specifications:

* CPU: MT7620A
* 1x 10/100Mbps Ethernet.
* 16 MB Flash.
* 64 MB RAM.
* 1x USB 2.0 port. Only power is connected, this port is meant for
charging other devices.
* 1x mini-PCIe slots.
* 1x SIM slots.
* 1x 2.4Ghz WIFI.
* 1x button.
* 6000 mAh battery.
* 5x controllable LEDs.

Works:
* Wifi.
* Switch.
* mini-PCIe slot. Only tested with a USB device (a modem).
* SIM slot.
* Sysupgrade.
* Button (reset).

Not working (also applies to the factory firmware):
* Wifi LED. It is always switched on, there is no relation to the
up/down state or activity of the wireless interface.

Not tested:
* SD card reader.

Notes:
* The C108 has no dedicated status LED. I therefore set the LAN LED as
status LED.

Installation:
The router comes pre-installed with OpenWRT, including a variant of
Luci. The initial firmware install can be done through this UI,
following normal procedure. I.e., access the UI and update the firmware
using the sysupgrade-image. Remember to select that you do not want to
keep existing settings.

Recovery:
If you brick the device, the C108 supports recovery using TFTP. Keep the
reset button pressed for ~5sec when booting to trigger TFTP. Set the
address of the network interface on your machine to 10.10.10.3/24, and
rename your image file to Kernal.bin.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
7 years agokernel: rtl8306: fix port link status
Mathias Kresin [Thu, 31 Aug 2017 05:52:00 +0000 (07:52 +0200)]
kernel: rtl8306: fix port link status

In case the link changes from down to up, the register is only updated
on read. If the link failed/was down, this bit will be 0 until after
reading this bit again.

Fixes a reported link down by swconfig alebit the link is up (query for
the link again will show the correct link status)

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: fix xrx200 switch carrier state
Mathias Kresin [Wed, 9 Aug 2017 16:43:56 +0000 (18:43 +0200)]
lantiq: fix xrx200 switch carrier state

In conditions where none of the switch ports is connected during boot,
the priv->port[i].link != priv->port[i].phydev->link condition is false
since both link values are equal (false). The carrier of the switch
netdev is never set to off and the link state reported by ip is UNKNOWN.

Turn the carrier off if none of the switch ports has a link, regardless
whether something has been changed. Add a check for a carrier to
prevent unnecessary calls to netif_carrier_off() if the carrier is
already off.

Based on a patch send by Martin Schiller.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agodnsmasq: backport arcount edns0 fix
Kevin Darbyshire-Bryant [Fri, 8 Sep 2017 07:56:34 +0000 (08:56 +0100)]
dnsmasq: backport arcount edns0 fix

Don't return arcount=1 if EDNS0 RR won't fit in the packet.

Omitting the EDNS0 RR but setting arcount gives a malformed packet.
Also, don't accept UDP packet size less than 512 in received EDNS0.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agomediatek: fix mdio schedule while atomic error
John Crispin [Thu, 7 Sep 2017 08:11:45 +0000 (10:11 +0200)]
mediatek: fix mdio schedule while atomic error

Signed-off-by: John Crispin <john@phrozen.org>
7 years agodnsmasq: backport official fix for CVE-2017-13704
Kevin Darbyshire-Bryant [Thu, 7 Sep 2017 02:58:23 +0000 (03:58 +0100)]
dnsmasq: backport official fix for CVE-2017-13704

Remove LEDE partial fix for CVE-2017-13704.

Backport official fix from upstream.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> (PKG_RELEASE increase)
7 years agouclient: update to 2017-09-06
Matthias Schiffer [Wed, 6 Sep 2017 13:44:14 +0000 (15:44 +0200)]
uclient: update to 2017-09-06

24d6eded73de uclient-http: fix Host: header for literal IPv6 addresses
83ce236dab86 uclient-fetch: read_data_cb: fix a potential buffer overflow

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoramips: fix default LED configuration
Kristian Evensen [Wed, 6 Sep 2017 06:14:23 +0000 (08:14 +0200)]
ramips: fix default LED configuration

Commit 77645ffcd9ad ("ramips: add support for the GnuBee Personal Cloud
One") dropped the execution permission from 01_leds with the result
that the file isn't started during first boot and no default LED
configuration is added.

Revert the introduced file permission change.

Fixes: FS#979
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
[cherry picked the fix from a board support patch]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoodhcp6c: add workaround for broken extendprefix scenario
Hans Dedecker [Tue, 5 Sep 2017 12:33:01 +0000 (14:33 +0200)]
odhcp6c: add workaround for broken extendprefix scenario

Extendprefix is typically used to extend an IPv6 RA prefix from a mobile
wan link to the LAN; such scenario requires correct RA prefix settings
like the on link flag not being set.
However some mobile manufacter set the RA prefix on link flag which breaks
basic IPv6 routing.
Work around this issue by filtering out the route being equal to the
extended prefix.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agolantiq: drop kernel 4.4 support
Mathias Kresin [Mon, 4 Sep 2017 21:25:15 +0000 (23:25 +0200)]
lantiq: drop kernel 4.4 support

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: switch to kernel 4.9
Edward O'Callaghan [Sun, 30 Jul 2017 12:49:16 +0000 (22:49 +1000)]
lantiq: switch to kernel 4.9

Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
7 years agokernel: update 4.4 to 4.4.86
Kevin Darbyshire-Bryant [Mon, 4 Sep 2017 09:25:09 +0000 (10:25 +0100)]
kernel: update 4.4 to 4.4.86

Refresh patches

Compile & run tested: ar71xx - Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agoar71xx: WNDR4300: use the switch LED trigger on the WAN port
Daniel Gonzalez Cabanelas [Sun, 3 Sep 2017 17:41:42 +0000 (19:41 +0200)]
ar71xx: WNDR4300: use the switch LED trigger on the WAN port

The WAN port on the Netgear WNDR4300 router has two LEDs,
amber and green. Use the switch LED trigger to behave as the
rest of the LAN HW controlled LEDs
- Green: 1 Gbps
- Amber: 100/10 Mbps

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
7 years agoramips: fix mt76x8 dependencies
John Crispin [Tue, 5 Sep 2017 06:08:36 +0000 (08:08 +0200)]
ramips: fix mt76x8 dependencies

The commit merging mt7628 and mt7688 failed to update some
dependencies.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoar71xx: add support for TL-WR1041N(v2) LAN/WAN LEDs.
Kuang Rufan [Fri, 25 Aug 2017 12:45:19 +0000 (20:45 +0800)]
ar71xx: add support for TL-WR1041N(v2) LAN/WAN LEDs.

1. Add support to LAN/WAN LEDs attached to ar8327.
2. Fix the problem that LAN/WAN LEDs does not blink in hardware (auto)
   mode when connected to 10M/100M ethernet.

Signed-off-by: Kuang Rufan <master@a1983.com.cn>
7 years agoodhcp6c: add ra_holdoff config option and update to git HEAD version (FS#964)
Hans Dedecker [Sat, 2 Sep 2017 20:05:01 +0000 (22:05 +0200)]
odhcp6c: add ra_holdoff config option and update to git HEAD version (FS#964)

51733a6 ra: align RA update interval with RFC4861 (FS#964)

Add ra_holdoff config option which allows to configure the RA minimum
update interval which is by default 3 seconds as stated in RFC4861.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agokernel: update 4.9 to 4.9.47
Stijn Tintel [Sun, 3 Sep 2017 06:34:10 +0000 (09:34 +0300)]
kernel: update 4.9 to 4.9.47

Refresh patches.
Compile-tested on ramips/mt7621 and x86/64.
Runtime-tested on ramips/mt7621 and x86/64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agobase-files: add /etc/profile.d to conffiles
Stijn Tintel [Mon, 28 Aug 2017 11:45:23 +0000 (14:45 +0300)]
base-files: add /etc/profile.d to conffiles

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agobase-files: order conffiles alphabetically
Stijn Tintel [Mon, 28 Aug 2017 11:42:22 +0000 (14:42 +0300)]
base-files: order conffiles alphabetically

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoubox: update to git HEAD version
Hans Dedecker [Fri, 1 Sep 2017 14:02:33 +0000 (16:02 +0200)]
ubox: update to git HEAD version

b1bc8d5 kmodloader: log error message in case of out of memory
f346111 kmodloader: lift restriction on module alias info
f1ef2c3 kmodloader: fix possible segfaults
9cb63df kmodloader: fix endianess check
2cff779 kmodloader: Check module endian before loading
d54f38a kmodloader/get_module_info: initialized aliases to make it more clean
a0b6fef kmodloader: insmod: fix a memoryleak in error case
278c4c4 kmodloader/get_module_name: null-terminate the string
16f7e16 syslog: remove unnecessary sizeof struct between messages

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agorukes.mk: this patch broken grub2 builds
John Crispin [Fri, 1 Sep 2017 08:17:02 +0000 (10:17 +0200)]
rukes.mk: this patch broken grub2 builds

Revert "rules.mk: add missing CPP definition"

This reverts commit 569f74ef49bae9326a723050a400346686983d86.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agogeneric: make switch_port_stats tx/rx_bytes long long
Thibaut VARENE [Fri, 4 Aug 2017 10:32:04 +0000 (12:32 +0200)]
generic: make switch_port_stats tx/rx_bytes long long

This generic structure defines tx_bytes and rx_bytes as unsigned long (u32),
while several devices would typically report unsigned long long (u64).

The code can work as is, but there's a chance that with a sufficiently fast
interface the overflow might happen too fast to be correctly noticed by the
consumers of this data.

This patch makes both field unsigned long long and updates the only known
consumer of this data: swconfig_leds.c

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agogeneric: provide get_port_stats() on rtl836x switches
Thibaut VARENE [Fri, 4 Aug 2017 10:29:52 +0000 (12:29 +0200)]
generic: provide get_port_stats() on rtl836x switches

This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.

This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agogeneric: provide get_port_stats() on b53 switches
Thibaut VARENE [Fri, 4 Aug 2017 10:29:19 +0000 (12:29 +0200)]
generic: provide get_port_stats() on b53 switches

This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.

This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agogeneric: provide get_port_stats() on adm6996 switches
Thibaut VARENE [Fri, 4 Aug 2017 10:28:56 +0000 (12:28 +0200)]
generic: provide get_port_stats() on adm6996 switches

This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.

This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agogeneric: provide get_port_stats() on ar8xxx switches
Thibaut VARENE [Fri, 4 Aug 2017 10:28:23 +0000 (12:28 +0200)]
generic: provide get_port_stats() on ar8xxx switches

This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.

The implementation uses a generic callback that select the correct MIB counter
index based on chip version.

This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoramips: provide get_port_stats() on mt7530/762x switches
Thibaut VARENE [Fri, 4 Aug 2017 10:27:32 +0000 (12:27 +0200)]
ramips: provide get_port_stats() on mt7530/762x switches

This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.

This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoprocd: mdns: Support txt values with spaces
Karl Palsson [Wed, 30 Aug 2017 17:44:00 +0000 (17:44 +0000)]
procd: mdns: Support txt values with spaces

Properly quote the arguments so that you can register a service with TXT
entries that contains spaces.

Example:
   procd_add_mdns myservice tcp 9999 "key=descriptive text field 1" \
         "another=something equally verbose"

Output before:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp      local
   hostname = [blah.local]
   address = [192.168.255.74]
   port = [9999]
   txt = ["verbose" "equally" "another=something" "1" "field" "text" "key=descriptive"]

Output now:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp      local
   hostname = [blah.local]
   address = [192.168.255.74]
   port = [9999]
   txt = ["another=something equally verbose" "key=descriptive text field 1"]

Signed-off-by: Karl Palsson <karlp@etactica.com>
7 years agoRevert "dropbear: Link ssh and scp command to /bin instead of /usr/bin"
John Crispin [Thu, 31 Aug 2017 19:09:05 +0000 (21:09 +0200)]
Revert "dropbear: Link ssh and scp command to /bin instead of /usr/bin"

This reverts commit f7528ed0a8586434e18e9007b1bf0d05a18d6418.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: update 4.4 to 4.4.85
Kevin Darbyshire-Bryant [Wed, 30 Aug 2017 20:09:17 +0000 (21:09 +0100)]
kernel: update 4.4 to 4.4.85

Refresh patches

Compile & run tested: ar71xx - Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoar71xx: fix switch port numbering on RB750r2 and RB750UPr2
João Chaínho [Thu, 31 Aug 2017 15:45:39 +0000 (16:45 +0100)]
ar71xx: fix switch port numbering on RB750r2 and RB750UPr2

This patch fixes the switch port numbering on Mikrotik RB750r2 (hEX lite) and RB750UPr2 (hEX PoE lite).
Tested on a RB750UPr2. Maybe this patch is applicable to other devices (e.g. RB951Ui-2nD, RB952Ui-5ac2nD) but I have no way to test them.

Signed-off-by: João Chaínho <joaochainho@gmail.com>
7 years agodropbear: Link ssh and scp command to /bin instead of /usr/bin
Rosen Penev [Wed, 30 Aug 2017 22:58:09 +0000 (15:58 -0700)]
dropbear: Link ssh and scp command to /bin instead of /usr/bin

ssh and scp commands interfere with OpenSSH when installed in /usr/bin .

One use case is when installing dropbear to get root access when only OpenSSH is available (OpenSSH disallows root password logins). Once dropbear installs, it replaces OpenSSH's executables, even when removed with opkg. OpenSSH must be reinstalled to get them back.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agomusl: update to 1.1.16+ git HEAD 2017-08-30
Koen Vandeputte [Thu, 31 Aug 2017 11:30:11 +0000 (13:30 +0200)]
musl: update to 1.1.16+ git HEAD 2017-08-30

Fixes critical issues for memset() & fflush()

Changes:

5f7efb8 move IPPORT_RESERVED from netdb.h to netinet/in.h
5f3b652 add powerpc64 and s390x to list of supported archs in INSTALL
file
9d4c902 fix undefined behavior in memset due to missing sequence points
c7f56b4 __init_libc: add fallbacks for __progname setup
cc08669 add SIOCGSTAMPNS socket ioctl macro to ioctl.h
02b50c9 fix mips ioctl macros to match linux asm/sockios.h
670d6d0 fix unsynchronized access to FILE structure in fflush(0)

Tested on cns3xxx & imx6

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agobusybox: update to 1.27.2
Magnus Kroken [Wed, 23 Aug 2017 21:13:34 +0000 (23:13 +0200)]
busybox: update to 1.27.2

Refresh patches, delete patches backported from upstream.

This fixes ntpd sync issues (ntpd would not sync if the first provided
peer address was unreachable).

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agouboot-envtools: Add support for IPQ806x AP148 and DB149
Ram Chandra Jangir [Wed, 28 Jun 2017 17:54:45 +0000 (23:24 +0530)]
uboot-envtools: Add support for IPQ806x AP148 and DB149

IPQ806x AP148 and DB149 boards didn't have the UCI ubootenv
section initialized, so the usage of fw_printenv required manual
configuration. With this change, the "fw_printenv" and "fw_setenv"
command will automatically work on NOR and NAND based platforms.

Signed-off-by: Ram Chandra Jangir <rjangir@codeaurora.org>
7 years agobusybox: move passwd applet to /bin
Daniel Golle [Wed, 19 Jul 2017 21:53:35 +0000 (23:53 +0200)]
busybox: move passwd applet to /bin

busybox currently installs passwd into /usr/bin which prevents its
'full' shadow-utils variant from being installed.
Move the passwd applet to /bin to avoid that collision.
shadow also provides /usr/bin/login which doesn't collide with busybox
as the busybox login applet is installed at /bin/login.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agobusybox: move traceroute applets to /bin
Daniel Golle [Wed, 19 Jul 2017 21:52:22 +0000 (23:52 +0200)]
busybox: move traceroute applets to /bin

busybox currently installs traceroute and traceroute6 into /usr/bin
which prevents their 'full' iputils variants from being installed.
Move those applets to /bin so they can coexist with their iputils
siblings using the same PATH convention already applied for coreutils
and other drop-in 'full' versions.
Refresh existing patch while at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agosamba36: Remove syslog and load printers lines.
Rosen Penev [Sat, 26 Aug 2017 03:12:13 +0000 (20:12 -0700)]
samba36: Remove syslog and load printers lines.

printer support is removed using 200-remove_printer_support.patch. the syslog parameter requires samba to be compiled with --with-syslog. Currently samba does not log to syslog and probably has not for a long time.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agoscripts/dowload.pl: use glob to expand target dir
Zoltan Gyarmati [Sat, 26 Aug 2017 13:14:20 +0000 (15:14 +0200)]
scripts/dowload.pl: use glob to expand target dir

If CONFIG_DOWNLOAD_FOLDER is set to for example "~/dl", the download
script fails to create the .hash and .dl files with the following
errors:
 Cannot create file ~/dl/dropbear-2017.75.tar.bz2.dl: No such file or directory
 sh: 1: cannot create ~/dl/dropbear-2017.75.tar.bz2.hash: Directory nonexistent

If the tarball already exists in the ~/dl dir, it's properly found and
used, so this issue only affects the download.pl script.
 This patch calls glob() on the target dir parameter, which will expand `~`.

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
7 years agomusl: bump to latest 1.1.16+ git HEAD
Koen Vandeputte [Tue, 22 Aug 2017 14:37:33 +0000 (16:37 +0200)]
musl: bump to latest 1.1.16+ git HEAD

Changes:

1698fe6 fix build failure for sh4a due to missing colon in asm statement
80bf595 trap UB from attempts to join a detached thread
e31c8c2 ppc64: fix setjmp/longjmp handling of TOC pointer
52cf5c1 qsort: add a short comment about the algorithm
dc2f368 disable global visibility override hack (vis.h) by default
947d330 add _NL_LOCALE_NAME extension to nl_langinfo
a08910f fix missing volatile qualifier on lock in __get_locale
2e6e084 remove ineffective compiler assist from printf
bc42dcb fix undefined behavior in ptrace
d906fa3 unify the use of FUTEX_PRIVATE
60ab365 fix undefined behavior in free
f688884 reapply va_arg hacks removal to wprintf
bd00cc8 remove useless declarations in string.h
f3055e0 allow specifying argv[0] when invoking a program via ldso
command
43c423a fix regression in dlopen promotion from RTLD_LOCAL to
RTLD_GLOBAL
66b53cf ldso: avoid spurious & possible erroneous work for libs with no
deps
94f7441 powerpc64: add single-instruction math functions
9d12a6a fix clang CFLAGS checks and silence unused argument warnings
ce385fc s390x: add single-instruction math functions
e6def54 fix arm run-time abi string functions
91d34c4 fix regression in getspnam[_r] error code for insufficient
buffer size
5948bc1 fix omission of microblaze user.h definitions
b7bfb5c fix iconv conversions for iso88592-iso885916
64f8558 handle errors from localtime_r in ctime_r
2d7d05f set errno when getpw*_r, getgr*_r, and getspnam_r fail
5c10c33 handle localtime errors in ctime
1c86c7f handle mremap failure in realloc of mmap-serviced allocations
1080008 getdate: correctly specify error number
af05173 catopen: set errno to EOPNOTSUPP
84eff79 fix glob failure to match plain "/" to root directory
bc313e8 use hard-coded sh4a atomic opcodes to avoid linker errors on sh
179766a towupper/towlower: fast path for ascii chars
1c49700 remove long-obsolete clang workarounds from mips* syscall_arch.h
files
4073f03 fix fstatat syscall on mips64
81f4a12 fix fchown fallback on arches without chown(2)
97bd6b0 fix iconv conversions to legacy 8bit encodings
f9f686b have posix_spawnattr_setflags check for supported flags
77e895d add no-op POSIX_SPAWN_USEVFORK to spawn.h
5555041 s390x: provide sigcontext struct definition
bb439bb implement new posix_spawn flag POSIX_SPAWN_SETSID
58e2396 remove va_arg hacks in printf core with undefined behavior
e1232f5 make ttyname[_r] return ENODEV rather than ENOENT
1a7fa5e fix regression in support for resolv.conf attempts option
8c44a06 fix scalbn when result is in the subnormal range
2577b1b allow full-range file offsets to mmap on archs with 64-bit
syscall args
b3751c3 fix dl_iterate_phdr in static PIE binaries
1ca5975 fix read past end of buffer in getaddrinfo backend
54807d4 aarch64: add single instruction math functions
b6e1fe0 fix strptime output for %C without %y
834ef7a fix processing of strptime %p format
85dfab7 fix off-by-one in strptime %j
9571c53 regex: fix newline matching with negated brackets
e6917ec increase limit on locale name length from 15 to 23 bytes
e4fc9ad search locale name variants for gettext translations
16319a5 make setlocale return a single name for LC_ALL if all categories
match
0c53178 fix dlopen/dlsym regression opening libs already loaded at
startup
dbff2bb fix POSIX-format TZ dst transition times for southern hemisphere
74bca42 s390x: fix fpreg_t and remove unused per_struct
a393d5c precalculate gnu hash rather than doing it lazily in find_sym
inner loop
8cba1dc fix threshold constants in j0f, y0f, j1f, y1f
cb52539 remove unused refcnt field for shared libraries
c49d3c8 avoid loading of multiple libc versions via explicit pathname
3ec8b3a fix one-byte overflow in legacy getpass function
733d1ea fix wide scanf's use of a compound literal past its lifetime
6a209f1 fix possible fd leak, unrestored cancellation state on dns
socket fail
500f5be in static dl_iterate_phdr, fix use of possibly-uninitialized aux
data
6582baa fix free of uninitialized buffer pointer on error in regexec
6476b81 emulate lazy relocation as deferrable relocation
4823b13 reorder addend handling before symbol lookup in relocation code
4ff234f rework ldso handling of global symbol table for consistency
c9783e4 treat STB_WEAK and STB_GNU_UNIQUE like STB_GLOBAL in find_sym
fc85fb3 fix ld-behavior-dependent crash in ppc64 ldso startup
827c4e6 fix lsearch and lfind to pass key as first arg to the compar
callback
0a4a16d allow page size to vary on arm
b261a24 fix build regression in arm atomics asm with new binutils
9201c3a s390x: implement dlsym
d6601f0 avoid unbounded strlen in gettext functions
dbbb373 fix use of uninitialized pointer in gettext core
01e6bbe fix bindtextdomain logic error deactivating other domains
6894f84 fix spurious EINTR errors from multithreaded set*id, etc.
1f53e7d fix crashes in x32 __tls_get_addr
27b3fd6 fix crash from corrupted tls module list after failed dlopen
809ff8c treat base 1 as an error in strtol-family functions
786fda8 fix getopt[_long] clobbering of optopt on success
150747b reduce impact of REG_* namespace pollution in x86[_64] signal.h

Tested on cns3xxx & imx6

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agosamba36: Don't resolve interfaces.
Rosen Penev [Thu, 24 Aug 2017 23:51:24 +0000 (16:51 -0700)]
samba36: Don't resolve interfaces.

It's redundant and also buggy. IPv6 link local addresses and ::1 are not resolved for example. Doesn't matter since lo and br-lan for example, resolve to them.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agosamba36: Remove guest ok since LuCI configures it.
Rosen Penev [Thu, 24 Aug 2017 23:51:23 +0000 (16:51 -0700)]
samba36: Remove guest ok since LuCI configures it.

guest ok is set per share and as such, don't override it. also, fix an error introduced in the last commit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agoramips: merge mt7628/mt7688 into mt76x8
L. D. Pinney [Sat, 26 Aug 2017 01:49:45 +0000 (09:49 +0800)]
ramips: merge mt7628/mt7688 into mt76x8

The ramips subtargets of mt7628 and mt7688 dts files all #include "mt7628an.dtsi"

They are essentially a single subtarget.

This patch merges the ramips subtargets mt7628 and mt7688 into a single subtarget mt76x8.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
7 years agokernel: update 4.9 to 4.9.45
Koen Vandeputte [Mon, 28 Aug 2017 11:37:07 +0000 (13:37 +0200)]
kernel: update 4.9 to 4.9.45

Refreshed all patches

Compiled & run-tested on targets: cns3xxx, imx6

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agodnsmasq: forward.c: fix CVE-2017-13704
Kevin Darbyshire-Bryant [Tue, 29 Aug 2017 13:29:18 +0000 (14:29 +0100)]
dnsmasq: forward.c: fix CVE-2017-13704

Fix SIGSEGV in rfc1035.c answer_request() line 1228 where memset()
is called with header & limit pointing at the same address and thus
tries to clear memory from before the buffer begins.

answer_request() is called with an invalid edns packet size provided by
the client.  Ensure the udp_size provided by the client is bounded by
512 and configured maximum as per RFC 6891 6.2.3 "Values lower than 512
MUST be treated as equal to 512"

The client that exposed the problem provided a payload udp size of 0.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Acked-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agomediatek: various additional ethernet fixes
John Crispin [Wed, 30 Aug 2017 07:02:39 +0000 (09:02 +0200)]
mediatek: various additional ethernet fixes

* fixes default affinity
* adds a napi watchdog - we were seeing stalled TX queues
* adds up/down locking

Signed-off-by: John Crispin <john@phrozen.org>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Tue, 29 Aug 2017 19:14:54 +0000 (21:14 +0200)]
netifd: update to git HEAD version

7d94ede system-linux: parse map-e fmrs parameters as nested data json object

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agomap: use nested json data object to store map-e fmrs parameters
Hans Dedecker [Sun, 27 Aug 2017 16:52:57 +0000 (18:52 +0200)]
map: use nested json data object to store map-e fmrs parameters

Replace the string array containing the fmrs parameters by a nested data
json object holding an array of fmrs parameters

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agolantiq: ACMP252: clean up device modules
Daniel Golle [Wed, 16 Aug 2017 11:06:13 +0000 (13:06 +0200)]
lantiq: ACMP252: clean up device modules

Install kmod-rt2800-pci instead of only the rt2x00 library.
Fixes missing wireless interface on AudioCodes AC-MP252.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agolantiq: ltq-ptm: fix ADSL showtime handler
Daniel Golle [Wed, 16 Aug 2017 18:56:27 +0000 (20:56 +0200)]
lantiq: ltq-ptm: fix ADSL showtime handler

commit 2d6c7c2526b6 introduced a reference to g_xdata_addr which isn't
defined in that context. Use xdata_addr here instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agomap: fix boolean argument passed to blobmsg_check_attr in mapcalc
Hans Dedecker [Sat, 26 Aug 2017 07:21:52 +0000 (09:21 +0200)]
map: fix boolean argument passed to blobmsg_check_attr in mapcalc

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoconfig: make CONFIG_ALL_* select other CONIFG_ALL_* options
Hauke Mehrtens [Sat, 15 Jul 2017 20:54:33 +0000 (22:54 +0200)]
config: make CONFIG_ALL_* select other CONIFG_ALL_* options

Select the other CONFIG_ALL_* options in the hierarchy when the master
option is selected. Currently CONFIG_ALL_KMODS is not selected when the
build bot selects CONFIG_ALL_NONSHARED for example.

Now the rtc kmods should get build when CONFIG_ALL_KMODS,
CONFIG_ALL_NONSHARED or CONFIG_ALL and CONFIG_RTC_SUPPORT are selected
like it is done by the build bots for targets with rtc support.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Jo-Philipp Wich <jo@mein.io>
7 years agolayerscape: do not add custom CFLAGS.
Hauke Mehrtens [Sat, 15 Jul 2017 20:52:52 +0000 (22:52 +0200)]
layerscape: do not add custom CFLAGS.

The selected CFLAGS are already set by default.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobrcm2708: bcm2710: do not activate neon-vfpv4 manually
Hauke Mehrtens [Sat, 15 Jul 2017 20:52:21 +0000 (22:52 +0200)]
brcm2708: bcm2710: do not activate neon-vfpv4 manually

Neon and vfpv4 support are activated by GCC on all ARMv8 CPUs because
this is now a mandatory part of the architecture. There is not need to
activate is manually.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobrcm63xx: Add Comtrend AR-5315u support
Daniel Gonzalez Cabanelas [Sat, 12 Aug 2017 10:40:22 +0000 (12:40 +0200)]
brcm63xx: Add Comtrend AR-5315u support

Add support for the Comtrend AR-5315u router

This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash,
with an onboard BCM43217 wifi, 4 ethernet ports and 1
USB host port

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
[jonas.gorski: refreshed patch]
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agodnsmasq: fix indentation
Hans Dedecker [Fri, 25 Aug 2017 12:21:48 +0000 (14:21 +0200)]
dnsmasq: fix indentation

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agodnsmasq: add support for multiple tags for each host.
Kuang Rufan [Fri, 25 Aug 2017 06:10:21 +0000 (14:10 +0800)]
dnsmasq: add support for multiple tags for each host.

Currently, dnsmasq support assigning multiple tags to a host record
(--dhcp-host), but we only support only 1 tag for a host. The commit
makes the following config to be valid:

  config host
      option name 'computer'
      option mac '00:11:22:33:44:55'
      option ip '192.168.1.100'
      list tag 'vendor_class'
      list tag 'vendor_id'

  config tag 'vendor_class'
      list dhcp_option 'option:vendor-class,00:...<omitted>'

  config tag 'vendor_id'
      option force '1'
      list dhcp_option 'option:vendor-id-encap,00:...<omitted>'

Signed-off-by: Kuang Rufan <kuangrufan@pset.suntec.net>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agof2fs-tools: fix mkfs.f2fs on big-endian systems
Stijn Tintel [Thu, 24 Aug 2017 07:04:15 +0000 (10:04 +0300)]
f2fs-tools: fix mkfs.f2fs on big-endian systems

Fixes: FS#749
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agof2fs-tools: drop musl compat patch
Stijn Tintel [Thu, 24 Aug 2017 06:56:49 +0000 (09:56 +0300)]
f2fs-tools: drop musl compat patch

It is no longer needed since version 1.4.1.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agof2fs-tools: drop patch in favour of CONFIGURE_VARS
Stijn Tintel [Thu, 24 Aug 2017 06:23:32 +0000 (09:23 +0300)]
f2fs-tools: drop patch in favour of CONFIGURE_VARS

Override the failing check in configure with CONFIGURE_VARS instead of
carrying a patch that's unlikely to be accepted by upstream.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
7 years agomap: add ealen as configurable uci parameter
Hans Dedecker [Thu, 24 Aug 2017 18:53:36 +0000 (20:53 +0200)]
map: add ealen as configurable uci parameter

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoramips: refresh kernel patches
John Crispin [Thu, 24 Aug 2017 08:09:46 +0000 (10:09 +0200)]
ramips: refresh kernel patches

the reordering patch fixes random kernel hangs. bug/fix was reported by MTK/WCN.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoipq806x: Archer C2600: fix switch ports numbering
Baptiste Jonglez [Wed, 23 Aug 2017 21:44:52 +0000 (23:44 +0200)]
ipq806x: Archer C2600: fix switch ports numbering

The order of LAN ports shown in Luci is reversed compared to what is
written on the case of the device.  Fix the order so that they match.

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
7 years agoxtables-addons: update to version 2.13
Koen Vandeputte [Tue, 22 Aug 2017 14:37:32 +0000 (16:37 +0200)]
xtables-addons: update to version 2.13

Changes:

89d1b80 xt_condition: namespace support #2
c839e87 xt_geoip: check for allocation overflow
a587f95 compat_xtables: use more accurate printf format for NIPQUAD
1874fcd xt_DNETMAP: fix a buffer overflow
21ea7b7 xt_LOGMARK: resolve new gcc7 warnings
ee8da2b build: support for Linux 4.12
19a4359 xt_condition: add support for namespaces
1b37966 xt_psd: resolve compiler warning

Tested on cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoramips: make mt7621 select WEAK_REORDERING_BEYOND_LLSC
John Crispin [Thu, 24 Aug 2017 06:32:54 +0000 (08:32 +0200)]
ramips: make mt7621 select WEAK_REORDERING_BEYOND_LLSC

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoRevert "iputils: switch to new upstream"
John Crispin [Thu, 24 Aug 2017 06:08:42 +0000 (08:08 +0200)]
Revert "iputils: switch to new upstream"

This reverts commit 77d3ac8e3ecd7989a7cffb575c4a42bc68190b6c.
This reverts commit e665b3df2a47ba5bb049d13358937ac67b860b70.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoiperf3: add SSL variant for iperf_auth feature
Philip Prindeville [Tue, 1 Aug 2017 20:04:55 +0000 (14:04 -0600)]
iperf3: add SSL variant for iperf_auth feature

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoiperf3: update to 3.2
Philip Prindeville [Mon, 31 Jul 2017 00:59:50 +0000 (18:59 -0600)]
iperf3: update to 3.2

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoiputils: update sha256sum
John Crispin [Wed, 23 Aug 2017 17:34:24 +0000 (19:34 +0200)]
iputils: update sha256sum

Signed-off-by: John Crispin <john@phrozen.org>
7 years agotools: patch various gnu tools for macOS 10.13
Ryan Mounce [Thu, 3 Aug 2017 11:07:58 +0000 (20:37 +0930)]
tools: patch various gnu tools for macOS 10.13

These host tools compile but may crash at runtime when building on
macOS 10.13 (High Sierra). Backport upstream gnulib patch until new
releases of affected tools.

https://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=c41f233c4c38e84023a16339782ee306f03e7f59

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
7 years agorules.mk: add missing CPP definition
BangLang Huang [Mon, 14 Aug 2017 04:49:10 +0000 (12:49 +0800)]
rules.mk: add missing CPP definition

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agoutil-linux: don't need to build NLS support
Philip Prindeville [Mon, 21 Aug 2017 20:09:57 +0000 (14:09 -0600)]
util-linux: don't need to build NLS support

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoath10k-firmware: update qca9887 firmware to 10.2.4-1.0-00029
Andreas Ziegler [Sun, 6 Aug 2017 19:57:46 +0000 (21:57 +0200)]
ath10k-firmware: update qca9887 firmware to 10.2.4-1.0-00029

Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
7 years agoiputils: switch to new upstream
John Crispin [Wed, 23 Aug 2017 14:31:35 +0000 (16:31 +0200)]
iputils: switch to new upstream

Signed-off-by: John Crispin <john@phrozen.org>
7 years agotools/mkimage: fix musl build
Marty Plummer [Fri, 11 Aug 2017 07:11:39 +0000 (02:11 -0500)]
tools/mkimage: fix musl build

Taken from: http://git.denx.de/?p=u-boot.git;a=commit;h=26e355d131a6b56ea78a156c1cee4f6ba0500b37

Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
7 years agoramips: set ethernet mac address for VoCore2
L. D. Pinney [Sat, 12 Aug 2017 14:04:27 +0000 (22:04 +0800)]
ramips: set ethernet mac address for VoCore2

This patch sets the mac address for the VoCore2 devices.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
7 years agosamba36-net: new package
Ansuel Smith [Sun, 13 Aug 2017 18:36:56 +0000 (20:36 +0200)]
samba36-net: new package

Samba could also be usefull for sending commands to windows pc (like shoutdown command). This new package add the bin to include this kind of command to the samba package.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
7 years agoramips: add Xiaomi Mi Router 3G support
Pavel Kubelun [Sat, 12 Aug 2017 14:56:11 +0000 (17:56 +0300)]
ramips: add Xiaomi Mi Router 3G support

This commit adds support for Xiaomi Mi WiFi Router 3G.

Short specification:
 - MT7621AT + MT7603EN + 7612EN
 - 256MB DDR3 RAM
 - 128MB NAND flash
 - 1+2 x 1000M Ethernet
 - 1x USB 3.0 port
 - reset button
 - yellow, blue, red leds

Installation through telnet/ssh:
- copy lede-ramips-mt7621-mir3g-squashfs-kernel1.bin and
lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin to usb disk or wget it
from LEDE download site to /tmp
- switch to /extdisks/sda1/ (if copied to USB drive) or to /tmp if
wgetted from LEDE download site
- run: mtd write lede-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1
- run: mtd write lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0
- run: mtd erase kernel0
- run: reboot

Originally stock firmware has following partitions:
 - ...
 - kernel0 (primary kernel image)
 - kernel1 (secondary kernel image, used by u-boot in failsafe routine)
 - rootfs0 (primary rootfs)
 - rootfs1 (secondary rootfs in case primary fails)
 - overlay (used as ubi overlay)

This commit squashes rootfs0, rootfs1 and overlay partitions into 1, so
it can be used by LEDE fully for package installation, resulting in 117,5MiB.

This device lacks hw watchdog, so adding softdog instead (stock does the same).

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoutil-linux: add missing dependencies
Jo-Philipp Wich [Wed, 23 Aug 2017 09:31:09 +0000 (11:31 +0200)]
util-linux: add missing dependencies

Commit e505f59bd9 "utils/util-linux: Update to 2.30.1" bumped util-linux
without properly adjusting the dependencies of all applets.

Add missing ncursesw dependencies to sfdisk and dmesg applets to fix
packaging issues.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoiwinfo: update to the latest git HEAD
Rafał Miłecki [Wed, 23 Aug 2017 09:18:04 +0000 (11:18 +0200)]
iwinfo: update to the latest git HEAD

c1a03e8 nl80211: request split information about frequencies
5638567 nl80211: store info about freq being not available for some bandwidths
ce51cb8 Allow storing more info about each frequency
5c10efa nl80211: support receiving split frequencies
335967c nl80211: improve error handling
ab089dd nl80211: propagate netlink errors to callers
7bba117 nl80211: handle netlink errors in nl80211_wait()
d22c64c iwinfo: add device id for Ubiquiti NanoStation Loco M2

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoRevert "busybox: ash/hush fix for read-builtin command"
Jo-Philipp Wich [Wed, 23 Aug 2017 08:56:53 +0000 (10:56 +0200)]
Revert "busybox: ash/hush fix for read-builtin command"

Revert this commit as it introduces a patchfile at a wrong location.
Since the patch was never effective, we can assume that this particular
commit was not properly tested.

This reverts commit dde9da46c1586c0bda54e7fa6de05f0fc76e557a.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoRevert "xtables-addons: fix nathelper-rtsp dependencies"
John Crispin [Wed, 23 Aug 2017 07:54:47 +0000 (09:54 +0200)]
Revert "xtables-addons: fix nathelper-rtsp dependencies"

This reverts commit e2ef80130e0c855df47b2e046aed2b3467845184.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomediatek: drop kernel dep on userland module
John Crispin [Wed, 23 Aug 2017 07:54:26 +0000 (09:54 +0200)]
mediatek: drop kernel dep on userland module

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoxtables-addons: fix nathelper-rtsp dependencies
Philip Prindeville [Tue, 22 Aug 2017 16:13:00 +0000 (10:13 -0600)]
xtables-addons: fix nathelper-rtsp dependencies

Both nf_conntrack and nf_nat need to be called out.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoprocd: update to latest git HEAD
John Crispin [Tue, 22 Aug 2017 14:47:18 +0000 (16:47 +0200)]
procd: update to latest git HEAD

54b46a3 procd: send ubus notify when a config file has changed

Signed-off-by: John Crispin <john@phrozen.org>
7 years agodnsmasq: add ubus notifications for new leases
John Crispin [Tue, 22 Aug 2017 14:43:02 +0000 (16:43 +0200)]
dnsmasq: add ubus notifications for new leases

Signed-off-by: John Crispin <john@phrozen.org>
7 years agohostapd: add additional ubus notifications
John Crispin [Tue, 22 Aug 2017 14:33:40 +0000 (16:33 +0200)]
hostapd: add additional ubus notifications

Signed-off-by: John Crispin <john@phrozen.org>
7 years agonvram: add help message for nvram magic not found
BangLang Huang [Fri, 24 Feb 2017 02:58:09 +0000 (10:58 +0800)]
nvram: add help message for nvram magic not found

The program would failed if nvram magic not found
in specific partition.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agonvram: improve argument check when program start
BangLang Huang [Fri, 24 Feb 2017 02:52:52 +0000 (10:52 +0800)]
nvram: improve argument check when program start

print help message when argument count is less
than 2.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agonvram: add usage() function
BangLang Huang [Fri, 24 Feb 2017 02:45:16 +0000 (10:45 +0800)]
nvram: add usage() function

Merge the help message into a single function,
so that we can use it somewhere else.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agonvram: fix memory leak
BangLang Huang [Fri, 24 Feb 2017 02:16:17 +0000 (10:16 +0800)]
nvram: fix memory leak

Fix memory leak on nvram_open() and nvram_open_rdonly().

For nvram_open(), the 'fd' should be closed on error, and
mmap_area should be unmap when nvram magic can not be found.

For nvram_open_rdonly(), the 'file' variable should free before
return. Once nvram_find_mtd() return successfully, it will allocate
memory to save mtd device string.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agonetifd: update to latest git HEAD
John Crispin [Tue, 22 Aug 2017 07:12:56 +0000 (09:12 +0200)]
netifd: update to latest git HEAD

b5731bf allow setting rps/xps defualt values via uci
2a29d1a system: remove unused 6rd tunnel attributes
e627542 netifd: allow negative neighlocktime values
e41382c system-linux: parse ipv6 specific tunnel settings as nested data json object

Signed-off-by: John Crispin <john@phrozen.org>