15.05/openwrt.git
7 years agoMerge pull request #124 from sartura/chaos_calmer-upstream-relocation
Luka Perkov [Tue, 11 Oct 2016 08:28:15 +0000 (10:28 +0200)]
Merge pull request #124 from sartura/chaos_calmer-upstream-relocation

odhcp* upstream relocation

7 years agoodhcpd: update to git HEAD
Hrvoje Varga [Mon, 10 Oct 2016 12:26:52 +0000 (12:26 +0000)]
odhcpd: update to git HEAD

This change also reflect relocation of upstream project which has been
moved to OpenWrt GitHub organization.

Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
7 years agoodhcp6c: update to git HEAD
Hrvoje Varga [Mon, 10 Oct 2016 12:26:04 +0000 (12:26 +0000)]
odhcp6c: update to git HEAD

This change also reflect relocation of upstream project which has been
moved to OpenWrt GitHub organization.

Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
7 years agoMerge pull request #116 from imShara/fix_feeds
Luka Perkov [Sun, 9 Oct 2016 19:13:55 +0000 (21:13 +0200)]
Merge pull request #116 from imShara/fix_feeds

scripts: feeds: fix version detection for Make >= 4.2.1

7 years agoscripts: feeds: fix version detection for Make >= 4.2.1
Jo-Philipp Wich [Thu, 7 Jul 2016 12:47:43 +0000 (14:47 +0200)]
scripts: feeds: fix version detection for Make >= 4.2.1

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoMerge pull request #105 from wigyori/chaos_calmer
Zoltan Herpai [Thu, 29 Sep 2016 13:49:20 +0000 (15:49 +0200)]
Merge pull request #105 from wigyori/chaos_calmer

CC: openssl security upgrade, sync updates from git.openwrt.org/chaos_calmer
7 years agomac80211: brcmfmac: backport changes from 2016-09-27
Rafał Miłecki [Thu, 29 Sep 2016 12:59:38 +0000 (14:59 +0200)]
mac80211: brcmfmac: backport changes from 2016-09-27

This fixes memory leaks, some possible crashes and bug that could cause
WARNING on every add_key/del_key call. It also replaces WARNING with
a simple message. They may still occur e.g. on station going out of
range and A-MPDU stall in the firmware.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport patches that were skipped previously #2
Rafał Miłecki [Thu, 29 Sep 2016 12:58:53 +0000 (14:58 +0200)]
mac80211: brcmfmac: backport patches that were skipped previously #2

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport patches that were skipped previously #1
Rafał Miłecki [Thu, 29 Sep 2016 12:25:35 +0000 (14:25 +0200)]
mac80211: brcmfmac: backport patches that were skipped previously #1

They are necessary for further fixes and improvements otherwise recent
patches don't apply.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomwlwifi: upgrade to 10.3.0.18-20160804
Imre Kaloz [Thu, 29 Sep 2016 12:24:56 +0000 (14:24 +0200)]
mwlwifi: upgrade to 10.3.0.18-20160804
adds support for the Linksys WRT1900ACSv2 and WRT1200ACv2

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
7 years agomac80211: brcmfmac: backport patch simplifying brcmf_alloc_vif
Rafał Miłecki [Thu, 29 Sep 2016 12:24:14 +0000 (14:24 +0200)]
mac80211: brcmfmac: backport patch simplifying brcmf_alloc_vif

This is quite trivial and will be required for VIF fixes in the future.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agomac80211: brcmfmac: fix stopping netdev queue when bus clogs up
Rafał Miłecki [Thu, 29 Sep 2016 12:23:54 +0000 (14:23 +0200)]
mac80211: brcmfmac: fix stopping netdev queue when bus clogs up

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agomac80211: brcmfmac: support hidden SSID
Rafał Miłecki [Thu, 29 Sep 2016 12:23:32 +0000 (14:23 +0200)]
mac80211: brcmfmac: support hidden SSID

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agoramips: fix usb phy initialisation
John Crispin [Thu, 29 Sep 2016 12:23:08 +0000 (14:23 +0200)]
ramips: fix usb phy initialisation

