oweals/openwrt.git
6 years agohostapd: add ht and vht support in handle event function Add ht and vht capabilities...
Nick Hainke [Thu, 17 May 2018 10:35:23 +0000 (12:35 +0200)]
hostapd: add ht and vht support in handle event function Add ht and vht capabilities. If a device sends a probe request, the capabilities are added.

Signed-off-by: Nick Hainke <vincent@systemli.org>
6 years agohostapd: add ubus call for ap features
Nick Hainke [Wed, 25 Apr 2018 22:03:05 +0000 (00:03 +0200)]
hostapd: add ubus call for ap features

The call "get_features" allows to gather hostapd config options
via ubus. As first infos we add the ht and vht support.
Although nl80211 supports to gather informations about
ht and vht capabilities, the hostapd configuration can disable
vht and ht. However, it is possible that the iw output is not
representing the actual hostapd configuration.

Signed-off-by: Nick Hainke <vincent@systemli.org>
6 years agouboot-envtools: add configuration for Traverse LS1043 boards.
Mathew McBride [Wed, 25 Apr 2018 02:51:48 +0000 (12:51 +1000)]
uboot-envtools: add configuration for Traverse LS1043 boards.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
6 years agolayerscape: add Traverse LS1043-S support
Mathew McBride [Mon, 30 Apr 2018 12:42:39 +0000 (22:42 +1000)]
layerscape: add Traverse LS1043-S support

The Traverse LS1043-S board is a router board based on
NXP/Freescale's LS1043 SoC, with 4x1GBase-T, 1 SFP and 1 SFP+,
as well as miniPCIe and M.2 LTE.

Unlike the Layerscape reference boards, the LS1043-S board has
NAND flash and uses the mainline U-Boot.

This patch implements support for the LS1043-S board, as well as
the earlier LS1043-V board. It is our intention that all boards
in this family (LS1043-S and later, Five64) will boot the same binary.

Not included in this patchset are the hwmon drivers not in the kernel
(emc1704,pac1934) or the bootloader.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
6 years agolayerscape: add multiple-configuration generator for FIT images
Mathew McBride [Mon, 30 Apr 2018 12:43:29 +0000 (22:43 +1000)]
layerscape: add multiple-configuration generator for FIT images

This is required for the Traverse LS1043 family, we generate a FIT image
that works on all boards across the family. This is done by creating
multiple configurations that select the right DTB for the board.

The bootloader on these boards is configured to boot like this:
bootm $kernel_load#ls1043s
bootm $kernel_load#ls1043v

This is based on earlier work by Jason Wu for Zynq:
https://lists.openwrt.org/pipermail/openwrt-devel/2016-March/040460.html

Modified to add FDT load addresses and multiple configurations with DTB.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
6 years agolayerscape: add support for fixed-link on RGMII interfaces
Mathew McBride [Mon, 16 Apr 2018 23:45:11 +0000 (09:45 +1000)]
layerscape: add support for fixed-link on RGMII interfaces

This is required on the Traverse LS1043 boards to support SFP
and xDSL plug-ins.

This will not be needed on kernel 4.14.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
6 years agolayerscape: enable QorIQ thermal driver
Mathew McBride [Mon, 16 Apr 2018 23:43:38 +0000 (09:43 +1000)]
layerscape: enable QorIQ thermal driver

This provides access to the CPU die temperature sensor and
the thermal throttling integration

Signed-off-by: Mathew McBride <matt@traverse.com.au>
6 years agolayerscape: remove DEVICE_TYPE=developerboard
Mathew McBride [Mon, 16 Apr 2018 23:43:03 +0000 (09:43 +1000)]
layerscape: remove DEVICE_TYPE=developerboard

The Traverse LS1043 series are router boards and need the default router package
selection

Signed-off-by: Mathew McBride <matt@traverse.com.au>
6 years agoopenvpn-easy-rsa: update to 3.0.4
Luiz Angelo Daros de Luca [Tue, 27 Mar 2018 05:42:06 +0000 (02:42 -0300)]
openvpn-easy-rsa: update to 3.0.4

Upstream renamed openssl-1.0.cnf to openssl-easyrsa.cnf.
However, pkg kept using openssl-1.0.cnf.

Upstream easyrsa searchs for vars, openssl-*, x509-types in the
same directory as easyrsa script. This was patched to revert
back to static /etc/easy-rsa/ directory (as does OpenSUSE).
EASYRSA_PKI still depends on $PWD.

Move easyrsa from /usr/sbin to /usr/bin as root is not needed.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
6 years agokernel: package x86-optimized crypto-misc modules
Daniel Gimpelevich [Sun, 21 Jan 2018 21:00:12 +0000 (13:00 -0800)]
kernel: package x86-optimized crypto-misc modules

Some of the modules in the crypto-misc package have alternate
implementations optimized for different x86 instruction set extensions,
but only one of these was built for this package until now: twofish-i586.ko

Tested with insmod, on both x86 and x86_64. The modules now have an
autoload, which they previous didn't, loading the dependencies in the
correct order.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
6 years agokernel: generic: fix problem with w1-gpio-custom
Pawel Dembicki [Thu, 15 Feb 2018 21:21:25 +0000 (22:21 +0100)]
kernel: generic: fix problem with w1-gpio-custom

In boards with fdt is impossible to use kmod-w1-gpio-custom.
w1-gpio-custom create platform structure for w1-gpio module,
but if board use fdt, data is ignored in w1-gpio probe.

This workaround fix the problem.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
6 years agoramips: fix RBM11G name
Thibaut VARÈNE [Sun, 29 Jul 2018 09:07:23 +0000 (11:07 +0200)]
ramips: fix RBM11G name

