Commit Graph

31102 Commits (3ba033ed1b74e693d29491e3ecb432a3461c3245)

Author SHA1 Message Date
Jo-Philipp Wich 5447ad5ac7 package: fix segfault of iwinfo.scanlist("radio0").
This is a bug revealed in r41830.

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

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

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

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

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42151 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-12 11:14:11 +00:00
Luka Perkov 4cbb181a87 imx6: update kernel config
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42149 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:35:15 +00:00
Luka Perkov e859c9bc08 imx6: kernel: add GW5520 support
The GW5520 is a small form-factor single-board computer with the following
features:
 * 70x100mm form-factor
 * IMX6DL 800MHz SoC (IMX6Q optional)
 * 512MB 32bit DDR3 SDRAM (up to 2GB optional)
 * 256MB NAND FLASH (up to 2GB optional)
 * Gateworks System Controller
 * 2x front-panel Intel i210 GbE adapters with passive PoE support
 * 2x MiniPCIe sockets with USB support
 * 2x front-panel USB
 * 1x rear-panel full-size HDMI connector
 * 1x front-panel bi-color user LED
 * 1x front-panel user pushbutton
 * 1x rear-panel barrel jack for power
 * 1x Application connector with:
  * 2x TTL level UARTs
  * 10x TTL level Digital IO

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42148 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:35:13 +00:00
Luka Perkov 6b2145fca6 imx6: kernel: add GW16083 Ethernet Expansion Mezzanine support
The GW16083 Ethernet Expansion Mezzanine adds the following to supported
Gateworks baseboards:
 * 7-port Ethernet Switch
  * 4x RJ45 ports (ENET1-4) supporing 802.11af/at PoE (with optional PoE module)
  * 2x RJ45 ports or SFP module (ENET5-6) (auto-selected)

This series adds support for a phy driver that adds support for ENET5/ENET6
PHY adding initialization for those PHY's and a polling mechanism that detects
SFP insertion and configuration.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42147 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:35:10 +00:00
Luka Perkov 7d82dc4a82 imx6: kernel: add GW16082 miniPCI Expansion Mezzanine support
The GW16082 miniPCI Expansion Mezzanine has the INTA/B/C/D IRQ's reversed
from the PCI standard. This will soon be resolved in the bootloader via
devicetree, but in the meantime this will work around the issue.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42146 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:35:06 +00:00
Luka Perkov a53ce5130c imx6: kernel: fix occasional link failure
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42145 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:35:04 +00:00
Luka Perkov 839ea7b5e0 imx6: kernel: backport an upstream pci hang fix
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42144 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:35:02 +00:00
Hauke Mehrtens 7fa5f2e250 bcm53xx: add b43 wifi support
Now it is possible to use b43 wifi.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42143 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:25:26 +00:00
Hauke Mehrtens 8d41fb6db2 bcm53xx: remove BCM4360 from PCI ids
bcma does not support this card and b43 hangs when probing this card.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:24:45 +00:00
Hauke Mehrtens fe64c487e2 mac80211: fix warning with kernel 3.14
This fixes a redefinition of net_get_random_once() warning.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42141 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 20:23:20 +00:00
Jo-Philipp Wich 369b4791ce base-files: /lib/functions/network.sh: fix network_get_ipaddr6
When looking for the first ipaddr also consider the current prefix just
like network_get_ipaddrs6 does. If ipv6-address was empty the function
did not return the first ipaddr even if the list was non-empty.

fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42139 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 18:15:18 +00:00
Jo-Philipp Wich 22bbd9f08e firewall: fix potential NULL pointer access
Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42138 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 17:45:18 +00:00
Steven Barth 3d227bab23 dropbear: update to 2014.65
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42131 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 13:02:43 +00:00
Imre Kaloz f9968acee1 [ar71xx]: add support for the NC-LINK SMART-300
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42130 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:44:51 +00:00
Jonas Gorski 01b65b97ef brcm63xx: remove now obsolete board fixup code
Now that we migrated all users to dtb based detection, we can drop the
board fixup code.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42129 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:26 +00:00
Jonas Gorski cb9540ea23 brcm63xx: use dtb board detection for neufbox 4
This splits up neufbox 4 for now into two images, one for each OEM.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42128 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:21 +00:00
Jonas Gorski 4c0faf9955 brcm63xx: use dtb board detection for NB6
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42127 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:17 +00:00
Jonas Gorski faf35534f3 brcm63xx: use dtb board detection for HW556
This requires individual images for each board version for now.
Linux partition was shrunk to ensure writing thewrong image won't
erase wifi calibration data.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42126 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:14 +00:00
Jonas Gorski 71d57be056 brcm63xx: replace CFEFIXUP usage with dtb based detection
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42125 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:09 +00:00
Jonas Gorski 8d3fe23098 brcm63xx: move bcm96328avng to dtb detection
Use appended dtb for board detection for bcm96328avng.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42124 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:04 +00:00
Jonas Gorski 1057e53813 brcm63xx: add support for registering parallel flash through dtb
Add the required nodes to the dtsi files and code to prevent double
registration from the board support code.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42123 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:37:01 +00:00
Jonas Gorski a030157d76 brcm63xx: add helpers for building cfe images with dtb
Add a helper for building images with dtb appended kernels.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42122 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:59 +00:00
Jonas Gorski ac01f9dc1d brcm63xx: add support for attaching dtbs to lzma kernels
In preparation for switching to dtb based board identification, add
support for building lzma-loader and lzma cfe kernels with dtb
appended.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42121 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:55 +00:00
Jonas Gorski c22347ed9a brcm63xx: add empty dtsi files for each of the supported SoCs
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42120 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:53 +00:00
Jonas Gorski 3b703b5dd7 brcm63xx: add and enable support for loading an appended dtb
Allow appending a dtb blob to the binary and use it for identifying the
board. Fall back to nvram based identification in case of no dtb passed.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42119 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:48 +00:00
Jonas Gorski 647c40e6dc brcm63xx: correctly export fallback sprom for brcm-wl
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42118 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:41 +00:00
Jonas Gorski 2e6a1f0110 brcm63xx: make board patch context less ambiguous
Make it less likely for quilt/patch to put boards into the "wrong"
section.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42117 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:38 +00:00
Jonas Gorski 1115a868ef brcm63xx: fix board patches offsets
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo fix 553-boards_probe_switch.patch]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42116 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 11:36:30 +00:00
Jo-Philipp Wich 2b24ce9a14 firewall: implement selective conntrack flushing (#10225)
Utilize the new selective conntrack flushing facility to clear
out active conntrack entries referring to old IP addresses after
a firewall reload.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42114 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 09:41:20 +00:00
Luka Perkov b62457321e kernel: 3.14: refresh patches
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42113 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 09:21:05 +00:00
Jo-Philipp Wich 6a499ca44b build: enable PER_FEED_REPO by default
Enable the separate feed repositories by default to align custom builds with the repositories
available on the snapshot download server.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42112 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 09:15:17 +00:00
Luka Perkov ae4ebf4e5a hostapd: fix some whitespaces
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42111 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-11 08:44:48 +00:00
Jonas Gorski 2fd28f24b3 brcm63xx: Add fallback sprom for A4001N
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42110 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:22:15 +00:00
Jonas Gorski dec1097dc5 brcm63xx: Add fallback sprom for HG520v
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42109 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:22:12 +00:00
Jonas Gorski bf8ceb87a4 brcm63xx: Add fallback sprom for P870HW-51a
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42108 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:22:10 +00:00
Jonas Gorski 52f9ede220 brcm63xx: Add fallback sprom for VR-3025un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42107 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:22:08 +00:00
Jonas Gorski 69d4e4ca94 brcm63xx: Add fallback sprom for VR-3025u
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:22:05 +00:00
Jonas Gorski edb04822b8 brcm63xx: Add fallback sprom for WAP-5813n
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42105 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:22:02 +00:00
Jonas Gorski 14bfc909fe brcm63xx: Add fallback sprom for AR-5381u
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:59 +00:00
Jonas Gorski ea571fd7de brcm63xx: Add fallback sprom for AR-5387un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42103 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:55 +00:00
Jonas Gorski 2330472b38 brcm63xx: Add fallback sprom for A4001N1
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42102 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:52 +00:00
Jonas Gorski 54271ac89e brcm63xx: Add fallback sprom for CT6373
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42101 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:48 +00:00
Jonas Gorski 41babbcc87 brcm63xx: Add fallback sprom for CT5365
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42100 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:44 +00:00
Jonas Gorski e22a913fc7 brcm63xx: Add fallback sprom for CT5361_CT5621
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42099 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:39 +00:00
Jonas Gorski 49106504d2 brcm63xx: Add fallback sprom for Huawei HG553
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42098 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:34 +00:00
Jonas Gorski 7a3018b4b6 brcm63xx: Fix fallback sprom il0mac
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 12:21:30 +00:00
Jo-Philipp Wich 8dd6672941 netfilter: consider reply direction on selective flushing
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 10:15:22 +00:00
Jo-Philipp Wich 47f73ebe7b netfilter: fix calls to nf_ct_iterate_cleanup() with Linux >= 3.13
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42093 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-10 09:21:14 +00:00
Jo-Philipp Wich 44ffcf4d4e netfilter: support /proc conntrack flushing of specific ip addresses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-09 14:36:10 +00:00
Jo-Philipp Wich 427b9953d2 build: fix removal of old .ipk files with CONFIG_PER_FEED_REPO
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42090 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-09 13:04:17 +00:00