this broke usb20 device detection.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoramips: fix timing issues when using MT7621 spi
John Crispin [Thu, 29 Sep 2016 12:22:40 +0000 (14:22 +0200)]
ramips: fix timing issues when using MT7621 spi

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomac80211: brcmfmac: fix interfaces management
Rafał Miłecki [Thu, 29 Sep 2016 12:21:52 +0000 (14:21 +0200)]
mac80211: brcmfmac: fix interfaces management

To work correctly hostapd requires wireless driver to allow interfaces
removal. It was working with brcmfmac only partially. Firmware for
BCM43602 got some special hack (feature?) that allowed removing all
interfaces by disabling mbss mode. It wasn't working with BCM4366
firmware and remaining interfaces were preventing hostapd from starting
again.

Those patches add support for "interface_remove" firmware method which
works with BCM4366 firmware and they make it finally possible to use
BCM4366 & brcmfmac & multiple interfaces.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agoCC: kernel: update kernel 3.18 to version 3.18.36
Hauke Mehrtens [Thu, 29 Sep 2016 12:21:21 +0000 (14:21 +0200)]
CC: kernel: update kernel 3.18 to version 3.18.36
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agorpcd: iwinfo plugin fixes
Rafał Miłecki [Thu, 29 Sep 2016 12:20:27 +0000 (14:20 +0200)]
rpcd: iwinfo plugin fixes

 - Expose supported HT rate information in info call
 - Zero out ccode buffer when listing countries

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agomac80211: brcmfmac: fix lockup related to P2P interface
Rafał Miłecki [Thu, 29 Sep 2016 12:19:44 +0000 (14:19 +0200)]
mac80211: brcmfmac: fix lockup related to P2P interface

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
7 years agoCC: openssl: update to 1.0.2j
Zoltan HERPAI [Thu, 29 Sep 2016 05:29:15 +0000 (07:29 +0200)]
CC: openssl: update to 1.0.2j
Security fixes:
* (Severity: High) OCSP Status Request extension unbounded memory growth (CVE-2016-6304)
* (Severity: Moderate) SSL_peek() hang on empty record (CVE-2016-6305)
* (Severity: Moderate) Missing CRL sanity check (CVE-2016-7052)
* 10 Low severity issues

Security advisories:
https://www.openssl.org/news/secadv/20160922.txt
https://www.openssl.org/news/secadv/20160926.txt

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 years agoMerge pull request #82 from ecsv/openmesh-cc
Zoltan Herpai [Wed, 21 Sep 2016 19:13:17 +0000 (21:13 +0200)]
Merge pull request #82 from ecsv/openmesh-cc

OpenMesh MR1750(v2) and OM2P-HSv3 support for Chaos Calmer