The device name is corrected to match the hardware-stored (in hard config
flash space) device name.

Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
6 years agoramips: fix RBM33G name
Thibaut VARÈNE [Sun, 29 Jul 2018 09:07:21 +0000 (11:07 +0200)]
ramips: fix RBM33G name

The device name is corrected to match the hardware-stored (in hard config
flash space) device name.

Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
6 years agolibevent: update to 2.1.8
Leon M. George [Mon, 31 Oct 2016 13:55:44 +0000 (14:55 +0100)]
libevent: update to 2.1.8

Signed-off-by: Leon M. George <leon@georgemail.eu>
6 years agoramips: mmc: Add SD card support to HC5661A
LoveSy [Mon, 28 May 2018 01:47:19 +0000 (09:47 +0800)]
ramips: mmc: Add SD card support to HC5661A

Tested on HC5661A and it now fixes the issue that when enabling sd card
in HC5661A, the wan and 3 lan ports will down.

Known issue:
- When enabling SD card support, the led light of system will down and the rest 2 lights keep working.

Signed-off-by: LoveSy <shana@zju.edu.cn>
6 years agoramips: mmc: Fix init for MT7628AN
LoveSy [Mon, 28 May 2018 01:46:28 +0000 (09:46 +0800)]
ramips: mmc: Fix init for MT7628AN

There is another thing about crc to do when initialize SD card on
MT7628.
This commit is to fix this init issue.

Signed-off-by: LoveSy <shana@zju.edu.cn>
6 years agoinclude: add netdev family support for nftables
Rosy Song [Wed, 18 Jul 2018 07:42:56 +0000 (15:42 +0800)]
include: add netdev family support for nftables

Signed-off-by: Rosy Song <rosysong@rosinson.com>
6 years agoncurses: install lib on host build
Andy Walsh [Thu, 26 Jul 2018 08:34:33 +0000 (10:34 +0200)]
ncurses: install lib on host build

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
6 years agoiptables: add ip[6|]tables-compat packages + libxtables-compat depends on IPTABLES_NF...
Martin Strobel [Sat, 7 Jul 2018 07:24:30 +0000 (09:24 +0200)]
iptables: add ip[6|]tables-compat packages + libxtables-compat depends on IPTABLES_NFTABLES

allows iptables-compat to use nft packet filtering
allows to translate iptables-style to nft-style

Signed-off-by: Martin Strobel <arctus@crza.de>
6 years agoconfig: Change conf.c remove compiler warnings
Paul Schulz [Thu, 21 Jun 2018 08:49:39 +0000 (18:19 +0930)]
config: Change conf.c remove compiler warnings

Compiler is producing the warning:
   warning: format not a string literal and no format arguments
   [-Wformat-security]

This patch makes the format a literal string in printf statements.

This with: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) in Ubuntu 18.04

Signed-off-by: Paul Schulz <paul@mawsonlakes.org>
6 years agoigmpproxy: drop SSDP packets
Dmitry Tunin [Sat, 28 Jul 2018 14:48:42 +0000 (17:48 +0300)]
igmpproxy: drop SSDP packets

It is insecure to let this type of packets inside
They can e.g. open ports on some other routers with UPnP, etc

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
6 years agoar71xx:add support for E750G v8
张鹏 [Tue, 17 Jul 2018 10:14:25 +0000 (18:14 +0800)]
ar71xx:add support for E750G v8

Qxwlan E750G v8 is based on Qualcomm QCA9344.

Specification:

 - 560/450/225 MHz (CPU/DDR/AHB)
 - 128 MB of RAM (DDR2)
 - 8/16 MB of FLASH (SPI NOR)
 - 2T2R 2.4G GHz (AR9344)
 - 2x 10/100 Mbps Ethernet (PoE support)
 - 2x 10/100/1000 Mbps Ethernet
 - 7x LED (6 driven by GPIO)
 - 1x button (reset)
 - 1x DC jack for main power input (9-48 V)
 - UART (J23) and LEDs (J2) headers on PCB

Flash instruction (using U-Boot CLI and tftp server):

 - Configure PC with static IP 192.168.1.10 and tftp server.
 - Rename "sysupgrade" filename to "firmware.bin" and place it in tftp
   server directory.
 - Connect PC with one of RJ45 ports, power up the board and press
   "enter" key to access U-Boot CLI.
 - Use the following command to update the device to OpenWrt: "run lfw".

Flash instruction (using U-Boot web-based recovery):

 - Configure PC with static IP 192.168.1.xxx(2-254)/24.
 - Connect PC with one of RJ45 ports, press the reset button, power up
   the board and keep button pressed for around 6-7 seconds, until LEDs
   start flashing.
 - Open your browser and enter 192.168.1.1, select "sysupgrade" image
   and click the upgrade button.

Signed-off-by: 张鹏 <sd20@qxwlan.com>
6 years agoar71xx:add support for E750A v4
张鹏 [Tue, 17 Jul 2018 10:11:21 +0000 (18:11 +0800)]
ar71xx:add support for E750A v4

Qxwlan E750A v4 is based on Qualcomm QCA9344.

Specification:

 - 560/450/225 MHz (CPU/DDR/AHB)
 - 128 MB of RAM (DDR2)
 - 8/16 MB of FLASH (SPI NOR)
 - 2T2R 5G GHz (AR9344)
 - 2x 10/100 Mbps Ethernet (one port with PoE support)
 - 1x miniPCIe slot (USB 2.0 bus only)
 - 7x LED (6 driven by GPIO)
 - 1x button (reset)
 - 1x DC jack for main power input (9-48 V)
 - UART (J23) and LEDs (J2) headers on PCB