7 years agoar71xx: add MR1750v2 to the MR1750 profile
Sven Eckelmann [Fri, 17 Jun 2016 13:24:53 +0000 (15:24 +0200)]
ar71xx: add MR1750v2 to the MR1750 profile

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: extract ath10k wifi board.bin for the OpenMesh MR1750v2 board
Sven Eckelmann [Fri, 17 Jun 2016 13:24:52 +0000 (15:24 +0200)]
ar71xx: extract ath10k wifi board.bin for the OpenMesh MR1750v2 board

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/uboot-envtools: add OpenMesh MR1750v2 support
Sven Eckelmann [Fri, 17 Jun 2016 13:24:51 +0000 (15:24 +0200)]
package/uboot-envtools: add OpenMesh MR1750v2 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/om-watchdog: add OpenMesh MR1750v2 support
Sven Eckelmann [Fri, 17 Jun 2016 13:24:50 +0000 (15:24 +0200)]
package/om-watchdog: add OpenMesh MR1750v2 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: enable sysupgrade for the OpenMesh MR1750v2
Sven Eckelmann [Fri, 17 Jun 2016 13:24:49 +0000 (15:24 +0200)]
ar71xx: enable sysupgrade for the OpenMesh MR1750v2

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add user-space support for the OpenMesh MR1750v2
Sven Eckelmann [Fri, 17 Jun 2016 13:24:48 +0000 (15:24 +0200)]
ar71xx: add user-space support for the OpenMesh MR1750v2

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add kernel support for the OpenMesh MR1750v2
Sven Eckelmann [Fri, 17 Jun 2016 13:24:47 +0000 (15:24 +0200)]
ar71xx: add kernel support for the OpenMesh MR1750v2

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add OM2P-HSv3 to the OM2P profile
Sven Eckelmann [Fri, 17 Jun 2016 13:24:46 +0000 (15:24 +0200)]
ar71xx: add OM2P-HSv3 to the OM2P profile

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/uboot-envtools: add OpenMesh OM2P-HSv3 support
Sven Eckelmann [Fri, 17 Jun 2016 13:24:45 +0000 (15:24 +0200)]
package/uboot-envtools: add OpenMesh OM2P-HSv3 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/om-watchdog: add OpenMesh OM2P-HSv3 support
Sven Eckelmann [Fri, 17 Jun 2016 13:24:44 +0000 (15:24 +0200)]
package/om-watchdog: add OpenMesh OM2P-HSv3 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3
Sven Eckelmann [Fri, 17 Jun 2016 13:24:43 +0000 (15:24 +0200)]
ar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add user-space support for the OpenMesh OM2P-HSv3
Sven Eckelmann [Fri, 17 Jun 2016 13:24:42 +0000 (15:24 +0200)]
ar71xx: add user-space support for the OpenMesh OM2P-HSv3

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add kernel support for the OpenMesh OM2P-HSv3
Sven Eckelmann [Fri, 17 Jun 2016 13:24:41 +0000 (15:24 +0200)]
ar71xx: add kernel support for the OpenMesh OM2P-HSv3

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add OM5P-ACv2 to the OM5P-AC profile
Sven Eckelmann [Thu, 19 May 2016 18:21:17 +0000 (20:21 +0200)]
ar71xx: add OM5P-ACv2 to the OM5P-AC profile

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

7 years agoar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-ACv2 board
Sven Eckelmann [Thu, 19 May 2016 18:21:16 +0000 (20:21 +0200)]
ar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-ACv2 board

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

7 years agouboot-envtools: add OpenMesh OM5P-ACv2 support
Sven Eckelmann [Thu, 19 May 2016 18:21:15 +0000 (20:21 +0200)]
uboot-envtools: add OpenMesh OM5P-ACv2 support

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

7 years agoom-watchdog: add OpenMesh OM5P-ACv2 support
Sven Eckelmann [Thu, 19 May 2016 18:21:14 +0000 (20:21 +0200)]
om-watchdog: add OpenMesh OM5P-ACv2 support

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

7 years agoar71xx: enable sysupgrade for the OpenMesh OM5P-ACv2
Sven Eckelmann [Thu, 19 May 2016 18:21:13 +0000 (20:21 +0200)]
ar71xx: enable sysupgrade for the OpenMesh OM5P-ACv2

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

7 years agoar71xx: add user-space support for the OpenMesh OM5P-ACv2
Sven Eckelmann [Thu, 19 May 2016 18:21:12 +0000 (20:21 +0200)]
ar71xx: add user-space support for the OpenMesh OM5P-ACv2

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

7 years agoar71xx: add kernel support for the OpenMesh OM5P-ACv2 board
Sven Eckelmann [Thu, 19 May 2016 18:21:11 +0000 (20:21 +0200)]
ar71xx: add kernel support for the OpenMesh OM5P-ACv2 board

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

7 years agoar71xx: create profile and build image for the OpenMesh OM5P-AC board
Sven Eckelmann [Thu, 19 May 2016 18:21:10 +0000 (20:21 +0200)]
ar71xx: create profile and build image for the OpenMesh OM5P-AC board

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

7 years agoar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-AC board
Sven Eckelmann [Thu, 19 May 2016 18:21:09 +0000 (20:21 +0200)]
ar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-AC board

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

7 years agouboot-envtools: add OpenMesh OM5P-AC support
Sven Eckelmann [Thu, 19 May 2016 18:21:08 +0000 (20:21 +0200)]
uboot-envtools: add OpenMesh OM5P-AC support

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

7 years agoom-watchdog: add OpenMesh OM5P-AC support
Sven Eckelmann [Thu, 19 May 2016 18:21:07 +0000 (20:21 +0200)]
om-watchdog: add OpenMesh OM5P-AC support

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

7 years agoar71xx: enable sysupgrade for the OpenMesh OM5P-AC
Sven Eckelmann [Thu, 19 May 2016 18:21:06 +0000 (20:21 +0200)]
ar71xx: enable sysupgrade for the OpenMesh OM5P-AC

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

7 years agoscripts/om-fwupgradecfg-gen.sh: add support for the OM5P-AC
Sven Eckelmann [Thu, 19 May 2016 18:21:05 +0000 (20:21 +0200)]
scripts/om-fwupgradecfg-gen.sh: add support for the OM5P-AC

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

7 years agoar71xx: add user-space support for the OpenMesh OM5P-AC
Sven Eckelmann [Thu, 19 May 2016 18:21:04 +0000 (20:21 +0200)]
ar71xx: add user-space support for the OpenMesh OM5P-AC

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

7 years agoar71xx: add kernel support for the OpenMesh OM5P-AC board
Sven Eckelmann [Thu, 19 May 2016 18:21:03 +0000 (20:21 +0200)]
ar71xx: add kernel support for the OpenMesh OM5P-AC board

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

7 years agoscripts/om-fwupgradecfg-gen.sh: Generate sha256sum for uboot verification
Sven Eckelmann [Thu, 19 May 2016 18:21:02 +0000 (20:21 +0200)]
scripts/om-fwupgradecfg-gen.sh: Generate sha256sum for uboot verification

Future Open Mesh u-boot versions are changing the check of the image files
(vmlinux, rootfs) from md5 to sha256. Having both in them should be enough
to ensure backward and forward compatibility.

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

7 years agoscripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum check
Sven Eckelmann [Thu, 19 May 2016 18:21:01 +0000 (20:21 +0200)]
scripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum check

The u-boot on Open Mesh devices checks the whole transfered image against a
md5sum. This is stored inside the option filemd5sum inside the
fwupgrade.cfg. The bootloader will not check it when this setting is
missing and could therefore write invalid images to the flash.

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

7 years agoar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR1750
Sven Eckelmann [Thu, 19 May 2016 18:21:00 +0000 (20:21 +0200)]
ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR1750

The MR1750 must unset some bits in ETH_CFG which were set by u-boot to work
correctly under OpenWrt. But the global function
ath79_setup_qca955x_eth_cfg will not unset all of them to increase the
backward compatiblity with older mach-* files. A private (simplified)
version for MR1750 can be used instead.

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

7 years agoar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR900
Sven Eckelmann [Thu, 19 May 2016 18:20:59 +0000 (20:20 +0200)]
ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR900

The MR900 must unset some bits in ETH_CFG which were set by u-boot to work
correctly under OpenWrt. But the global function
ath79_setup_qca955x_eth_cfg will not unset all of them to increase the
backward compatiblity with older mach-* files. A private (simplified)
version for MR900 can be used instead.

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

7 years agoar71xx: Use PHY fixups for Open Mesh MR1750
Sven Eckelmann [Thu, 19 May 2016 18:20:58 +0000 (20:20 +0200)]
ar71xx: Use PHY fixups for Open Mesh MR1750

The delays of PHY/MAC on the MR1750 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.

This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.

Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.

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