Flash instruction (using U-Boot CLI and tftp server):

 - Configure PC with static IP 192.168.1.10 and tftp server.
 - Rename "sysupgrade" filename to "firmware.bin" and place it in tftp
   server directory.
 - Connect PC with one of RJ45 ports, power up the board and press
   "enter" key to access U-Boot CLI.
 - Use the following command to update the device to OpenWrt: "run lfw".

Flash instruction (using U-Boot web-based recovery):

 - Configure PC with static IP 192.168.1.xxx(2-254)/24.
 - Connect PC with one of RJ45 ports, press the reset button, power up
   the board and keep button pressed for around 6-7 seconds, until LEDs
   start flashing.
 - Open your browser and enter 192.168.1.1, select "sysupgrade" image
   and click the upgrade button.

Signed-off-by: 张鹏 <sd20@qxwlan.com>
6 years agoar71xx:add support for E558 v2
张鹏 [Tue, 17 Jul 2018 10:08:10 +0000 (18:08 +0800)]
ar71xx:add support for E558 v2

Qxwlan E558 v2 is based on Qualcomm QCA9558 + AR8327.

Specification:

 - 720/600/200 MHz (CPU/DDR/AHB)
 - 128 MB of RAM (DDR2)
 - 8/16 MB of FLASH (SPI NOR)
 - 2T2R 2.4 GHz (QCA9558)
 - 3x 10/100/1000 Mbps Ethernet (one port with PoE support)
 - 4x miniPCIe slot (USB 2.0 bus only)
 - 1x microSIM slot
 - 5x LED (4 driven by GPIO)
 - 1x button (reset)
 - 1x 3-pos switch
 - 1x DC jack for main power input (9-48 V)
 - UART (JP5) and LEDs (J8) headers on PCB

Flash instruction (using U-Boot CLI and tftp server):

 - Configure PC with static IP 192.168.1.10 and tftp server.
 - Rename "sysupgrade" filename to "firmware.bin" and place it in tftp
   server directory.
 - Connect PC with one of RJ45 ports, power up the board and press
   "enter" key to access U-Boot CLI.
 - Use the following command to update the device to OpenWrt: "run lfw".

Flash instruction (using U-Boot web-based recovery):

 - Configure PC with static IP 192.168.1.xxx(2-254)/24.
 - Connect PC with one of RJ45 ports, press the reset button, power up
   the board and keep button pressed for around 6-7 seconds, until LEDs
   start flashing.
 - Open your browser and enter 192.168.1.1, select "sysupgrade" image
   and click the upgrade button.

Signed-off-by: 张鹏 <sd20@qxwlan.com>
6 years agoinclude/verbose.mk: Add sc to failure message
Daniel Engberg [Tue, 24 Jul 2018 09:09:17 +0000 (11:09 +0200)]
include/verbose.mk: Add sc to failure message

Add sc to build error message

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agoar71xx: ag71xx: Prevent kernel oops for board def
Daniel F. Dickinson [Thu, 26 Jul 2018 06:57:37 +0000 (02:57 -0400)]
ar71xx: ag71xx: Prevent kernel oops for board def

The driver is written in such a way that with a board defintion that
connects a fixed phy, mdio, and switch in a certain way, a kernel oops could
result because of lack of previously probed mdio bus.

This commit allows for easier debugging in this case by casting the
correct blame with serial console messages.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: ag71xx: Add connect message: fixed phy
Daniel F. Dickinson [Wed, 25 Jul 2018 23:15:32 +0000 (19:15 -0400)]
ar71xx: ag71xx: Add connect message: fixed phy

It's a little noisier but makes it obvious when the ar7240 switch was
connected to the MDIO bus, and to which phy device (or the failure
to do so).

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: ag71xx_phy: Fix compilation for debug messages
Daniel F. Dickinson [Wed, 25 Jul 2018 23:14:26 +0000 (19:14 -0400)]
ar71xx: ag71xx_phy: Fix compilation for debug messages

NB: Error only appears with ag71xx debug messages and dynamic printk
enabled.  This is probably why no one has caught it before.

Previously phy probe debug messages used old (now wrong) functions
to get the phy name for printing.  There was also the chance of
a NULL pointer in the event no phy_device was found.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoath10k: update QCA4019 firmware
Massimo Tum [Tue, 3 Jul 2018 12:57:41 +0000 (14:57 +0200)]
ath10k: update QCA4019 firmware

With AVM Fritz!Box 4040 and OpenWrt 18.06 RC1 there are many kernel warnings
kern.warn kernel: [87771.917049] ath10k_ahb a000000.wifi: Invalid VHT mcs 15 peer stats
and there are disconnections when the connected clients are many, at the moment I tried with 16 clients on 2.4 GHz and 8 on 5 GHZ.

Firmware 10.4-3.5.3-00057 fixes these warnings and the problem of disconnections of some clients.

Signed-off-by: Massimo Tum <masnia@tiscali.it>
6 years agoath79: Add switch reset definition in dts
Chuanhong Guo [Tue, 24 Jul 2018 13:39:25 +0000 (21:39 +0800)]
ath79: Add switch reset definition in dts

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: assert a switch reset if defined in dts.
Chuanhong Guo [Tue, 24 Jul 2018 13:19:04 +0000 (21:19 +0800)]
ath79: ag71xx: assert a switch reset if defined in dts.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ar724x: Fix reset definition for gmac0/gmac1
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ar724x: Fix reset definition for gmac0/gmac1

reset bit 8 is for builtin switch and bit 12 is marked 'reserved' on datasheet.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ar7240: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ar7240: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: Explicitly register mdio bus after ag71xx_hw_init() for ar7240
Chuanhong Guo [Tue, 24 Jul 2018 13:23:04 +0000 (21:23 +0800)]
ath79: ag71xx: Explicitly register mdio bus after ag71xx_hw_init() for ar7240

mdio bus isn't a standalone device on ar7240. (and maybe older SoCs?)
Use simple-mfd for ar7241 and later SoCs to get mdio1 ready before gmac0
For ar7240 and older chips, manually create platform device after
ag71xx_hw_init() in ag71xx_probe()to get mdio0 ready between
ag71xx_hw_init() and ag71xx_phy_connect().

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: Rework mdio clock settings
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ag71xx: Rework mdio clock settings

Allow specifying desired mdio clock frequency in dts.
Use default frequency around 5MHz for builtin switch and 2MHz for other mdio bus.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ar7242: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ar7242: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ar7241: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ar7241: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: Fix support for TP-LINK Archer C7 v2
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: Fix support for TP-LINK Archer C7 v2

Remove mdio1 and phy1 handle. AR8327N is controlled through mdio0.
Add gmac-config for Archer C7.
Remove ucidef_set_interfaces_lan_wan. They can be determined by config_generate automatically.

The following are for adding support for WDR4900 v2/Archer C7 v1 and other
devices that shared the same machine file in ar71xx:
Move mtd partitions to archer-c7-v2.dts. Only Archer C7 v2 has 16M flash.
Flash on Archer C7 v1/TL-WDR4900 v2 is 8M.
Add label for wlan leds. The default trigger for archer c7/wdr4900 is different.
Move wlan5g led to archer-c7-v2.dts. 5G led on WDR4900 is connected to ar9380.
Move rfkill definition to archer-c7-v2.dts. There is no such a button on wdr4900 v2.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: qca955x: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: qca955x: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: qca956x: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: qca956x: Update dts for current ag71xx driver

enable mdio1 by default because mdio1 node is a subnode of eth1
and eth1 node is a "simple-mfd", which makes mdio1 disabled when
eth1 isn't enabled.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: qca953x: Add chosen node and specify console in bootargs
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: qca953x: Add chosen node and specify console in bootargs

Most qca devices use 115200n8 as it's default uart baudrate.
Add 'chosen' node for qca953x like other SoCs in ath79 target.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: qca953x: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: qca953x: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: update qca9533 to new irq driver
Lucian Cristian [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: update qca9533 to new irq driver

Commit c7efc93 renamed controller name
to qca,ar9340-intc and added some functions but qca9533.dtsi was overlooked.
Correct the dtsi and adust it to the new format

Add gmac and correct reset for cascaded irq and build-in switch
Also add the reference clock to soc dtsi so we don't have to have it in every dts

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Remove switch reset definition
Fix gmac compatible string (We only need SW_PHY_SWAP and SW_PHY_ADDR_SWAP on qca953x so use ar9330-gmac instead of ar9340-gmac.)

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ar933x: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ar933x: Update dts for current ag71xx driver

gmac0 is always connected to switch phy4 and mdio1 is always needed.
So add phy handle for eth0 and enable mdio1 by default.
Move fixed-link for gmac1 from device dts to ar9331.dtsi because gmac1 is always connected to builtin switch.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ar934x: Update dts for current ag71xx driver
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ar934x: Update dts for current ag71xx driver

Enable mdio1 by default because mdio1 is needed when eth1 is enabled.

PS: If a ar9341 device has only one port and you only want to use gmac0,
change compatible of gmac1 to "syscon", "simple-mfd" in dts.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: Make builtin switch driver a separated module
Chuanhong Guo [Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)]
ath79: ag71xx: Make builtin switch driver a separated module

This patch did several things:
1. Probe the builtin switch as a separated mdio device.
2. Register a separated mdio bus for builtin switch.
3. Use generic mdio read/write function instead of calling ag71xx_mdio_mii_read/write directly.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: Split mdio driver into an independent platform device.
Chuanhong Guo [Tue, 17 Jul 2018 09:09:13 +0000 (17:09 +0800)]
ath79: ag71xx: Split mdio driver into an independent platform device.

We need to have mdio1 belonging to gmac1 initialized before gmac0.
Split it into a separated mdio device to get both mdios ready before probing gmac.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: Remove ar7240_set_addr and ag71xx_ar7240_start
Chuanhong Guo [Tue, 17 Jul 2018 09:09:13 +0000 (17:09 +0800)]
ath79: ag71xx: Remove ar7240_set_addr and ag71xx_ar7240_start

The builtin switch has it's initial valid mac address(00:00:01:00:00:00).
Since the builtin switch is an independent device, setting mac address of gmac1 to builtin switch isn't a good idea and this makes it impossilbe to split builtin switch apart as an independent platform device.
Remove these functions and apply default VLAN during initialization as a preparation for further driver splitting.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: ag71xx: Split gmac config into separated file and add support for ar934x/qca955x.
Chuanhong Guo [Tue, 17 Jul 2018 09:09:13 +0000 (17:09 +0800)]
ath79: ag71xx: Split gmac config into separated file and add support for ar934x/qca955x.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoath79: Fix mac reset and gmac compatible in ar934x.dtsi
Chuanhong Guo [Tue, 17 Jul 2018 09:09:13 +0000 (17:09 +0800)]
ath79: Fix mac reset and gmac compatible in ar934x.dtsi

Also add phy-mode and fixed-link as gmac1 is always connected
to the builtin switch.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoar71xx: cap324: Drop support for defunct cloud
Daniel F. Dickinson [Wed, 25 Jul 2018 23:18:36 +0000 (19:18 -0400)]
ar71xx: cap324: Drop support for defunct cloud