7 years agoar71xx: Use PHY fixups for Open Mesh MR900
Sven Eckelmann [Thu, 19 May 2016 18:20:57 +0000 (20:20 +0200)]
ar71xx: Use PHY fixups for Open Mesh MR900

The delays of PHY/MAC on the MR900 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.

This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.

Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.

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

7 years agoar71xx: Add QCA955X GPIO mux and function definitions
Sven Eckelmann [Thu, 19 May 2016 18:20:56 +0000 (20:20 +0200)]
ar71xx: Add QCA955X GPIO mux and function definitions

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

7 years agoar71xx: Add support for ath79_gpio_function_* on QCA955X
Sven Eckelmann [Thu, 19 May 2016 18:20:55 +0000 (20:20 +0200)]
ar71xx: Add support for ath79_gpio_function_* on QCA955X

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

7 years agoar71xx: Allow to use ath79_gpio_output_select on QCA955x
Sven Eckelmann [Thu, 19 May 2016 18:20:54 +0000 (20:20 +0200)]
ar71xx: Allow to use ath79_gpio_output_select on QCA955x

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

7 years agoar71xx: Use *_eth_cfg helper for Open Mesh MR900 boards
Sven Eckelmann [Thu, 19 May 2016 18:20:53 +0000 (20:20 +0200)]
ar71xx: Use *_eth_cfg helper for Open Mesh MR900 boards

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

7 years agoar71xx: Extend the list of bits in QCA955X_GMAC_REG_ETH_CFG
Sven Eckelmann [Thu, 19 May 2016 18:20:52 +0000 (20:20 +0200)]
ar71xx: Extend the list of bits in QCA955X_GMAC_REG_ETH_CFG

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

7 years agoar71xx: create profile and build image for the OpenMesh MR1750 board
Sven Eckelmann [Thu, 19 May 2016 18:20:51 +0000 (20:20 +0200)]
ar71xx: create profile and build image for the OpenMesh MR1750 board

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

7 years agopackage/uboot-envtools: add OpenMesh MR1750 support
Sven Eckelmann [Thu, 19 May 2016 18:20:50 +0000 (20:20 +0200)]
package/uboot-envtools: add OpenMesh MR1750 support

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

7 years agopackage/om-watchdog: add OpenMesh MR1750 support
Sven Eckelmann [Thu, 19 May 2016 18:20:49 +0000 (20:20 +0200)]
package/om-watchdog: add OpenMesh MR1750 support

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

7 years agoar71xx: enable sysupgrade for the OpenMesh MR1750
Sven Eckelmann [Thu, 19 May 2016 18:20:48 +0000 (20:20 +0200)]
ar71xx: enable sysupgrade for the OpenMesh MR1750

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

7 years agoscripts/om-fwupgradecfg-gen.sh: add support for the MR1750
Sven Eckelmann [Thu, 19 May 2016 18:20:47 +0000 (20:20 +0200)]
scripts/om-fwupgradecfg-gen.sh: add support for the MR1750

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

7 years agoar71xx: add user-space support for the OpenMesh MR1750 board
Sven Eckelmann [Thu, 19 May 2016 18:20:46 +0000 (20:20 +0200)]
ar71xx: add user-space support for the OpenMesh MR1750 board

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

7 years agoar71xx: add kernel support for the OpenMesh MR1750 board
Sven Eckelmann [Thu, 19 May 2016 18:20:45 +0000 (20:20 +0200)]
ar71xx: add kernel support for the OpenMesh MR1750 board

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

7 years agoar71xx: Generate sysupgrade images for OpenMesh devices
Sven Eckelmann [Thu, 19 May 2016 18:20:44 +0000 (20:20 +0200)]
ar71xx: Generate sysupgrade images for OpenMesh devices