Only build images for straight OpenWrt (using all flash; wipes out
partitions that contain information only important for accessing a
now defunct cloud service with the stock firmware) since the stock
firmware is now irrelevant.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cap324: Use correct company name
Daniel F. Dickinson [Sun, 29 Jul 2018 08:13:25 +0000 (04:13 -0400)]
ar71xx: cap324: Use correct company name

It's 'PowerCloud Systems' not just 'PowerCloud'

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cap324: Use correct MAC addresses
Daniel F. Dickinson [Sun, 29 Jul 2018 08:33:24 +0000 (04:33 -0400)]
ar71xx: cap324: Use correct MAC addresses

The wrong MAC addresses (from the point of view of the physical device
label) were being assigned to the wrong interfaces.  Fix that.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cap324: Use standard eth as static lan
Daniel F. Dickinson [Sun, 29 Jul 2018 08:30:52 +0000 (04:30 -0400)]
ar71xx: cap324: Use standard eth as static lan

While the stock firmware and previous ar71xx versions of openwrt used the
single ethernet port as a DHCP client, for unmodified openwrt usage it
makes more sense to do the standard openwrt thing and make the ethernet
port a static lan with known address so that users can find the device on
the network more easily.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cr5000: use correct company name
Daniel F. Dickinson [Wed, 25 Jul 2018 23:07:21 +0000 (19:07 -0400)]
ar71xx: cr5000: use correct company name

It's 'PowerCloud Systems' not just 'PowerCloud'

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cr5000: Drop support for defunct cloud
Daniel F. Dickinson [Sat, 21 Jul 2018 01:04:56 +0000 (21:04 -0400)]
ar71xx: cr5000: Drop support for defunct cloud

The Skydog cloud service no longer exists hence supporting going back
to stock firmware with cloud support is no longer applicable.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cr5000: Tweak switch LED settings
Daniel F. Dickinson [Sat, 21 Jul 2018 01:03:27 +0000 (21:03 -0400)]
ar71xx: cr5000: Tweak switch LED settings

This is basically cosmetic and sets the Port 1-4 LEDs to blink on
10/100/1000M.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cr5000: Fix the reset button as KEY_RESTART
Daniel F. Dickinson [Sat, 21 Jul 2018 01:01:23 +0000 (21:01 -0400)]
ar71xx: cr5000: Fix the reset button as KEY_RESTART

The reset button was incorrectly returning KEY_WPS_BUTTON as the key
code.  We want KEY_RESTART., so make that fix.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoar71xx: cr5000: board data: Use better macro name
Daniel F. Dickinson [Sat, 21 Jul 2018 00:59:40 +0000 (20:59 -0400)]
ar71xx: cr5000: board data: Use better macro name

The PCIe wireless MAC address address is better labelled as WMAC
than MAC to emphasize that it is for a wireless interface.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoath79: Port PowerCloud Systems CAP324 support
Daniel F. Dickinson [Sat, 28 Jul 2018 12:52:39 +0000 (08:52 -0400)]
ath79: Port PowerCloud Systems CAP324 support

The CAP324 was an AP for a NaaS offering that is now defunct.  While
previously supported in the ar71xx arch, there were some errata (to
be fixed shortly).

Notable differences from ar71xx support:

1) The method of getting the ath9k firmware for the PCIe 2ghz wifi has
changed (due to changes in how the arch handles this), since this device
doesn't use the EEPROM except to get the MAC address of the wifi.

2) /etc/config/wireless will need to be regenerated as the path(s) to
the wireless device(s) have changed.

3) ath79 OpenWrt firmware no longer supports build an image that allows
reverting to stock firmware (as the cloud service no longer exists, the
stock firmware is useless), instead using all of the flash for image and
overlay (less u-boot/env and art).

4) Initial network config treats the ethernet port as a Lan port with
the standard default address (192.168.1.1 unless changed in .config
--e.g. via menuconfig) instead of using DHCP (this was the default for
the stock firmware, however for openwrt use this is rather confusion and
counter-productive as the user has a harder time finding the device on
the network.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoath79: Port PowerCloud Systems CR5000 support
Daniel F. Dickinson [Fri, 20 Jul 2018 20:52:46 +0000 (16:52 -0400)]
ath79: Port PowerCloud Systems CR5000 support

Add ath79 arch support for PowerCloud Systems CR5000.  Previously
supported under ar71xx (however there are some errors in that support;
to be fixed shortly).

Info:

* This board is based on the Atheros DB120 reference design, but doesn't
  use the on-board switch.  Instead it attachs GMAC0 to an AR8327 switch.
* It only uses GMAC0 and the WAN is simply a VLAN in the stock firmware.
* It has 64MB RAM and 8MB flash.
* In the dts version we get rid of using 'open-drain' for the AR8327
  LED controls.
* As with the platform data version we disable JTAG as this conflicts
  with one of the pair of GPIO's required for the power/status LED
  (GPIO2 and GPIO4 are used for this LED).
* The pcie card wifi has an EEPROM but gets it's MAC address from
  the ART partition.
* The SoC wifi (2.4 GHz) is all from the ART.
* The USB is support comes from the SoC.

NB. This is actually an AR9342 rather than AR9344 but we use the 9344
definitions because there are no relevant differences for this board.

NB: Building only images that don't support reverting to the old
cloud-based firmware as the Skydog cloud service for the CR5000 no
longer exists.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoiwinfo: update to version 2018-07-24
Nick Hainke [Wed, 25 Jul 2018 18:16:13 +0000 (20:16 +0200)]
iwinfo: update to version 2018-07-24

Update to new iwinfo version.
Adds support for channel survey.
Adds ubus support.
Etc.

Signed-off-by: Nick Hainke <vincent@systemli.org>
6 years agogrub2: fix packed-not-aligned error on GCC 8
Edi Turn [Mon, 23 Jul 2018 14:08:18 +0000 (22:08 +0800)]
grub2: fix packed-not-aligned error on GCC 8

Fix the compile error "packed-not-aligned" when using GCC 8.

Signed-off-by: Edi Turn <yyxstter@gmail.com>
6 years agotreewide: Bump PKG_RELEASE due to mbedtls update
Daniel Engberg [Fri, 27 Jul 2018 10:23:40 +0000 (12:23 +0200)]
treewide: Bump PKG_RELEASE due to mbedtls update

Bump PKG_RELEASE on packages that depends on (lib)mbedtls to avoid library
mismatch.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agombedtls: Update to 2.12.0
Daniel Engberg [Fri, 27 Jul 2018 10:16:29 +0000 (12:16 +0200)]
mbedtls: Update to 2.12.0

Update mbedtls to 2.12.0
Multiple security fixes
Add support for Chacha20 and Poly1305 cryptographic primitives and their
associated ciphersuites

Difference in size on mips_24kc (ipk):
164kbytes (167882 bytes)
170kbytes (173563 bytes)

https://tls.mbed.org/tech-updates/releases/mbedtls-2.12.0-2.7.5-and-2.1.14-released

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotoolchain/binutils: Add binutils 2.31.1
Daniel Engberg [Fri, 20 Jul 2018 18:29:47 +0000 (20:29 +0200)]
toolchain/binutils: Add binutils 2.31.1

Add binutils 2.31.1 to repo

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agoar71xx: improve MikroTik wAP R support
Thibaut VARÈNE [Sun, 29 Jul 2018 10:15:00 +0000 (12:15 +0200)]
ar71xx: improve MikroTik wAP R support

81d446b045176e3e25bb0ef74e3d060b51a0a353 introduced incomplete
support for this device.

This patch attempts to correct the situation based on OEM source
code.

LED1-3 are GSM mode on OFW (2G/3G/4G) hence unassigned here.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: David Ehrmann <ehrmann@gmail.com>
6 years agoar71xx: add missing diag LED support for RB wAP 2nD
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:59 +0000 (12:14 +0200)]
ar71xx: add missing diag LED support for RB wAP 2nD

3b15eb06c366cf3805590a61f22e966a95bf8101 did not include diag.sh
edit

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
6 years agoar71xx: rbspi: mark rb911L user led as active low
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:58 +0000 (12:14 +0200)]
ar71xx: rbspi: mark rb911L user led as active low

The active_low flag was missing for the user LED. This LED is open drain
(confirmed in OEM source) and open drain only makes sense for active low
GPIOs.

The two wireless LEDs mentioned in the comments are also #defined for
future reference.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: Ryan Mounce <ryan@mounce.com.au>
6 years agoar71xx: rbspi: fix RB wAP AC gpio conflict and LED
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:57 +0000 (12:14 +0200)]
ar71xx: rbspi: fix RB wAP AC gpio conflict and LED

e15c63a37574bd15ce3a6636c2f04741ab76f7b9 introduced code that was trying
to register GPIO 1 as both an LED and a button. The OEM source makes it
clear that LED1 is not wired to the SoC GPIOs. GPIO 1 is the reset button.

Furthermore the (green) power led default state should also be defined,
(matching OEM source), and it should be used by diag.sh since it's
currently the only software-controllable LED.

This patch fixes these issues and renames the corresponding #defines for
clarity

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
6 years agoar71xx: rbspi: clarify USB power gpios action
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:56 +0000 (12:14 +0200)]
ar71xx: rbspi: clarify USB power gpios action

The gpios that control power toggle for USB on the RouterBOARD devices
are active low _off_ switches.

When they are active (low), power is off. When they are inactive
(high), power is on.

Rename GPIO defines, set gpios to GPIOF_ACTIVE_LOW for consistency and
reflect their true action in the display name. This brings openwrt code
in line with OEM.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: Ryan Mounce <ryan@mounce.com.au>
6 years agoadmswconfig: Remove dead URL + HTTPS
Rosen Penev [Sun, 29 Jul 2018 17:02:08 +0000 (10:02 -0700)]
admswconfig: Remove dead URL + HTTPS

Found using uscan.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agokernel: add DT binding support to the mtd redboot parser
Rafał Miłecki [Mon, 30 Jul 2018 06:38:30 +0000 (08:38 +0200)]
kernel: add DT binding support to the mtd redboot parser

It allows using that parser with the "compatible" set in DT.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoapm821xx: clean up gpio-hogs
Christian Lamparter [Sun, 29 Jul 2018 09:55:17 +0000 (11:55 +0200)]
apm821xx: clean up gpio-hogs

convert the usb and both sata port power related gpio-hogs to
what they really are: fixed-regulators.

The ethernet phy-reset gpio-hog is replaced by a proper
upstream (4.15+) reset-gpios property in the mdio-node.
So this will work eventually.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoapm821xx: split MBL's rootfs.img.gz into a sysupgrade and factory image
Christian Lamparter [Sun, 29 Jul 2018 09:55:16 +0000 (11:55 +0200)]
apm821xx: split MBL's rootfs.img.gz into a sysupgrade and factory image

@vahid-dan reported a issue with extracting the rpi images with
Gnome's Archive Manager:
"Ubuntu Archive Manager cannot extract the file and it just
throws a general error message: "An error occurred while
extracting files".
<https://forum.lede-project.org/t/corrupted-pre-built-v18-06-0-rc2-image-for-rpi>