Some OpenWrt based firmwares like Gluon expect that a sysupgrade image
exists when a device firmware can be updated via sysupgrade. This image
wasn't created until now because OpenMesh devices use the same image for
factory and sysupgrade flash. Copying the image from *factory.bin to
*sysupgrade.bin is therefore enough to make the sysupgrade functionality
visible.

Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoMerge pull request #83 from ecsv/gcc6
Zoltan Herpai [Wed, 21 Sep 2016 16:04:01 +0000 (18:04 +0200)]
Merge pull request #83 from ecsv/gcc6

toolchain: fix build with GCC 6

7 years agotoolchain: gcc: fix build with GCC 6
Matthias Schiffer [Sun, 8 May 2016 22:16:38 +0000 (00:16 +0200)]
toolchain: gcc: fix build with GCC 6

At least for GCC 4.8, which is used by most targets.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agotools: mkimage: sync include/linux/compiler*.h with u-boot master
Matthias Schiffer [Sun, 8 May 2016 20:06:51 +0000 (22:06 +0200)]
tools: mkimage: sync include/linux/compiler*.h with u-boot master

Fixes build with GCC 6.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agotools: pkg-config: fix build with GCC 6
Matthias Schiffer [Tue, 10 May 2016 22:36:51 +0000 (22:36 +0000)]
tools: pkg-config: fix build with GCC 6

Fixes the following error:

gdate.c: In function ‘g_date_strftime’:
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoiw: backport support for "channels" command
Rafał Miłecki [Fri, 17 Jun 2016 11:00:32 +0000 (11:00 +0000)]
iw: backport support for "channels" command

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

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

7 years agomac80211: brcmfmac: fix support for BCM4366
Rafał Miłecki [Fri, 17 Jun 2016 07:50:22 +0000 (07:50 +0000)]
mac80211: brcmfmac: fix support for BCM4366

1) Fix setting AP channel
2) Improve BSS management to avoid:
[ 3602.929199] brcmfmac: brcmf_ap_add_vif: timeout occurred

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

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

7 years agomac80211: brcmfmac: add support for get_channel
Rafał Miłecki [Fri, 17 Jun 2016 07:50:11 +0000 (07:50 +0000)]
mac80211: brcmfmac: add support for get_channel

It's very useful for debugging problems with brcmfmac setting requested
channel.

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

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

7 years agomac80211: brcmfmac: fix support for up to 4 AP interfaces
Rafał Miłecki [Fri, 17 Jun 2016 07:50:03 +0000 (07:50 +0000)]
mac80211: brcmfmac: fix support for up to 4 AP interfaces

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

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

7 years agomac80211: brcmfmac: return -ENFILE if interface exists
Rafał Miłecki [Mon, 30 May 2016 06:29:43 +0000 (06:29 +0000)]
mac80211: brcmfmac: return -ENFILE if interface exists

This makes brcmfmac compatible with mac80211 which uses dev_alloc_name
(and so returns -ENFILE on error).

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

7 years agoopenssl: Update to version 1.0.2h
Luka Perkov [Tue, 10 May 2016 22:42:36 +0000 (22:42 +0000)]
openssl: Update to version 1.0.2h

openssl: Update to version 1.0.2h

Bump to the latest version, fixes several security issues:
 * CVE-2016-2107, CVE-2016-2105, CVE-2016-2106, CVE-2016-2109, CVE-2016-2176
More details at https://www.openssl.org/news/openssl-1.0.2-notes.html

Signed-off-by: Mohammed Berdai <mohammed.berdai@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49363 3c298f89-4303-0410-b956-a3cf2f4a3e73

7 years agomtd: seama: exit with error if Seama header wasn't found
Rafał Miłecki [Mon, 9 May 2016 15:34:13 +0000 (15:34 +0000)]
mtd: seama: exit with error if Seama header wasn't found

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

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

7 years agomtd: seama: fix image data handling
Rafał Miłecki [Mon, 9 May 2016 12:54:53 +0000 (12:54 +0000)]
mtd: seama: fix image data handling

1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation

Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.

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

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

7 years agomtd: seama: move buf allocation to the MD5 function
Rafał Miłecki [Mon, 9 May 2016 12:54:49 +0000 (12:54 +0000)]
mtd: seama: move buf allocation to the MD5 function