The MBL's rootfs.img.gz image is generated in much the same way.
Hence this patch preemptively splits the rootfs.img.gz image into
a sysupgrade and a factory image.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoapm821xx: build squashfs-rootfs images for the MBL
Christian Lamparter [Sun, 29 Jul 2018 09:55:15 +0000 (11:55 +0200)]
apm821xx: build squashfs-rootfs images for the MBL

This patch adds support for squashfs as the root filesystem.

advantages:
 - migrate from a existing -ext4 installation and back
   with the sysupgrade utility
 - existing partition layout will not be lost during switch
 - slightly smaller image size as compared to the -ext4 image.

disadvantages:
 - needs f2fs + tools. This is because fstools rootdisk.c decides based
   on the partition size (currently root partitions > 100 MiB) f2fs is
   used as the rootfs_data filesystem.
 - rootfs_data is placed into the rootfs partition after the squashfs.
   This makes it difficult for tools that expect a /dev/sda${X} device.
   It also makes it difficult for data recovery tools as they might not
   expect to find a embedded partition or will be slightly confused.
   ... or will not support f2fs.

For people with existing build configurations: make sure to include mkf2fs
and f2fsck packages into the image. Otherwise the new -squashfs image will
only boot from the ram-overlay.

Note:
All overlay data (configurations/all installed packages/...) will be
placed in inside the rootfs partition (i.e. /dev/sda2) just after the
squashfs image.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agobrcm2708: split sdcard.img.gz into a sysupgrade and factory image
Christian Lamparter [Sun, 29 Jul 2018 09:55:14 +0000 (11:55 +0200)]
brcm2708: split sdcard.img.gz into a sysupgrade and factory image

@vahid-dan reported a issue with extracting the rpi images with
Gnome's Archive Manager:
"Ubuntu Archive Manager cannot extract the file and it just
throws a general error message: "An error occurred while
extracting files".
<https://forum.lede-project.org/t/corrupted-pre-built-v18-06-0-rc2-image-for-rpi>

@blogic told me to split the single sdcard.img.gz for the RPi
into a sysupgrade and a factory image for all brcm2708 targets.
The factory images will have no metadata attached, this way
these utilities that can't deal with the attached metadata will
not fail for no reason.

Cc: John Crispin <john@phrozen.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoipq-wifi: add a note / reminder about upstreaming new board files
Christian Lamparter [Sun, 29 Jul 2018 09:55:13 +0000 (11:55 +0200)]
ipq-wifi: add a note / reminder about upstreaming new board files

|Please send a mail with your device-specific board files upstream.
|You can find instructions and examples on the linux-wireless wiki:
|<https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agobrcm63xx: drop linux,part-probe usage where possible
Jonas Gorski [Sun, 29 Jul 2018 11:09:22 +0000 (13:09 +0200)]
brcm63xx: drop linux,part-probe usage where possible

It was present as 4.4 compatibility, but since we now use 4.9 or later
with the new upstream solution, we don't need it anymore.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agobrcm63xx: drop own implementation of DT partitions in favour of upstream
Jonas Gorski [Sun, 29 Jul 2018 10:53:49 +0000 (12:53 +0200)]
brcm63xx: drop own implementation of DT partitions in favour of upstream

The binding works the same, so we can just drop the revert and the patch.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agothc-ipv6: Update URLs
Rosen Penev [Sun, 29 Jul 2018 07:35:58 +0000 (00:35 -0700)]
thc-ipv6: Update URLs

Development has moved to GitHub. Found using UScan.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agolibjson-c: Update package URL
Rosen Penev [Sun, 29 Jul 2018 07:26:29 +0000 (00:26 -0700)]
libjson-c: Update package URL

Found through UScan.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agobcm53xx: revert SPI controller commit breaking flash reads
Rafał Miłecki [Sun, 29 Jul 2018 09:01:14 +0000 (11:01 +0200)]
bcm53xx: revert SPI controller commit breaking flash reads

That upstream commit caused instability in flash reads. It was reported
but there isn't any proper fix as for now.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agotools/cmake: Update to 3.12.0
Daniel Engberg [Sun, 22 Jul 2018 16:31:38 +0000 (18:31 +0200)]
tools/cmake: Update to 3.12.0

Update cmake to 3.12.0
Remove 140-curl-fix-libressl.patch as fix is in upstream

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agobcm53xx: backport BCM5301X/BCM53573 dts commits from 4.19+
Rafał Miłecki [Sat, 28 Jul 2018 19:46:40 +0000 (21:46 +0200)]
bcm53xx: backport BCM5301X/BCM53573 dts commits from 4.19+

This includes Linksys EA9500 support, BCM53573 timer fix and
upstream-ready partitions patch that replaces two downstream hacks.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agobcm53xx: switch USB 3.0 PHY DT description to use MDIO bus
Rafał Miłecki [Sat, 28 Jul 2018 19:37:46 +0000 (21:37 +0200)]
bcm53xx: switch USB 3.0 PHY DT description to use MDIO bus

USB 3.0 PHY is attached to the MDIO bus and should be supported
(accessed) as a MDIO device. This wasn't known initially which resulted
in writing driver that was working with MDIO bus (using some magic
values) without knowing it.

This commit updates DT to properly describe MDIO & USB 3.0 PHY and
enables required kernel drivers.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agobcm53xx: backport DT fix for I2C controller interrupt
Rafał Miłecki [Sat, 28 Jul 2018 19:35:23 +0000 (21:35 +0200)]
bcm53xx: backport DT fix for I2C controller interrupt

Specified interrupt type was incorrect.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoigmpproxy: add a silent logging option
Dmitry Tunin [Sat, 28 Jul 2018 14:06:28 +0000 (17:06 +0300)]
igmpproxy: add a silent logging option

[0-3](none, minimal[default], more, maximum)

It is not 100% backward compatible, because now 0 disables logging

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
6 years agodnsmasq: bump to dnsmasq v2.80test3
Kevin Darbyshire-Bryant [Sat, 28 Jul 2018 09:47:32 +0000 (10:47 +0100)]
dnsmasq: bump to dnsmasq v2.80test3

Refresh patches

Upstream commits since last bump:

3b6eb19 Log DNSSEC trust anchors at startup.
f3e5787 Trivial comment change.
c851c69 Log failure to confirm an address in DHCPv6.
a3bd7e7 Fix missing fatal errors when parsing some command-line/config options.
ab5ceaf Document the --help option in the french manual
1f2f69d Fix recurrent minor spelling mistake in french manual
f361b39 Fix some mistakes in french translation of the manual
eb1fe15 When replacing cache entries, preserve CNAMES which target them.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agokernel: backport mtd support for subpartitions in DT
Rafał Miłecki [Fri, 27 Jul 2018 19:54:08 +0000 (21:54 +0200)]
kernel: backport mtd support for subpartitions in DT

This is a new & warm feature that allows nesting partiitons in DT and
mixing their types (e.g. static vs. dynamic). It's very useful for
boards that have most partitions static but some of them require extra
parsing (e.g. a "firmware" partition).

It's required to successfully backport support for new devices using
that new syntax in their DT files.

Since brcm63xx has a custom alternative patch the upstream one is being
reverted for it. The plan is to make brcm63xx use the upstream
implementation.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agobrcm47xx: revert upstream commit breaking BCM4718A1
Rafał Miłecki [Fri, 27 Jul 2018 13:57:13 +0000 (15:57 +0200)]
brcm47xx: revert upstream commit breaking BCM4718A1

This fixes kernel hang when booting on BCM4718A1 (& probably BCM4717A1).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agokernel: backport mtd patches with Broadcom of_match_table-s
Rafał Miłecki [Fri, 27 Jul 2018 13:51:53 +0000 (15:51 +0200)]
kernel: backport mtd patches with Broadcom of_match_table-s

Two tiny & trivial patches with no regression risk. One simplifies
bcm53xx downstream patch.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoutil-linux: package blockdev executable
Daniel Golle [Fri, 27 Jul 2018 10:50:35 +0000 (12:50 +0200)]
util-linux: package blockdev executable

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agowwan: Fix teardown for sierra_net driver
Masashi Honma [Tue, 17 Jul 2018 23:40:33 +0000 (08:40 +0900)]
wwan: Fix teardown for sierra_net driver

The sierra_net driver is using proto_directip_setup for setup. So use
proto_directip_teardown for teardown.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
6 years agoead: use new protocol setting API since libpcap 1.9.0
Syrone Wong [Thu, 26 Jul 2018 14:46:39 +0000 (22:46 +0800)]
ead: use new protocol setting API since libpcap 1.9.0

Dropped the protocol API specific symbol: HAS_PROTO_EXTENSION and
switch to the official API

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
6 years agolibpcap: update to 1.9.0
Syrone Wong [Thu, 26 Jul 2018 14:46:38 +0000 (22:46 +0800)]
libpcap: update to 1.9.0

001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch dropped due to upstream
002-Add-missing-compiler_state_t-parameter.patch dropped due to upstream

202-protocol_api.patch dropped due to implemented upstream by another way
upstream commit: https://github.com/the-tcpdump-group/libpcap/commit/55c690f6f834b4762697d7a134de439c9096c921
and renamed via: https://github.com/the-tcpdump-group/libpcap/commit/697b1f7e9b1d6f5a5be04f821d7c5dc62458bb3b

ead is the only user who use the protocol api, we have to use the new api since libpcap 1.9.0

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
6 years agomac80211: brcmfmac: backport 4.19 patches preparing monitor mode support
Rafał Miłecki [Thu, 26 Jul 2018 21:20:30 +0000 (23:20 +0200)]
mac80211: brcmfmac: backport 4.19 patches preparing monitor mode support

Monitor mode isn't supported yet with brcmfmac, it's just an early work.
This also prepares brcmfmac to work stable with new firmwares which use
updated struct for passing STA info.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agomac80211: backport brcmfmac fixes & debugging helpers from 4.18
Rafał Miłecki [Thu, 26 Jul 2018 20:43:18 +0000 (22:43 +0200)]
mac80211: backport brcmfmac fixes & debugging helpers from 4.18

The most important is probably regression fix in handling platform
NVRAM. That bug stopped hardware from being properly calibrated breaking
e.g. 5 GHz for Netgear R8000.

Other than that it triggers memory dumps when experiencing firmware
problems which is important for debugging purposes.

Fixes: 7e8eb7f309a8 ("mac80211: backport brcmfmac firmware & clm_blob loading rework")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoubus: update to latest git HEAD
Jo-Philipp Wich [Thu, 26 Jul 2018 14:48:07 +0000 (16:48 +0200)]
ubus: update to latest git HEAD

40e0931 libubus: pass an empty UBUS_ATTR_DATA block if msg is NULL on invoke

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoodhcpd: update to latest git HEAD
Jo-Philipp Wich [Thu, 26 Jul 2018 12:53:05 +0000 (14:53 +0200)]
odhcpd: update to latest git HEAD

44cce31 ubus: avoid dumping interface state with NULL message

Signed-off-by: Jo-Philipp Wich <jo@mein.io>