This buf is only used in this function now, so lets move it there.

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

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

7 years agomtd: seama: update MD5 using header in the first block buffer
Rafał Miłecki [Mon, 9 May 2016 12:54:46 +0000 (12:54 +0000)]
mtd: seama: update MD5 using header in the first block buffer

This will allow separating first block buffer from a buffer used for MD5
calculation.

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

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

7 years agomtd: seama: add md5 to header struct
Rafał Miłecki [Mon, 9 May 2016 12:54:42 +0000 (12:54 +0000)]
mtd: seama: add md5 to header struct

This allows us to drop some extra offset calculations and simplifies
code a bit.

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

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

7 years agomtd: check for Seama magic early when fixing MD5
Rafał Miłecki [Mon, 9 May 2016 09:55:35 +0000 (09:55 +0000)]
mtd: check for Seama magic early when fixing MD5

This avoid long (and unneeded) process of reading all data in case of
running on MTD not containig Seama entity.

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

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

7 years agomtd: add missing breaks in a switch
Rafał Miłecki [Mon, 9 May 2016 07:55:18 +0000 (07:55 +0000)]
mtd: add missing breaks in a switch

On platforms supporting both: TRX and Seama calling "fixtrx" was
resulting in trying to fix Seama as well.

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

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

7 years agomtd: use tabs for indents
Rafał Miłecki [Mon, 9 May 2016 07:55:08 +0000 (07:55 +0000)]
mtd: use tabs for indents

This makes code style consistent across the whole file.

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

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

7 years agohostapd: backport fix for AP SME drivers with monitor mode support
Rafał Miłecki [Sun, 8 May 2016 21:09:23 +0000 (21:09 +0000)]
hostapd: backport fix for AP SME drivers with monitor mode support

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

7 years agokernel: use backported versions of bgmac patches
Rafał Miłecki [Sun, 8 May 2016 21:09:18 +0000 (21:09 +0000)]
kernel: use backported versions of bgmac patches

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

7 years agobcm53xx: use backported versions of bcma USB patches
Rafał Miłecki [Sun, 8 May 2016 21:09:12 +0000 (21:09 +0000)]
bcm53xx: use backported versions of bcma USB patches

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

7 years agoCC: ubox: turn logd into a separate package
Luka Perkov [Tue, 3 May 2016 12:18:16 +0000 (12:18 +0000)]
CC: ubox: turn logd into a separate package
Currently system log is always included as a part of ubox.
Add logd as a seperate package and add it to default packages list.

Signed-off-by: Andrej Vlasic <andrej.vlasic@sartura.hr>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49294 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: add support for BCM4366C0 in brcmfmac
Rafał Miłecki [Wed, 27 Apr 2016 07:16:17 +0000 (07:16 +0000)]
mac80211: add support for BCM4366C0 in brcmfmac

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

8 years agoRevert "ar71xx: change some TP-link modelnames (WR841, WA701, WA730)"
John Crispin [Tue, 26 Apr 2016 07:52:01 +0000 (07:52 +0000)]
Revert "ar71xx: change some TP-link modelnames (WR841, WA701, WA730)"

This reverts commit 0fd48fd7dab066db8a46e51775579c9ef507ca25.

We are facing some problem on rolling out the current 15.05-branch to
our devices because the image name changed.

The changed image name breaks compatibility for derived projects and
that's something which should only happen if there is a really good
reason (e.g. security fix).

Signed-off-by: Tim Niemeyer <tim@tn-x.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49231 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: Fix LED handling.
John Crispin [Tue, 26 Apr 2016 07:52:00 +0000 (07:52 +0000)]
lantiq: Fix LED handling.

Backport of r47914 to CC.

Without this patch the TDW8970 is left without any status LED at all,
even during preinit and failsafe.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49230 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: Fix ath9k LED for TDW8970.
John Crispin [Tue, 26 Apr 2016 07:51:58 +0000 (07:51 +0000)]
lantiq: Fix ath9k LED for TDW8970.

Backport of r47911, r47912, r47969 to CC.

All other required patches have already been backported in r48822.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49229 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoar71x: Added support for TP-Link TL-WR841N v11 to 15.05
John Crispin [Mon, 25 Apr 2016 20:08:54 +0000 (20:08 +0000)]
ar71x: Added support for TP-Link TL-WR841N v11 to 15.05

This patch adds support for the TP-Link TL-WR841N to OpenWrt Chaos Calmer
15.05. Confirmed working [1] and [2].

Signed-off by Stijn Segers <francesco.borromini@inventati.org>

[1] https://forum.openwrt.org/viewtopic.php?id=63657
[2] https://forum.openwrt.org/viewtopic.php?id=61309

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

8 years agoar71xx: backport support for Netgear WPN824N
John Crispin [Mon, 25 Apr 2016 20:08:52 +0000 (20:08 +0000)]
ar71xx: backport support for Netgear WPN824N

Add support for Netgear WPN824N.
Hardware specs:
  * AR7240, 4 LAN ports, 1 WAN port
  * AR9285 WLAN
  * 32 MB RAM
  * 4 MB Flash
  * 16 LEDs (LAN, WAN and Power/Status contain two LEDs for dual color
    effect)
  * 3 Buttons (not supported)

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49227 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoar71xx: Add TP-Link TL-WA901ND v4 support to Chaos Calmer 15.05.1
John Crispin [Mon, 25 Apr 2016 20:08:49 +0000 (20:08 +0000)]
ar71xx: Add TP-Link TL-WA901ND v4 support to Chaos Calmer 15.05.1

This patch backports support for the TP-Link TL-WA901ND v4 to Chaos Calmer 15.05.1,
which was added into trunk recently [1].

Signed-off by Stijn Segers <francesco.borromini@inventati.org>

[1]: http://patchwork.ozlabs.org/patch/606780/

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

8 years agoar71xx: Add TP-Link TL-WR740N v6 support to 15.05.1
John Crispin [Mon, 25 Apr 2016 20:08:44 +0000 (20:08 +0000)]
ar71xx: Add TP-Link TL-WR740N v6 support to 15.05.1

This patch adds support for the TP-Link TL-WR740N v6 to OpenWrt Chaos Calmer. Hardware wise, it's very similar to the TL-WR841N v10. See the forum thread [1]. Credit goes to the user 'traveler' who did the legwork and tested builds.

Also thanks to Matthias Schiffer for clarifying the DEVICE_PROFILE settings.

Signed-off by: Stijn Segers <francesco.borromini@inventati.org>

[1]: https://forum.openwrt.org/viewtopic.php?pid=318704

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

8 years agoCC: ramips: backport rt3352 usbphy fix in dts-file
John Crispin [Mon, 25 Apr 2016 20:08:41 +0000 (20:08 +0000)]
CC: ramips: backport rt3352 usbphy fix in dts-file
Backport of trunk patch. Fix kernel hang during loading ehci-hcd module.

SIgned-Off-By: Serge Vasilugin <vasilugin@yandex.ru>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49224 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoCC: kernel: Support for new Archer C7 with gd25q128 chip
Hauke Mehrtens [Sun, 24 Apr 2016 19:20:10 +0000 (19:20 +0000)]
CC: kernel: Support for new Archer C7 with gd25q128 chip
Archer C7 V2.0 units from December 2015 onwards ( serials starting 215C
) have changed flash chips to the gd25q128 chip, this is supported in
trunk but not presently in 15.05. I would like stable support for this
version so I've back ported the required fix from trunk and removed a
conflicting patch from bcm53xx I've tested the patch it and I'm able to
install a build of 15.05.1 on a new Archer C7 device with this patch.

Signed-off-by: John Marrett <johnf@zioncluster.ca>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49220 3c298f89-4303-0410-b956-a3cf2f4a3e73